Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old February 27th, 2006, 05:15 PM
TrailBlazer
Guest
 
Posts: n/a
Default file does not begin with %PDF - BinaryWrite

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!!!!

  #2  
Old April 16th, 2006, 05:24 PM
Newbie
 
Join Date: Apr 2006
Posts: 1
Default file does not begin with %pdf when using firefox 1.5.0.2

Hello there!

I am also experiencing the same problem both browsers - msie and firefox generates this kind of error "file does not begin with %pdf" when I try to open a pdf file that was scripted in java because my system is WINXP SP2.

When i format my harddisk & then install back the WINXP PRO the error was resolved only in MSIE but not in FIREFOX. Now the question is, do I need to install earlier version of FIREFOX to resolve this problem, or did I miss something that my latest version of FIREFOX is in need of?

Any one out there who can help me pls. reply or email me at jpbarroga_2000@hotmail.com

Help me OBI WAN KENOBI, YOUR MY ONLY HELP! ;)

Pinoykid
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles