when i use below code to convert image1.ImageUrl into binary it will work fine.
- MemoryStream ms = new MemoryStream();
- byte[] imgtobinary = new byte[ms.Length];
- ms.Position = 0;
- ms.Read(imgtobinary, 0, (int)ms.Length);
- ms.Read(imgtobinary, 0, imgtobinary.Length);
what should i do for this ?
i want to convert image into binary which is captured and display on image control by webcam.


Salman BegRank #284 · 8.8K reputationPosted Mar 18, 2021, 9:19 AM EDT
Bhavesh VankarRank #1,147 · 1.6K reputationPosted Mar 19, 2021, 2:01 AM EDT