Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in the name of allah

hi all

i want to read /write images from sql to visual C++ and reverse.
i work with visual C++ 2012 and sql 2012.
i know use the CDatabase and CRecordset calsses but i don't know how can i have to use those to read/write images.
can you help me?
thanks
Posted

1 solution

As far as I know there are two ways for storing images into a database: you might either
or
  • store just the image file path as a string (effectively storing the image file itself in the filesystem).

In both cases you could later retrieve the full binary data of the image file, in order to manipulate it (e.g. showing, processing, ...).
 
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