You can't have two content types per request. If you're using HttpWebRequest you can retrieve any kind of data one URL at a time...
+++ Rick ---
Hi Everyone,
Is it possible to capture binary data (e.g: image or pdf file) using Server.Execute(...) method?
Not sure - it looks like you can only capture a TextWriter which won't do binary correctly. I suppose you can try running a binary request and seeing what you get as a text response - you might be able to capture the binary data in some convertable format?
+++ Rick ---
Thank you Mr. Strahl,
Found the trick using System.Net.HttpWebRequest req = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(...).
However still I couldn't force 2 content types into 1 HTTP request.
My intention is to show HTML message and push a PDF file whenever user opens the .aspx page.
Thank you for your reply!
Tony
| Rick Strahl West Wind Technologies Where do you want to surf today? | Reader Version: 5.0 |
from Maui, Hawaii
