Asp.net Web Service Return Pdf

Posted on by

Hello scientio, I'm not sure whether this suits what you want, but like this you can return binary data (like your pdf): var res = new HttpResponseMessage(); res.Content = new ByteArrayContent(yourByteArray); return res; Mudasir.Khan inside the action Respone.TransferFile(FilePath); Response.End(); I'm sorry to ask this Mudasir.Khan, but is this the way to become a 'Star' ranked User? I have seen a few posts of you already, which are totally wrong, and expressed as shortly as possible. Serial Wedge. Too lazy to read the question of the user properly and write a proper response? Please refrain from posting at all then, as your postings are hardly helpful at all.

How to send pdf file through. Return binFile; }. File Upload with ASP.NET; Creating and using Web Services with the.NET framework and Visual. Devious Maids S2e10. Accept and Return file to/from C# WebService. File and return it via FileResult in ASP.NET MVC?

Asp.net Web Service