Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to know how to convert a jpg image file into binary code format. They are to be stored in a database in this format.
Posted
Comments
[no name] 11-Mar-15 7:04am    
Files are binary data. There are no non-binary files. No need to convert.

you really shouldnt do that! You better create some file service (with unique and the original filename) in your app and store the file in some directory on a server without the database.

Than you only need to copy the file to server on storing and copy it back on retrieving WITHOUT any additional operation. It saves a lot of execution and development time and avoids tons of errors!!!
 
Share this answer
 
Images are already in binary format, just stick them in the database ... I do it all the time.

Your question is far too vague to answer anyway .... try something like this next time:

"What would be a good way to store images in an Oracle database with a C style Windows application?"
 
Share this answer
 
v2

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