As you see then d already contains the contents of the file. In the verb gcimg used in demo5 uses the contents of t rather than giving the name of a file
gcimg_jgcp_ 3 : 0 t=. 'http://',GC,'/',gcchart'' '<img width=',(":GCW),'px height=',(":GCH),'px src="',t,'"></img>' ) This kind of solution would be preferable. The strange thing is that chrome will on its own open files from c:\tmp\spil like <img style="-webkit-user-select: none" src="file:///C:/tmp/spil/153.png"> I have tried to use this definition in jhs it works in ie9 it does not work in chrome 2012/1/24 bill lam <bbill....@gmail.com> > You may define a J user folder sushc as > ~root -> / NB. linux > ~croot -> c:/ NB. windows > so that any file in filesystem can be accessed as > ~root/path/to/file > > Пнд, 23 Янв 2012, Björn Helgason писал(а): > > This can be used until a better solution will be introduced > > > > jhspng2=: 3 : 0 > > d=. fread y > > w=. 256#.a.i.4{.16}.d > > h=. 256#.a.i.4{.20}.d > > t=. '<img width=<WIDTH>px height=<HEIGHT>px src="<FILE><UQS>" ></img>' > > dn=. '~temp/test.png' > > d fwrite dn > > jhtml t hrplc_jhs_ 'WIDTH HEIGHT FILE UQS';w;h;dn;jhsuqs'' > > ) > > jhspng2 'c:/tmp/spil/240.png' > > jhspng2 'c:/tmp/spil/123.png' > > > > It is possible to make chrome read local files but it is not recommended > > for security reasons. > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- Björn Helgason, Verkfræðingur Fornustekkum II 781 Hornafirði, t-póst: gos...@gmail.com gsm: +3546985532 twitter: @flugfiskur http://groups.google.com/group/J-Programming Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans góður kennari getur stigið á tær án þess að glansinn fari af skónum /|_ .-----------------------------------. ,' .\ / | Með léttri lund verður | ,--' _,' | Dagurinn í dag | / / | Enn betri en gærdagurinn | ( -. | `-----------------------------------' | ) | (\_ _/) (`-. '--.) (='.'=) ♖♘♗♕♔♙ `. )----' (")_(") ☃☠ ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm