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. Image Types

Image Types

Scheduled Pinned Locked Moved ASP.NET
graphicsdesignhelp
2 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.
  • I Offline
    I Offline
    Icarus123
    wrote on last edited by
    #1

    Hi there. Can anyone help me. I need to convert System.Drawing.Image to System.web.UI.Webcontrol.Image so that i can display an foto in a imagebox. Thanks

    X 1 Reply Last reply
    0
    • I Icarus123

      Hi there. Can anyone help me. I need to convert System.Drawing.Image to System.web.UI.Webcontrol.Image so that i can display an foto in a imagebox. Thanks

      X Offline
      X Offline
      xibeifeijian
      wrote on last edited by
      #2

      I don't think there is anyway to implement. Although their names looks very similar. I think you should change a method to do this. Because one use Image Stream,another(WebControl.Image) use a ImageUrl. You've already got a System.Drawing.Image object,you can save it for a temporary file,then give the WebControl.Image instance correct path. Overload the Page's Render,after base.Render() then delete the temporary file. :-D Good luck!

      :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)

      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