Image storing and retieving from databases in jdbc

How can we store and retrieve image from databases in java source code

Page 1 of 1

2 Replies - 1262 Views - Last Post: 04 June 2009 - 07:55 PM Rate Topic: -----

#1 Nuraiz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 04-June 09

Image storing and retieving from databases in jdbc

Post icon  Posted 04 June 2009 - 02:33 AM

Hi...
Hope u are all f9..
iwant some help in java that how can we store image in databases via java source code and then how can we show it on our web page
Is This A Good Question/Topic? 0
  • +

Replies To: Image storing and retieving from databases in jdbc

#2 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2687
  • View blog
  • Posts: 11,349
  • Joined: 20-September 08

Re: Image storing and retieving from databases in jdbc

Posted 04 June 2009 - 12:52 PM

Which database?
Was This Post Helpful? 0
  • +
  • -

#3 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8328
  • View blog
  • Posts: 31,857
  • Joined: 06-March 08

Re: Image storing and retieving from databases in jdbc

Posted 04 June 2009 - 07:55 PM

If you use HSQLdb that supports Java Objects you can just store your Image in the a column defined as having the type Object
More primitive database might required that you serialized it and put it in a Blob

You can also store it has an array of int[][] containing Alpha, R, G and B
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1