So far SEQ has worked good, but I'll keep BYTEVAL in mind, actually
never heard/used that one so I'll have to read up on it.

The base64 would have encoded it for ASCII, making it just a text file.

George



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Craig Bennett
> Sent: Thursday, July 27, 2006 7:21 PM
> To: [email protected]
> Subject: Re: [U2] Reading Binary data from a file...
> 
> 
> George,
> 
> use OPENSEQ and READBLK to read the raw data without 
> conversion then use 
> BYTEVAL (not SEQ as this may be affected by NLS) to
> determine the ASCII character/byte value.
> 
> Alternatively if you have memory to spare:
> 
> OPEN "TYPE19FILE" TO FT ELSE STOP
> ASSIGN 1 TO SYSTEM(1017) ;* Disable UV automatic char conversion
> READ JPEG FROM FT, "JPEGID" THEN
>     JPEG.LEN = BYTELEN(JPEG) ;* Length in bytes ignoring NLS
>     FOR I = 1 TO JPEG.LEN
>        PRINT BYTEVAL(JPEG, I)
>     NEXT I
> END
> 
> I don't see where base64 comes into it unless the file is 
> currently base 
> 64 encoded.
> 
> regards,
> 
> Craig
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to