473,802 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6080
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
1676
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, then download the selected files combined as one zip. At first i thought this was nothing special, until it was pointed out that the download commenced immediately, and some of the many selected files were almost a GB in size. The only conclusions...
4
8178
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 must be the only method that users receive image files.
3
6217
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 report gets kick off by a Java application redirecting the URL to the ASP.Net app on the IIS Server with all report selection criteria appended to the querystring. The Crystal Report is rendered in a new window. In the Page_Load() event, I...
2
1957
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 are a lot smaller in size, but they do not stream, a user has to download the file before listening to it. Which format would you recommend for good to high quality audio streaming? Should RealAudio files stream? If so how can I get them to...
8
7676
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 from video.. doubts: how to upload the video files to web server?
8
65840
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 text message to each other but now i want to send video file and play that file on other end...I know the code how to send the stream over the network but basic problem is how open that file as a stream. Thanks
5
3557
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 writing a web service that uses soap with attachments to send a large streaming data, The concept works quite well but when I started to test it I got this problem. When my client program calls a method that should return a real time data the...
3
4047
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 in IE, Firefox and Opera on windows, and it works on a Mac with Firefox and Opera. But this fails in Safari with the generic message "A network error occurred while accessing this document". Here is a link to try out ...
1
2864
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 silverlight client to Silverlight streaming service. I tried to user WebClient and HttpWebRequest for that purpose but, unfortunately I can found the way to do so. There are some problems with both classes. 1. There is no property of get...
0
9562
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10536
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10304
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10063
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9114
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3792
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2966
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.