aspose file tools*
The moose likes I/O and Streams and the fly likes document view and download on website Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "document view and download on website" Watch "document view and download on website" New topic
Author

document view and download on website

pooja jain
greenhorn
Ranch Hand

Joined: Jan 12, 2005
Posts: 213
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.


:d
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
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

Joined: Jan 12, 2005
Posts: 213
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
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
Explain what? That was a question for you.
pooja jain
greenhorn
Ranch Hand

Joined: Jan 12, 2005
Posts: 213
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: document view and download on website