• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

document view and download on website

 
pooja jain
greenhorn
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i've a requirement to make few documents available to view/download on website.

there is a web service available which returns document from document repository in form of stream.

i am confused how to make this stream available to client in form of pdf?

any suggestion?

even if i use some api to create pdf from stream, where will i keep it on sever so user can access it?

thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you want to keep it on the server? Whenever the user wants to download a document, get the raw bytes from the repo, and stream them to the browser. No need to store them in between.
 
pooja jain
greenhorn
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Why would you want to keep it on the server? Whenever the user wants to download a document, get the raw bytes from the repo, and stream them to the browser. No need to store them in between.


can you please explain more on it?
if possible provide some link for it.

thanks.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Explain what? That was a question for you.
 
pooja jain
greenhorn
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Explain what? That was a question for you.


sorry, i mean can you explain more on streaming on browser directly.
yes. i also dont want to store them on server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic