Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to save generated barcode image in a database into a table with image data type field.
Posted

You need to create Bitmap from the barCode. Then convert that to byte array and store in database.

See the answer here - Save dynamically generated Barcode image into database in ASP.Net[^].
 
Share this answer
 
Comments
Member 11695553 1-Jun-15 6:35am    
thank u so much for ur complement but pls give me example
Example is given in that link.
Considering performance and future maintenance, it's not recommended that you store the image directly in database. It's better to save the images on disk and store the image path info in database.
 
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