[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Having trouble downloading ShrinkIt archives
Andy McFadden writes ...
>
....
>
> It should be possible to detect this situation on a PC by examining the
> length of the file. If it's a "plain" .po or .do image, the image file
> would grow slightly because of the inserted line terminators.
>
Length comparison is a very good check. However, exact length
information for the original file is rarely available from http download
sites (or any download site under the browsers I've used).
Exact file length information is available from ftp sites accessed via a
good ftp program; but, downloads done this way in binary mode are very seldom
corrupted anyway.
> The authors of the PNG file format put 0x0d and 0x0a into the file magic
> number, so that anything that tried to convert the EOL markers would cause
> immediately recognizeable damage. Would've been nice to see that in the
> 2MG file format.
>
....
Don't know how often this may be a problem. 2MG format sounds like one
which would normally be recognized as a PC binary type.
Rubywand