Last post Oct 29, 2010 05:21 AM by zalkin
Oct 28, 2010 10:50 AM|zalkin|LINK
I have heard that a webhandler is more efficient when buffering images in a webpage....
I've tried a couple of times but I never seem to get it right
This is the codebehind in ViewImg.aspx.cs
Here's the code:
Oct 28, 2010 01:44 PM|budugu|LINK
Try like this..
Bitmap bitmap = new Bitmap(800, 800);
MemoryStream mem = new MemoryStream();
byte buffer = mem.ToArray();
Response.ContentType = "image/png";
Oct 29, 2010 05:21 AM|zalkin|LINK
WOW! The difference in loading time is sick!
I didn't use anything you said but when I tried it this time around it worked.
So I guess I can give you an "answered" mark :P