how to store and manipulate images in database?
Showing comments 1 to 4 of total 4 on page 1 of 1
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.
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.
check BFILE or BLOB
See this articles:
Other than this, you can also chek out "PureASP upload" which has some sample codes to upload binary files to database: