asp file read binary data in sql server 2000

I

izumi

I write the code as follows.....

But I cannot print the binary data as meaningful data format.

any idea????????


Response.Buffer = True
Const adTypeBinary = 1
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Type = adTypeBinary

response.binarywrite rs("abc")
 
M

Manohar Kamath [MVP]

You need to tell the browser the MIME type of incoming stream. Perhaps
something like

Response.ContentType = "application/msword"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top