file does not begin with %PDF - BinaryWrite

T

TrailBlazer

Hi - Been struggling over this issue for a long while. We store PDF's
in our SQL Server database. And I do a BinaryWrite to display the PDF.
It works for me without issue, on FireFox, IE, and Opera! But we are
receiving feedback that some users are receiving the file does not
begin with %PDF message.

ExecString = "spwEcoTrackUser " & Session("EcoUserID") & ",'coupon',"
& ID
set dbConn = Server.CreateObject("ADODB.Command")
dbConn.ActiveConnection = conn
dbConn.CommandText = ExecString
dbConn.Execute

' writes out the PDF
Response.ContentType = rs("CouponContentType")
Response.BinaryWrite rs("CouponData")

I have seen several posts about this issue, but no true solution. Can
anyone help?

THANKS!!!!
 

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,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top