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 handling

image handling

Scheduled Pinned Locked Moved ASP.NET
htmldatabase
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.
  • S Offline
    S Offline
    Sebastian T Xavier
    wrote on last edited by
    #1

    hi everybody today i come here with a new doubt; in one registration form, i have used a html filefield control to browse an photograph of the user and i have converted this image into binary and stored inthe database. but after that i need to retrieve that binary data and dispaly that in an imagecontrol in the next form. anybody know any method to assign this binary data to the image control. please share some ideas. thanks in advance. sebastian

    V P 2 Replies Last reply
    0
    • S Sebastian T Xavier

      hi everybody today i come here with a new doubt; in one registration form, i have used a html filefield control to browse an photograph of the user and i have converted this image into binary and stored inthe database. but after that i need to retrieve that binary data and dispaly that in an imagecontrol in the next form. anybody know any method to assign this binary data to the image control. please share some ideas. thanks in advance. sebastian

      V Offline
      V Offline
      Vicky Roberts
      wrote on last edited by
      #2

      You can create another apx page and in the page load of this new aspx you can write this. byte[] image = null; image =(byte[])objDV[0]["imgImage1"];// Taking it from dataview/dataset/dtable Response.ContentType = objDV[0]["strImage1ContentType"].ToString(); Response.BinaryWrite(image); Assume this new aspx page name is ImageLoad.aspx In your page where you are taking an Image control, call the method from aspx page. and in code behind you will have protected string GetLogoURL(object objLogo) { return "ImgLoad.aspx" } Let me know if this worked for you.

      "Walking on water and developing Software on a specification is easy, if both are frozen..."

      1 Reply Last reply
      0
      • S Sebastian T Xavier

        hi everybody today i come here with a new doubt; in one registration form, i have used a html filefield control to browse an photograph of the user and i have converted this image into binary and stored inthe database. but after that i need to retrieve that binary data and dispaly that in an imagecontrol in the next form. anybody know any method to assign this binary data to the image control. please share some ideas. thanks in advance. sebastian

        P Offline
        P Offline
        postmaster programmingknowledge com
        wrote on last edited by
        #3

        Visit link below for an example http://www.programmingknowledge.com/ImageUpload.aspx[^]

        S 1 Reply Last reply
        0
        • P postmaster programmingknowledge com

          Visit link below for an example http://www.programmingknowledge.com/ImageUpload.aspx[^]

          S Offline
          S Offline
          Sebastian T Xavier
          wrote on last edited by
          #4

          thank u very much

          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