RE: MI MB reading binary data
You might be able to use the unix command dd with the argument conv=swab to byte-swap the file before copying to NT - it used to work with Landsat data off reel to reel tapes read by HP-UX about ten years ago! - David Booth Senior GIS Officer Merseyside Information Service > -Original Message- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] > Sent: 13 September 2000 19:26 > To: [EMAIL PROTECTED] > Subject: MI MB reading binary data > > Mappers, > Using mb code, under NT, I'm trying to read binary data that was created > on a UNIX machine which writes the data most significant byte first. My > mb code wants to read binary data as least significant byte first. Anyone > know how to work around this short of writing a byte exchanger? Does > MapBasic have a patch or something available? > Thanks, > SI > -- > To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put > "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
Re: MI MB reading binary data
In MB, when you read/write a input file, you can specify the byteorder by saying high or low. THis way you can control the oder of bytes while reading. -- Rajeev Saraf [EMAIL PROTECTED] wrote: > Mappers, > Using mb code, under NT, I'm trying to read binary data that was created on a UNIX >machine which writes the data most significant byte first. My mb code wants to read >binary data as least significant byte first. Anyone know how to work around this >short of writing a byte exchanger? Does MapBasic have a patch or something available? > Thanks, > SI > -- > To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put > "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED] -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]
MI MB reading binary data
Mappers, Using mb code, under NT, I'm trying to read binary data that was created on a UNIX machine which writes the data most significant byte first. My mb code wants to read binary data as least significant byte first. Anyone know how to work around this short of writing a byte exchanger? Does MapBasic have a patch or something available? Thanks, SI -- To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put "unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]