3
Answers

How to Convert Byte[] to Binary

paddu v

paddu v

12y
6.5k
1
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)