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 MRank #171 · 14K reputationPosted Jul 30, 2015, 8:31 PM EDT
bmap.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] byteImage = ms.ToArray();
Suresh MRank #171 · 14K reputationPosted Jul 29, 2015, 8:10 PM EDT
Forcasual Things12 reputationPosted Jul 30, 2015, 8:58 AM EDT
Forcasual Things12 reputationPosted Jul 31, 2015, 12:59 PM EDT