FromBase64 string -- How to Resize from stream and outpu to stream -- ASP.net C$ [modified]
-
I have a base64 gif label from UPS that I would like to put in the memory stream and then resize and output to memory stream. How can I resize the image before writing it to the output stream? Any help would be appreciated. byte[] buffer = Convert.FromBase64String(htmlBase64()); Page.Response.Clear(); Page.Response.AddHeader("Content-Disposition", "attachment; filename=displayImage.jpg;"); Page.Response.AddHeader("Content-Length", buffer.Length.ToString()); Page.Response.ContentType = "application/octetstream"; Page.Response.BinaryWrite(buffer); Thank You, Signed... Linda
xxx
modified on Friday, September 26, 2008 9:08 AM
-
I have a base64 gif label from UPS that I would like to put in the memory stream and then resize and output to memory stream. How can I resize the image before writing it to the output stream? Any help would be appreciated. byte[] buffer = Convert.FromBase64String(htmlBase64()); Page.Response.Clear(); Page.Response.AddHeader("Content-Disposition", "attachment; filename=displayImage.jpg;"); Page.Response.AddHeader("Content-Length", buffer.Length.ToString()); Page.Response.ContentType = "application/octetstream"; Page.Response.BinaryWrite(buffer); Thank You, Signed... Linda
xxx
modified on Friday, September 26, 2008 9:08 AM
Use Convert.FromBase64String()
Thanks & Regards Pete SIEMENS Information Systems Ltd
-
Use Convert.FromBase64String()
Thanks & Regards Pete SIEMENS Information Systems Ltd
I know how to do that much; however, my out is to the stream. How do I resize the image before outputting it to the stream. see code below byte[] buffer = Convert.FromBase64String(htmlBase64()); Page.Response.Clear(); Page.Response.AddHeader("Content-Disposition", "attachment; filename=displayImage.jpg;"); Page.Response.AddHeader("Content-Length", buffer.Length.ToString()); Page.Response.ContentType = "application/octetstream"; Page.Response.BinaryWrite(buffer); Thank You, Signed... Linda
xxx