Download file using ajax and webservice

Posted by megabyte on Stack Overflow See other posts from Stack Overflow or by megabyte
Published on 2010-04-11T08:44:59Z Indexed on 2010/04/11 8:53 UTC
Read the original article Hit count: 253

Filed under:
|
|

Hi All

There is this 3rd party webservice. One of the public webmethods available is a GetDocument() method. This method returns a Document object. The Document object has properties for File(byte[]), ContentType(string) ect.

My Question : Can I subscribe to this service using javascript(mootools) + ajax + JSON, return the document object, in this case an excel document, and force the file download?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about webservice