Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to insert an image and array (that array related to particular image pixels)in to SQL server using C#.

Like,
There are two columns in DB table, one for image, and other one should consists that array.

Please suggest some way to accomplish this,it would be very helpful to me!
Posted
Updated 10-Sep-15 23:13pm
Comments
Afzaal Ahmad Zeeshan 11-Sep-15 5:22am    
Save the bytes, SQL Server doesn't care about your JPEG photography.
F-ES Sitecore 11-Sep-15 5:23am    
Google "store image sql server c#" and "store array sql server c#"

 
Share this answer
 
It would be bad to answer again and again the question which has been answered so many times: http://www.codeproject.com/search.aspx?q=%28%22.NET%22+OR+%22C%23%22%29+database+%28image+OR+images+OR+bitmap+OR+bitmaps%29[^].

Also, in many cases, it's better to store the image files in file system and store only the (relative) file names in your database. For example, it would be a better approach for Web sites/applications.

—SA
 
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