473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Problems with BinaryWrite, IE and Adobe Reader 6.0

Hi,

I'm having some problems with the Reponse.BinaryWrite, IE 6.0 and Adobe Reader 6.0. When I try to write a pdf-file to an IE browser with a Adobe Reader 6.0 installed then it just displays a blank page and the earth on the top rigth corner keeps turning like it haven't read the pdf-file (for 10+ minutes on a lan).
If I change the settings on the Adobe Reader 6.0 to not open in a browser, then it works fine.
If I use Mozilla 1.4 then it opens fine as well.
It works fine as well with Adobe Reader 5.1.

The code looks like this:
[Some code that places the pdf-file in a byte array called vntStream]
Response.Clear
Response.ContentType = "Application/pdf"
Response.BinaryWrite = vntStream
Response.end

I have tried to place a Response.Flush after the BinaryWrite, but it just makes the Adobe plug-in say something like "document corupted".

Can anyone help, please.

/Jens
Jul 19 '05 #1
2 5234
Hi there,

Is this a typo:
Response.BinaryWrite = vntStream
BinaryWrite is a function, not a property. Have you tried persisting the PDF
to disk and Response.Redirecting?

Cheers,

Alan

"Jens S0nderby Munk" <js****@diku.dk> wrote in message
news:bg*********@munin.diku.dk... Hi,

I'm having some problems with the Reponse.BinaryWrite, IE 6.0 and Adobe Reader 6.0. When I try to write a pdf-file to an IE browser with a Adobe
Reader 6.0 installed then it just displays a blank page and the earth on the
top rigth corner keeps turning like it haven't read the pdf-file (for 10+
minutes on a lan).

If I change the settings on the Adobe Reader 6.0 to not open in a browser, then it works fine. If I use Mozilla 1.4 then it opens fine as well.
It works fine as well with Adobe Reader 5.1.

The code looks like this:
[Some code that places the pdf-file in a byte array called vntStream]
Response.Clear
Response.ContentType = "Application/pdf"
Response.BinaryWrite = vntStream
Response.end

I have tried to place a Response.Flush after the BinaryWrite, but it just makes the Adobe plug-in say something like "document corupted".
Can anyone help, please.

/Jens

Jul 19 '05 #2
"Alan" <SP******************@inspire.net.nz> writes:
Hi there,

Is this a typo:
Response.BinaryWrite = vntStream That is of course a typo
BinaryWrite is a function, not a property. Have you tried persisting the PDF
to disk and Response.Redirecting?

Yes, I have tried that, and it works, but this is not a option as the PDF-fiels are not public accessable and the access control is done by the application. The conplexity of the access control does not allow me to place the files in a tree structure with access control.

/Jens
Hi,

I'm having some problems with the Reponse.BinaryWrite, IE 6.0 and Adobe
Reader 6.0. When I try to write a pdf-file to an IE browser with a Adobe
Reader 6.0 installed then it just displays a blank page and the earth on the
top rigth corner keeps turning like it haven't read the pdf-file (for 10+
minutes on a lan).
If I change the settings on the Adobe Reader 6.0 to not open in a browser,
then it works fine.
If I use Mozilla 1.4 then it opens fine as well.
It works fine as well with Adobe Reader 5.1.

The code looks like this:
[Some code that places the pdf-file in a byte array called vntStream]
Response.Clear
Response.ContentType = "Application/pdf"
Response.BinaryWrite = vntStream
Response.end

I have tried to place a Response.Flush after the BinaryWrite, but it just
makes the Adobe plug-in say something like "document corupted".

Can anyone help, please.

/Jens




Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brian Sabolik | last post by:
After developing my entire applications around printing via the Crystal Decisions engine in .net, I was shocked to find out that a report that printed fine in Adobe 5.0 reader now prints garbled...
0
by: philipp | last post by:
I have the following problem: My client application (c#, WindowsForms) uses the IE Browser ActiveX Control to display either HTML or PDF files. This is fine so far. If the Acrobat Reader is...
1
by: kistealt | last post by:
Hi folks, i have the following problem using c# and .net. I want to print pdf files by calling the Adobe Acrobat 4 command line tool. Here's my code ProcessStartInfo psi = new...
11
by: Random | last post by:
I have tried all the Response methods I can think of (WriteFile, BinaryWrite, OutputStream) to write the byte array of a pdf file to the response. The result looks like it's trying, it comes up as...
1
by: Charlie | last post by:
Hi: I'm uploading documents into a SQL Server Image field and using Response.BinaryWrite() to download or view them in the browser. Some doc types like Adobe Illustrator and Photoshop files...
6
by: Alec MacLean | last post by:
Hi, I've created a small application for our company extranet (staff bulletins) that outputs a list of links to PDF's that are stored in a SQL table. The user clicks a link and the PDF is...
1
by: =?Utf-8?B?RGlja0o=?= | last post by:
While downloading Adobe Acrobat 8.0 with Windows XP I got an Error Message " Error 1714 The olderversion of Adobe Reader 8 cannot be removed, contact your Technical Support Croup" I tried...
2
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a server 2008 IIS 7.0 with indexing service installed. I have created the catalog and have a test page using these posts:...
0
by: kirankumarn | last post by:
I want to open pdf files from Adobe Reader 8.0 default from C# code. but in my system Adobe Acrobat 5.0 installed & Adobe Reader 8.0 installed. So my code opens by default in Adobe Acrobat 5.0 i want...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.