Meaningless Drivel is fun!*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 119
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: 61447
    
  67

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]
 
 
subject: How to open a file stored in mysql in jsp page