Reading streams from image on a web page in asp.net
问题 I have an image bound in the image control in my asp.net website. I am using C# to develop it. Below the code to bind the image. byte[] imageBytes = System.IO.File.ReadAllBytes("filepath"); string base64String = Convert.ToBase64String(imageBytes, 0, imageBytes.Length); this.testImage.Src = "data:image/jpeg;base64," + base64String; Now I want to take the streams from that image control (testImage) in another event. I dont want to save the image in any server path. How Can I do that? Thanks in