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. How can I convert hexadecimal stream to a Image?

How can I convert hexadecimal stream to a Image?

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdesign
4 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.
  • P Offline
    P Offline
    pubududilena
    wrote on last edited by
    #1

    Hi, we have Image stream with hexadecimal values. 0xFFD8FFE000104A46494600010101 Now we need to convert it to asp.net image (System.Web.UI.WebControls.Image) ? can any one assit for that?

    J 1 Reply Last reply
    0
    • P pubududilena

      Hi, we have Image stream with hexadecimal values. 0xFFD8FFE000104A46494600010101 Now we need to convert it to asp.net image (System.Web.UI.WebControls.Image) ? can any one assit for that?

      J Offline
      J Offline
      J a a n s
      wrote on last edited by
      #2

      pubududilena wrote:

      we have Image stream with hexadecimal values

      Is it a hexadecimal string or a byte array?

      *jaans

      P 1 Reply Last reply
      0
      • J J a a n s

        pubududilena wrote:

        we have Image stream with hexadecimal values

        Is it a hexadecimal string or a byte array?

        *jaans

        P Offline
        P Offline
        pubududilena
        wrote on last edited by
        #3

        thanks for reply. It is a hexadecimal string. It is comming with xml files. So we need to convert hexadecimal string to a Image to show on the asp.net web page.

        J 1 Reply Last reply
        0
        • P pubududilena

          thanks for reply. It is a hexadecimal string. It is comming with xml files. So we need to convert hexadecimal string to a Image to show on the asp.net web page.

          J Offline
          J Offline
          J a a n s
          wrote on last edited by
          #4

          You cant convert it to asp:Image, but you can display it to the user 1. Convert the hex string to a byte array by the help of HexEncoding class available in this article[^] 2. Display this data either using BinaryWrite method of Response class or HttpHandlers[^]

          *jaans

          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