how to store and manipulate images in database?

Posted in Help the coder! on Aug 5, 2009 at 15:00 IST (over 4 years ago). Subscribe to this post Bookmark and Share Email
Showing comments 1 to 4 of total 4 on page 1 of 1
Post reply
« Previous1Next »

sampura
Rank: 107

hi..

in my current project, i want to store the image of users using my database. can anyone tell me how to store, update and delete these images?

im usin java as front end and sql as back end.

Posted by sampura on Wednesday, August 5, 2009, 3:00 pm
  • Currently 0.00/5

0 votes

Thank this userFlag this comment

pradeep
Rank: 26

You'll have to keep a table for keeping the image details, say like, user_images. And you should have a folder in your server for keeping these image files. You can identify each file by giving the imageId as the filename. That will make sure it stays unique. The user details table should have a field that specifies the imageId for that particular user.

  • If the image is edited then update the imageId field in image table with the new details.
  • If it is deleted then remove the imageId from the user details table.
Posted by pradeep on Wednesday, August 5, 2009, 3:45 pm
  • Currently 0.00/5

0 votes

Thank this userFlag this comment

Sajiv
Rank: 24
If you are using Oracle...

check BFILE or BLOB
Posted by Sajiv on Wednesday, August 5, 2009, 5:40 pm
  • Currently 0.00/5

0 votes

Thank this userFlag this comment

robinalex
Rank: 1
Posted by robinalex on Friday, August 7, 2009, 7:40 am
  • Currently 0.00/5

0 votes

Thank this userFlag this comment
Pages: « Previous1Next »

Post your comment (No registration required)

  Add my comment  

TechieDesi Community

Not signed in (Sign-in or Register)
Be a true TechieDesi!
Top 10 Users
Spread the word
Invite your friends
Fan stuff
Help us improve
Need Help
FAQ's
Search tips
Found a bug? Report!
Feeds and letters
Subscribe via RSS
Archives
Subscribe to newsletter
Unsubscribe e-mail
Miscellaneous
Privacy policy
Visit rootnerve
About us
About us
Support the development
Official Blog
Advertise with us
Careers
Copyright (c) 2008, TechieDesi.com. All rights reserved | About us | Do-Not-Disturb registry | Powered by rootnerve | Page rendered in 0.013 seconds