Question : Help with a Web service

I want to write a web service that can return a PDF document.
I will call this web service from the OnClick event of a button in my browser.  

It should open a new browser window, call the web service, and display the PDF document.

The web service should have a parameter which is the document name.

Can someone tell me if this possible? And provide a skelleton that I could use, data types etc.  I am an experienced programer but do not have much expertise around javascript/html and web services.

Answer : Help with a Web service

hi,
Read your Pdf as binary and send that as base64 string
File.ReadAllBytes() to load the PDF file
>> convert that bytes to base64 string Convert.ToBase64String(bytes).
Convert that back into binary and save it as PDF

refer the below link
http://msdn.microsoft.com/en-us/library/aa528822.aspx

Hope this will work
Deepu
Random Solutions  
 
programming4us programming4us