Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Espanol
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Espanol section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old May 14th, 2005, 10:21 AM
Registered User
Join Date: Feb 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default reading image from database

How we can retrieve images from database?

  #2 (permalink)  
Old March 13th, 2007, 06:12 AM
Registered User
Join Date: Mar 2007
Location: Dhaka, Dhaka, Bangladesh.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

save the image as collection of byte in database and retrieve them as byte[] and just build the picture.
if need any further assistance please notify me.

  #3 (permalink)  
Old January 5th, 2008, 03:04 AM
Posts: n/a

Storing images in databases take time delay.
simply upload the pages to a folder
and save the path in db
then simply retrieve the path and use
<img src="<%=filepath%>">


Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
  #4 (permalink)  
Old January 7th, 2009, 10:26 AM
Registered User
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 2 Times in 2 Posts

You can store image as BLOB in the DB , but it not recommended bcoz , it takes lot of of time and increaded database files inturn it will be difficult to maintain the database in terms of archiving,etc.

So better option is to store in file system and store that reference in database. Then user java io and servlet stream API together to render the response.

you can see example at the following url


The Following User Says Thank You to suman124 For This Useful Post:
sabra (March 8th, 2009)
  #5 (permalink)  
Old March 8th, 2009, 09:35 AM
Authorized User
Points: 359, Level: 6
Points: 359, Level: 6 Points: 359, Level: 6 Points: 359, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jul 2006
Location: Belgrade, Serbia, Yugoslavia.
Posts: 73
Thanks: 11
Thanked 1 Time in 1 Post

Hi suman124, now you take to me how to finished me problem.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
set image on <asp:Image> stored in DataBase myself.panku ASP.NET 2.0 Professional 1 August 11th, 2008 10:41 AM
Reading images from Database shankhan Classic ASP Databases 1 March 21st, 2005 12:36 AM
Reading from database larry101 Classic ASP Databases 5 September 23rd, 2004 03:43 PM
How can I reading InterBase database not24 C# 2 September 21st, 2004 12:51 AM
Reading data from database... Thomas82 Classic ASP Databases 3 February 25th, 2004 02:58 PM

All times are GMT -4. The time now is 04:46 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.