Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have to store and retrive image from ms access and i am using mfc C++ as front end
i had addedd the data but not found any luck with image
Posted
Comments
Sandeep Mewara 19-Jul-12 9:31am    
Sharing related code snippet would help others to put you in right direction.
ZurdoDev 19-Jul-12 10:12am    
An easy thing to do is store the image on the file system and then store the path to it in the db. That tends to be easier than trying to write the bytes of the image into the db.

1 solution

There's really no point in storing an entire image to a database, and in fact, many don't directly support it (I'm sure there's exceptions). As ryanb31 suggested, the best way to deal with images is to place them somewhere on a server and just link them to your database. All associated tags can be in the database itself, but the image itself would be stored externally.

This article talks about options you have for that:
http://office.microsoft.com/en-us/access-help/store-images-in-a-database-HP005280225.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900