paddu v

paddu v

  • NA
  • 53
  • 49.2k

How to Convert Byte[] to Binary

Jun 29 2012 3:44 AM
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




Answers (3)