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

Reply via email to