permaculture playing cards*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
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: 118
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: 15376
    
    6
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 ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60743
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: How to open a file stored in mysql in jsp page
 
Similar Threads
how to get the information from XML file using xml parser in JSP front end
how to print the date in jsp by retrieving it from table
Display image in JSP
How can javascript talk with sessions?
Array from one JSP to other (HOW)?