|
|
 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Java Espanol section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

May 14th, 2005, 11:21 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
reading image from database
Hi
How we can retrieve images from database?
|

March 13th, 2007, 07: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.
thanks...
1111
|

January 5th, 2008, 04:04 AM
|
|
Friend of Wrox
|
|
Join Date: Aug 2005
Location: Cochin, Kerala, India.
Posts: 183
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
Hi,
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%>">
regds
jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
|

January 7th, 2009, 11:26 AM
|
|
Registered User
|
|
Join Date: Jan 2009
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
http://www.exampledepot.com/egs/java.../GetImage.html
Suman.
|
|
The Following User Says Thank You to suman124 For This Useful Post:
|
|

March 8th, 2009, 10:35 AM
|
|
Authorized User
|
|
Join Date: Jul 2006
Location: Belgrade, Serbia, Yugoslavia.
Posts: 50
Thanks: 9
Thanked 1 Time in 1 Post
|
|
Hi suman124, now you take to me how to finished me problem.
tenks
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |