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. Converting a byte array into System.Web.UI.HtmlControls.HtmlImage

Converting a byte array into System.Web.UI.HtmlControls.HtmlImage

Scheduled Pinned Locked Moved ASP.NET
htmlgraphicsdesigndata-structuresquestion
3 Posts 3 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.
  • M Offline
    M Offline
    mareers
    wrote on last edited by
    #1

    I have an image in the form of byte array and i have to display it as Htmlimage. I ve tried in google. I got some results ragarding converting the image into System.drawing.image Can any body post some links or info. to convert a byte array into html image?

    --Sreeram

    P 1 Reply Last reply
    0
    • M mareers

      I have an image in the form of byte array and i have to display it as Htmlimage. I ve tried in google. I got some results ragarding converting the image into System.drawing.image Can any body post some links or info. to convert a byte array into html image?

      --Sreeram

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      mareers wrote:

      Can any body post some links or info. to convert a byte array into html image?

      There's no such thing as a HTML image. You can display an image on a web page by using an <img> tag that points to the URL that represents the image resource. You could either: 1. Save your image to a file and point an tag to the URL for that file. 2. Create an ASPX page that writes the binary data for the image to the output stream and point an tag to the URL for that page. 3. Write a custom HTTP handler to service image requests and reference it in a similar way to 2. Perform a Google search for any of these and you should find plenty of relevent information.

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      L 1 Reply Last reply
      0
      • P pmarfleet

        mareers wrote:

        Can any body post some links or info. to convert a byte array into html image?

        There's no such thing as a HTML image. You can display an image on a web page by using an <img> tag that points to the URL that represents the image resource. You could either: 1. Save your image to a file and point an tag to the URL for that file. 2. Create an ASPX page that writes the binary data for the image to the output stream and point an tag to the URL for that page. 3. Write a custom HTTP handler to service image requests and reference it in a similar way to 2. Perform a Google search for any of these and you should find plenty of relevent information.

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Hi - I'm using Classic ASP but hoping the solution will be similar if not the same. What I'm trying to do: I am working with a Flash ActionScript programmer. In his application, he is sending a "ByteArray" (binary data that defines the JPG) of a JPG file to my ASP. In my ASP I want to receive that querystring and write the JPG file to the server. Possible? How? Thanks! Scott@oceanmedia.net

        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