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. Displaying a Image from a MySQL db

Displaying a Image from a MySQL db

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasemysqltutorial
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.
  • T Offline
    T Offline
    tmoney101
    wrote on last edited by
    #1

    Hello, I am trying to create a simple webpage which displays a image from a record in my mysql (v4) db. Im using asp.net c#. I found the article on this site name "Storing Images in MySQL using ASP.NET" however I am really having trouble getting the example to compile. Does anyone out there know of any other good examples or tutorials I can follow? Has anyone done this before that could give me some guidance? Thanks for your time.

    S 1 Reply Last reply
    0
    • T tmoney101

      Hello, I am trying to create a simple webpage which displays a image from a record in my mysql (v4) db. Im using asp.net c#. I found the article on this site name "Storing Images in MySQL using ASP.NET" however I am really having trouble getting the example to compile. Does anyone out there know of any other good examples or tutorials I can follow? Has anyone done this before that could give me some guidance? Thanks for your time.

      S Offline
      S Offline
      SICStus
      wrote on last edited by
      #2

      Hello tmoney101, its very simple. Define a HttpHandler for drawing images, define it in your web.config file in httphandler section ... Read the image from your DB, give the right ContentType and send the image data with Response.BinaryWrite().

      http://www.safe2web.com/refer.php?ref=2041

      T 1 Reply Last reply
      0
      • S SICStus

        Hello tmoney101, its very simple. Define a HttpHandler for drawing images, define it in your web.config file in httphandler section ... Read the image from your DB, give the right ContentType and send the image data with Response.BinaryWrite().

        http://www.safe2web.com/refer.php?ref=2041

        T Offline
        T Offline
        tmoney101
        wrote on last edited by
        #3

        Hey thanks heaps for your reply. I have started to read up on those techniques you have given me, however I am unsure if that link you gave me points to a reference webpage? When i follow the link it takes me a safe2web page that has no coding! Thanks again. tmoney101

        S 1 Reply Last reply
        0
        • T tmoney101

          Hey thanks heaps for your reply. I have started to read up on those techniques you have given me, however I am unsure if that link you gave me points to a reference webpage? When i follow the link it takes me a safe2web page that has no coding! Thanks again. tmoney101

          S Offline
          S Offline
          SICStus
          wrote on last edited by
          #4

          Sorry, that was only a signatur. Here you can find samples about implementing simple IHttpHandler: http://www.codeproject.com/aspnet/domainforward.asp http://www.15seconds.com/issue/020417.htm

          -- http://www.safe2web.com/refer.php?ref=2041

          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