Click here to Skip to main content
15,898,983 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
how to store an image in sql server 2000 using c#.net (win forms) and how to access it.

thanks in advance
Posted
Updated 10-Feb-10 20:42pm
v2

There is an "image" data type in Sql Server 2000 and a corresponding SqlDbType.Image.

You can map it to a byte[] in C# and then convert it to / from a Bitmap via a MemoryStream.

Nick
 
Share this answer
 
use ntext as the column type in sql to store an imge object.
 
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