• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Attachments

 
Karthik Rallapalli
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a JSP where a user can download a file from a database.I have no problems uploading it.I did it using a blob.

Has anyone done this kind of work before.Can anyone give some heads up or point to some tutorials.

Appreicate the Help

Karthik.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a nutshell,

Set the content type.
Set the content disposition
Stream the binary data to the client.

I've published and example app that does this; not with blobs, with image files from the hard drive.
The concept is the same and it should be enough to get you going.

http://simple.souther.us
Look for SimpleStream.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!