Hi,
Given below code shows saving bitmap variable "_current" saving in a folder "images" and then assigning it to "testimage" web control. Initially "_current" has a image. is there anyway I can pass "_current" directly to "testimage" web control? Right now I have to save image in a temporary folder and access it.
Bitmap bmap = ContrastProcessing();
_current = (Bitmap)bmap.Clone();
Random rnd = new Random();
int a = rnd.Next();
_current.Save(Server.MapPath("~/Images/" + a + ".png"));
testimage.ImageUrl = "~/Images/" + a + ".png";
Suresh MPosted Jul 31, 2015, 12:31 AM
bmap.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] byteImage = ms.ToArray();
Forcasual ThingsPosted Jul 31, 2015, 4:59 PM
Forcasual ThingsPosted Jul 30, 2015, 12:58 PM
Suresh MPosted Jul 30, 2015, 12:10 AM