• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inserting image at database

 
Abed Rabie
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I'm new in trying to insert an image into a database. I asked and I found that I should insert the path of the image at the database. But this is a problem if the image's path is changed.

So please advice if there is any other way that I can go through to insert the image itself into the database.

Any links on net will be so good to begin.

Looking forward to hear from u soon.

thx for u all

Aabed
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34669
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aabed,
You can store the image itself as a BLOB.
 
Abed Rabie
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friend,
Is this means that I should use certain kind of IO Streams to store this image or what I can do??

Sorry for asking alot but I'm new in this task.

Looking forward to hear from u soon.

Aabed
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34669
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abed,
Sun's tutorial gives an example of a blob. Personally, I find it easiest to read/write the image as a binary stream.

And questions are more than welcome. That's why we are here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic