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 do I display byte[ ] image on webform??

How do I display byte[ ] image on webform??

Scheduled Pinned Locked Moved ASP.NET
questiondatabasedata-structures
4 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.
  • I Offline
    I Offline
    IrishSonic
    wrote on last edited by
    #1

    Hi all Need some advice. I have a byte array that contains my image taken from a database. I need to put this byte array into some control on a webform to display the image. I have tried using the Response.BinaryWrite() but that clears my webform and places the image in the top-left corner. How do I display this image in a certain position on my webform?? Thanks.

    C 1 Reply Last reply
    0
    • I IrishSonic

      Hi all Need some advice. I have a byte array that contains my image taken from a database. I need to put this byte array into some control on a webform to display the image. I have tried using the Response.BinaryWrite() but that clears my webform and places the image in the top-left corner. How do I display this image in a certain position on my webform?? Thanks.

      C Offline
      C Offline
      ChrisAdams
      wrote on last edited by
      #2

      You can't stream the image out within the same webform, as the browser has to make a seperate request for the image bytes after it has received the html of the web page. There are some good articles already on caching images and creating a http handler to output image data.

      I 1 Reply Last reply
      0
      • C ChrisAdams

        You can't stream the image out within the same webform, as the browser has to make a seperate request for the image bytes after it has received the html of the web page. There are some good articles already on caching images and creating a http handler to output image data.

        I Offline
        I Offline
        IrishSonic
        wrote on last edited by
        #3

        Thanks chris. Would you have any links for these articles?? Sorry asp.net beginner here.

        R 1 Reply Last reply
        0
        • I IrishSonic

          Thanks chris. Would you have any links for these articles?? Sorry asp.net beginner here.

          R Offline
          R Offline
          Rocky Moore
          wrote on last edited by
          #4

          You might start with: http://www.codeproject.com/aspnet/aspnet_web_graphics.asp[^] Rocky <>< www.HintsAndTips.com www.MyQuickPoll.com - 2004 Election poll is #33 www.GotTheAnswerToSpam.com

          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