ASP Response.BinaryWrite in Python
Sam Sungshik Kong
ssk at chol.nospam.net
Fri Jun 11 08:25:57 CEST 2004
I'm writing ASP in Python.
I want to return an image stream from my ASP code
so that it will look like
The problem is that Response.BinaryWrite only accepts SafeArray of Bytes as
parameter, if I understand it correctly.
How can I do it?
The example will be like this.
Response.Expires = 0
Response.Buffer = True
Response.ContentType = "image/gif"
Response.BinaryWrite(get_image()) #the function is below.
f = open(file_name, "rb")
s = f.read()
Thanks in advance.
More information about the Python-list