Skip to content
Loading
+1
  • Bhavesh Vankar
    +1
    actually image is captured by webcam and posted that image from webcam page to main page and that image stored into binary format and using below code. also stored into directory. now i want to display that record on textboxes and image on image control when i double click on listbox. text records are showing properly but image not showing properly.
    1. MemoryStream ms = new MemoryStream();  
    2.                    byte[] imgtobinary = new byte[ms.Length];  
    3.                    ms.Position = 0;  
    4.                    ms.Read(imgtobinary, 0, (int)ms.Length);  
     
    +1
  • Sachin Singh
    +1
    Pass the directory path of image as ImageUrl not the binary one and it will be resolved
    1. vImage.ImageUrl = "/Images/myImage.Jpg";   
     
    +1