Downloading some JPGs with this:
var req:URLRequest = new URLRequest(fileURL);
pStream = new URLStream();
and when downloaded doing this
var bytes:ByteArray = new ByteArray();
pStream.readBytes( bytes );
pFileStream = new FileStream()
pFileStream.open( pFile, FileMode.WRITE );
pFileStream.writeBytes( bytes );
pFileStream = null
But the JPEGs are corrupted. I get a "Could not open file. Unknown filetype"
Now the strange thing is that Ive tried on a different server and and here it works like it should.
The file on the server is NOT corrupted, because I can see it by URL. I can download it from an FTP client
So it must be some AIR thing. But why the difference in behavior must be server related... I imagine
I have of course written the owner of the server, but its hard to point out what the problem is
Anyone experinced this ?