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. General Programming
  3. C#
  4. How I Can convert type byte[] to ...... [modified]

How I Can convert type byte[] to ...... [modified]

Scheduled Pinned Locked Moved C#
graphicshelp
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.
  • M Offline
    M Offline
    mm310
    wrote on last edited by
    #1

    I need convert byte[] to system.Drawing.Image This code Download Image from URI , i need put image in pictureBox after Downloaded . WebDownload webDL = new WebDownload(); byte[] downloadedData = webDL.Download(DownloadUrl, ProgressCallback ); CompleteCallback( downloadedData ); ImageDisplay ds = new ImageDisplay(); ds.pictureBox1.Image = (Image)downloadedData; help me ... -- modified at 2:00 Wednesday 9th August, 2006

    L 1 Reply Last reply
    0
    • M mm310

      I need convert byte[] to system.Drawing.Image This code Download Image from URI , i need put image in pictureBox after Downloaded . WebDownload webDL = new WebDownload(); byte[] downloadedData = webDL.Download(DownloadUrl, ProgressCallback ); CompleteCallback( downloadedData ); ImageDisplay ds = new ImageDisplay(); ds.pictureBox1.Image = (Image)downloadedData; help me ... -- modified at 2:00 Wednesday 9th August, 2006

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

      How about this:

      byte[] data = new byte[5] {1, 2, 3, 4, 5};
      MemoryStream memoryStream = new MemoryStream(data);
      Image img = Image.FromStream(memoryStream);

      M 1 Reply Last reply
      0
      • L Lost User

        How about this:

        byte[] data = new byte[5] {1, 2, 3, 4, 5};
        MemoryStream memoryStream = new MemoryStream(data);
        Image img = Image.FromStream(memoryStream);

        M Offline
        M Offline
        mm310
        wrote on last edited by
        #3

        thank you Man , I love you ;)

        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