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);
but when i use below code to convert image1.ImageUrl into binary it is not working and page is not responding anthing no generate any error and response.
what should i do for this ?
i want to convert image into binary which is captured and display on image control by webcam.