• Black Pearl.ax1741
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

On a page load(or a hyperlink click) I am calling a method which is calling a webservice. Webservice returns content of a pdf file(residing on jackrabbit content repository) as bytestream in the HttpResponse object in body. Now i have byte stream of the pdf file in the controller and want it to be downloaded at local machine of the end user who has opened this page(or clicked the hyperlink).

Hi All,

 

i have saved a file to some third party sever. I am making an APi call retriving the file and below is the response

 

HTTP/1.1 200 Ok
Date: Wed, 11 Jul 2007 19:37:41 GMT
Server: Apache
Last-Modified: Fri, 12 Jun 2007 13:40:18 GMT
ETag: b0dffe8254d152d8fd28f3c5e0404a10
Content-type: text/html
Content-Length: 512000
[ ... ]  (file content)

 

Now i need to create a link (view ) in vf page, so when a  user click this link he should be able to download the file(same view functionality in document or we can say save as functionality).

 

Please let me know, Do i need to bulid the file again or Is there quick java script where i can pass all these values and it will take care rest.

 

Thanks in Advance!!

  • September 08, 2010
  • Like
  • 0