Alright, here's my dilema.
I am working on an ASP script that eventually will read assorted bytes, integers, and longs out of a file. Problem is, of course, ASP can't really read binary files. Well, it can, but since there are no specific types in ASP, you're stuck reading the binary data into a string.
Now comes the problem.
I open the file, and read 4 bytes of data. The string now contains four ASCII characters: UªUª
Now, the first 4 bytes in the file are SUPPOSED to be a long number with a vaule of -1437226411. My question is, now do I get from the UªUª (which is Chr(85) Chr(170) Chr(85) Chr(170) by the way) and convert into a long number?
I have tried making an ActiveX component with functions to read a binary file, but for some reason either IIS or the control itself closes the file right after it opens. This ActiveX problem may be a separate question though. If it is, I will reward separate points accordingly. see http://lycaon.no-ip.com/code/eequestion.asp
if you want to take a crack at it.