[Info-vax] proper format for JPEG files
Jose Baars
peutbaars at googlemail.com
Mon Jul 25 20:15:48 EDT 2011
On Jul 25, 11:50 pm, VAXman- @SendSpamHere.ORG wrote:
>
> Just $MODIFY the FAB to be FIXed 512. $REWIND your file and start reading
> it as FIXed.
>
Changing FAB rfm rat mrs and XABFHC lrl mrz atr fields and then a
$REWIND doesn't fool RMS,
it happily reads 32767 length records from this (now fix512? ) file.
I checked some more, and fread doesn't produce an error reading such
an illegal file,
it (probably) simply skips the part of the record that is longer than
32767 bytes.
On my sample bad file it reads 3209728 bytes, where it reads 3215997
from
the file converted to fix512, missing out 6269.
Maybe because the RTB condition is a warning, not an error.
More information about the Info-vax
mailing list