C response.contenttype application pdf
In response to pre. I need to read the file content to read opportunity id which is on the footer of the file. Message 3 of 4. Post Reply. Helpful resources. Launching new user group features Learn how to create your own user groups today!
Learn More. View Now. View All. Top Solution Authors. User Count. Top Kudoed Authors. Covered by US Patent. Come for the solution, stay for everything else. Welcome to our community! I am trying to display a PDF file which I am being passed from a web service as a binary stream in a browser, but I am being prompted to save the file instead.
I don't want the user to be prompted; I just want the PDF to be displayed. BinaryWrite binar yData Response. End I also tried adding Response. Flush and Response. Close just for good measure, but it didn't help.
I'm using ASP. Any ideas? Collectives on Stack Overflow. Learn more. How can I return a pdf from a web request in ASP. Ask Question. Asked 12 years ago. Active 4 years, 11 months ago. Viewed 46k times. Diego C. Beska Beska Related: stackoverflow. Not dupe of the above in any meaning. I knew I was going to get a couple people say to close as dupe, pointing to that type of question I should have made it the first sentence. Add a comment. Active Oldest Votes.
Assuming you can get a byte[] representing your PDF: Response. Clear ; Response. Flush ; Response. End ;. Justin Niessner Justin Niessner k 38 38 gold badges silver badges bronze badges. This looks very promising I figured it would be something along these lines, but don't have the background to know the details.
0コメント