Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return PDF document from webservice

Status
Not open for further replies.

emblewembl

Programmer
May 16, 2002
171
GB
I've built a web service which gets some data and builds a pdf file then saves it in a specified folder on the server. It's all working great, the web method just returns a true or false indicating whether the document was created properly or not. My client will be using this and they will then have to ftp to the server once a day to download the pdf documents.

I'm just wondering if there is any way to return the PDF document itself from the webservice, or return some kind of stream that then creates the pdf files on my clients local machine rather than on the server, thereby getting rid of the needt to ftp at all?

i love chocolate
 
You may be able to return a byte array of the file, but you'd have to look this up on google.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
ok, it's taken a while but I've now got this working so I thought i'd do a quick post in case it's useful to anyone else!

I've built a web service which creates a pdf with some data on the server, then encodes the pdf document and puts the base64 encoded string in an xmlNode. The web service returns the xmlNode, and the client system then retrieves the xmlNode and decodes the innerText which creates a PDF file on the client system.


i love chocolate
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top