I have, in a WebForm (on .NET 3.5) a byte[], which “represent” a PDF file.
Well, I’d like to send it to the client, during a request (postback) from this page.
How can I do it? Tried searching, but I find only tutorial of byte[] from client to server.
You can do it this way, but you might have to clear the Response first to remove all the other page controls etc.
I usually create an IHttpHandler or WCF REST service to serve up files though.