Yes you can do this easily. Set the datatype of the field
"Image" in which you want to store the Image. Now you have to convert the image in byte array(byte[]). Now by Query or Stored procedure insert data in the table. To retrieve the Image use reverse process.
To convert image or any other object to byte array you can use the function written below.....
public byte[] ObjectToByteArray(Object obj)
{
if (obj == null)
return null;
BinaryFormatter bf = new BinaryFormatter();
MemoryStream ms = new MemoryStream();
bf.Serialize(ms, obj);
return ms.ToArray();
}
Convert a byte array to an Object
public Object ByteArrayToObject(byte[] arrBytes)
{
MemoryStream memStream = new MemoryStream();
BinaryFormatter binForm = new BinaryFormatter();
memStream.Write(arrBytes, 0, arrBytes.Length);
memStream.Seek(0, SeekOrigin.Begin);
Object obj = (Object)binForm.Deserialize(memStream);
return obj;
}