Thumbnail thumbnail = new Thumbnail(url, 800, 600, width, height); Bitmap image = thumbnail.GenerateThumbnail(); this.Response.Clear(); this.Response.ClearHeaders(); image.Save(this.Response.OutputStream, ImageFormat.Bmp); this.Response.ContentType = "image/bmp"; this.Response.AddHeader("content-disposition", "attachment;filename=Thumbnail.bmp"); HttpContext.Current.ApplicationInstance.CompleteRequest();
Saturday, September 18, 2010
How to write a dynamically created bitmap file to response output stream
Subscribe to:
Post Comments (Atom)
Azure Storage Account Types
Defferent Types of Blobs Block blobs store text and binary data. Block blobs are made up of blocks of data that can be managed individually...
-
Why we need asynchronous tasks? Execute a time consuming operations in parallel to the CLR thread which execute the request If you have ...
-
Demo: I was thinking a way to show images before actually uploading them to server. I would say to preview images using javascript. Obv...
No comments:
Post a Comment