Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. FromBase64 string -- How to Resize from stream and outpu to stream -- ASP.net C$ [modified]

FromBase64 string -- How to Resize from stream and outpu to stream -- ASP.net C$ [modified]

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netperformancehelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Linda1st
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • L Linda1st

      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

      P Offline
      P Offline
      Prasanna Kumar Pete
      wrote on last edited by
      #2

      Use Convert.FromBase64String()

      Thanks & Regards Pete SIEMENS Information Systems Ltd

      L 1 Reply Last reply
      0
      • P Prasanna Kumar Pete

        Use Convert.FromBase64String()

        Thanks & Regards Pete SIEMENS Information Systems Ltd

        L Offline
        L Offline
        Linda1st
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups