I am converting Image into Bytes and Stored in a Byte [] , But in database Profilepicture DataType is VarBinary(MAx)
MemoryStream ms=new MemoryStream();
....
...
byte[] photo;
photo=new byte[ms.length];
p.Profilepicture= ? //here i want pass the value "photo"
photo is Byte[] type;
picture in database is Binary.
please tell give me a suitable answser