ado stream write

M

Meelis Lilbok

Hi

Im tryng to send binary stream to response.binarywrite

problem is when i use ADO Stream Write method then it does not work.
Response.BinaryWrite sends ASP page content not the stream bytes.
When i use LoadFrom file, all works fine.





With oAs
.Type=1
.Open
.Write oRs.Fields("content").Value
'.LoadFromFile("c:\download\ar.pdf")
End With


Any ideas why using Write method does not work?

Br
Mex
 
M

Meelis Lilbok

Case closed!

After write method, you must set the oAs.Position=0


Thx;
Mex
 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top