473,396 Members | 1,702 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,396 software developers and data experts.

streaming pdf files through Web Service

Stu
Hi,

I have encrypted pdf files which I need to stream through a web service to
the browser. So I have a byte() array returned from my web service call which
allows me to decrypt back to the pdf before displaying. It works but is slow
when the average report is 84K. So basically I need to speed up the
streaming.

I have tried gzip compression but found out that pdf are already compressed
using flate algorithm so no luck there. I tried http Isap compression filter
but this actually slowed down part of the site and complained that the pdf
wasnt a pdf. So is there any way to stream content efficiently with soap.

Ive read the:
http://msdn.microsoft.com/library/de...opaquedata.asp

So is base64 encloding going to be faster than the byteArray or does anyone
have any other ideas ?

TIA

Stu

Nov 21 '05 #1
2 6060
Hi Stu,
transferring binary files using web services is usually not recommended. You
can look at WSE 2.0 (Web Service Enhancements) and in particular to the
WS-ATTACHMENT specification.

- Marco
"Stu" wrote:
Hi,

I have encrypted pdf files which I need to stream through a web service to
the browser. So I have a byte() array returned from my web service call which
allows me to decrypt back to the pdf before displaying. It works but is slow
when the average report is 84K. So basically I need to speed up the
streaming.

I have tried gzip compression but found out that pdf are already compressed
using flate algorithm so no luck there. I tried http Isap compression filter
but this actually slowed down part of the site and complained that the pdf
wasnt a pdf. So is there any way to stream content efficiently with soap.

Ive read the:-
http://msdn.microsoft.com/library/de...opaquedata.asp

So is base64 encloding going to be faster than the byteArray or does anyone
have any other ideas ?

TIA

Stu

Nov 21 '05 #2
Hi Stu,
transferring binary files using web services is usually not recommended. You
can look at WSE 2.0 (Web Service Enhancements) and in particular to the
WS-ATTACHMENT specification.

- Marco
"Stu" wrote:
Hi,

I have encrypted pdf files which I need to stream through a web service to
the browser. So I have a byte() array returned from my web service call which
allows me to decrypt back to the pdf before displaying. It works but is slow
when the average report is 84K. So basically I need to speed up the
streaming.

I have tried gzip compression but found out that pdf are already compressed
using flate algorithm so no luck there. I tried http Isap compression filter
but this actually slowed down part of the site and complained that the pdf
wasnt a pdf. So is there any way to stream content efficiently with soap.

Ive read the:-
http://msdn.microsoft.com/library/de...opaquedata.asp

So is base64 encloding going to be faster than the byteArray or does anyone
have any other ideas ?

TIA

Stu

Nov 21 '05 #3

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

Similar topics

6
by: Mark Kelly | last post by:
Hi (apologies for the xpost, but im not sure where this fits in), I have recently had a site demostrated to me (a newsgroup binaries archive site) that allows a user to select multiple files,...
4
by: A.M-SG | last post by:
Hi, I have a ASP.NET aspx file that needs to pass large images from a network storage to client browser. The requirement is that users cannot have access to the network share. The aspx file...
3
by: Rob | last post by:
I have an ASP.Net web app that generates a Crystal Report in PDF format. Since there is sensitive data within the reports, the pdfs need to be streamed to the browser then deleted immediately. The...
2
by: Cerebral Believer | last post by:
Hi All, I plan to use streaming audio on my site. I had uploaded some .mp3's as part of a trial, and these streamed very badly so I tried .ram (RealAudio) files instead. The RealAudio files...
8
by: poorna | last post by:
hi all i want to upload the video files to the server.. then i encode all the video files into flv files ... and then i am go to streaming ... in the mean while i create the thumbnail image...
8
by: Amjad | last post by:
Hi i am writing a application where i want to browse video file and copy data into stream and send that stream over network...I have develop P2P windows application where i successfully transfer...
5
by: pmakoi | last post by:
dear all this might be a piece of cake for some of you out there but it is causing me a lot of stress given the fact that there is not enogh documentation out there regarding this topic I am...
3
by: Brad | last post by:
I have an aspx page that is sending pdf files to client browsers: it uses a filestream to read the pdf file and response.binarywrite to send content to the browser. This has worked great for years...
1
by: Faisal Shafiq | last post by:
I want to upload a file direct to the Silverlight Streaming Service from a Web Client such as silverlight application. As per our product requirement we want to upload a .WMV file directly from...
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...

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.