win32 binary data manipulation in ASP
Joe Smith
JoeSmith at bogusaddress.com
Sun Dec 19 06:46:04 EST 1999
I am trying to write a server side ASP script in python.
buffer = os.read(fd, numBytes)
Response.BinaryWrite(buffer)
I notice that I am getting exactly double the number of bytes on output. I
suspect that the string returned from os.read() is getting converted to
unicode.
I am looking for a way to convert the string to an array of bytes, not an array
of unicode characters.
More information about the Python-list
mailing list