> From: Raul Miller > Sent: Wednesday, 11 August 2010 06:31 > > On Tue, Aug 10, 2010 at 11:46 AM, bill lam <[email protected]> wrote: > > IIRC gethttp is a wrapper of wget (or curl on mac) which is very > > reliable. Try using wget directly and see if any corruption. > > tools/ftp/wget.exe from my copy of j (j602) corrupts the > file when I use -O- to get the file to appear on stdout. > > The version of wget which I normally use does not have this > problem.
As noted here http://www.jsoftware.com/jwiki/Addons/web/gethttp#KnownIssues The problem seems to be that on Windows, directing the output to the session causes LFs to be replaced by CRLFs, thereby corrupting binary files. A workaround is to retrieve the binary file and write to disk for example: 'file' gethttp 'http://www.mydomain.com/myimage.jpg' and then read the file from disk into the session. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
