IntelliJ Java IDE
The moose likes JSP and the fly likes How to open a file stored in mysql in jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "How to open a file stored in mysql in jsp page" Watch "How to open a file stored in mysql in jsp page" New topic
Author

How to open a file stored in mysql in jsp page

P Arunkumar
Ranch Hand

Joined: Jan 05, 2012
Posts: 87
I have stored some files in mysql useing blob datatype. now i wants to retrive them please guide me to retrive the file from database.

I know how to download the file,but my thing is i no need to download just it wants to be in view.if i click the file name the file wants to open in jsp page.


Thanks in advance.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
And what are those files?

Can't you just serve them as text/html or plain text and output them?

This really is not a HTML/CSS?JS question. Bear will move it.

Eric
Bear Bibeault
Author and opinionated walrus
Marshal

Joined: Jan 10, 2002
Posts: 50693

Indeed. Please take the time to choose an appropriate forum for your posts. This forum is for questions on HTML and JavaScript, not JSP. For more information, please click this link ⇒ CarefullyChooseOneForum.

This post has been moved to a more appropriate forum.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
 
subject: How to open a file stored in mysql in jsp page
 
Threads others viewed
how to get the information from XML file using xml parser in JSP front end
How can javascript talk with sessions?
Array from one JSP to other (HOW)?
how to print the date in jsp by retrieving it from table
Display image in JSP
developer file tools