(no subject)

Sam Couter sam at topic.com.au
Fri Nov 23 13:52:55 EST 2001


Alexei Gorbatov <alexei at rses.anu.edu.au> wrote:
> I need to read a raw binary file from linux and SUN based programs.
> However, the file format is different for such files in linux and SUN.
> How can I  solve this problem?

Are you talking about the endianness being different between Intel x86
and SPARC architectures?

Search Google for "endianness" or maybe "byte swapping".

The following link refers to graphics files, but the situation is the
same with any binary data:

http://www.faqs.org/faqs/graphics/fileformats-faq/part4/section-6.html
-- 
Sam Couter          |   Internet Engineer   |   http://www.topic.com.au/
sam at topic.com.au    |   tSA Consulting      |
OpenPGP key ID:       DE89C75C,  available on key servers
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.samba.org/archive/linux/attachments/20011123/49209ff2/attachment.bin


More information about the linux mailing list