|
-
Jul 14th, 2006, 04:25 PM
#1
Thread Starter
Fanatic Member
PDF issues using HttpWebRequest
I am using HttpWebRequest/HttpWebResponse to pass information and then retrieve information. I can request fine but the response is a pdf file that seems to look fine but if I save to a file it give me the corrupt error.
The pdf files lookes like the following:
%PDF-1.4
%
1 0 obj <</Filter/FlateDecode/Type/XObject/Length 1565/BitsPerComponent 8/Height 49/Mask [255 255 ]/ColorSpace[/Indexed/DeviceRGB 255(f
It's obviously decoding or something. Is this even possible to save to a file to view?
Thanks.
-
Jul 14th, 2006, 04:55 PM
#2
Re: PDF issues using HttpWebRequest
is this in ASP.NET or in a windows form app?
-
Jul 15th, 2006, 06:39 AM
#3
Thread Starter
Fanatic Member
Re: PDF issues using HttpWebRequest
-
Jul 15th, 2006, 07:03 AM
#4
Re: PDF issues using HttpWebRequest
You need to look at the headers of the WebResponse you are receiving, and if it is a PDF, then you should be handling it differently. You can also use WebClient to download the PDF.
-
Jul 15th, 2006, 09:37 AM
#5
Re: PDF issues using HttpWebRequest
check the link in my signature for downloading a file from a URL with progress
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|