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 to retrieve and display Image from database

How to retrieve and display Image from database

Scheduled Pinned Locked Moved ASP.NET
databasequestionsql-servercomsysadmin
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.
  • N Offline
    N Offline
    nguyenhh
    wrote on last edited by
    #1

    Hi, this is probably ASP 001 lession, but for me it is new. Let say I have a table named: table1(ArticleTitle, ArticleContent, Image) How do I retrieve and display the image along with the ArticleTitle, ArticleContent? I can display the ArticleTitle and ArticleContent, but failed to display the image. Could someone please show me the neccessary controls and function that does this. This is link to my page: http://nangmoi.com/baiviet1.aspx?ID=14, I want a picture displayed next to this sample article. The picture is stored in the SQL Server database as type image. Thank you! haiao2000@yahoo.com Hai

    T 1 Reply Last reply
    0
    • N nguyenhh

      Hi, this is probably ASP 001 lession, but for me it is new. Let say I have a table named: table1(ArticleTitle, ArticleContent, Image) How do I retrieve and display the image along with the ArticleTitle, ArticleContent? I can display the ArticleTitle and ArticleContent, but failed to display the image. Could someone please show me the neccessary controls and function that does this. This is link to my page: http://nangmoi.com/baiviet1.aspx?ID=14, I want a picture displayed next to this sample article. The picture is stored in the SQL Server database as type image. Thank you! haiao2000@yahoo.com Hai

      T Offline
      T Offline
      Timcyspet
      wrote on last edited by
      #2

      hi, try this http://dotnetjunkies.com/WebLog/abraham.mathew/articles/39751.aspx[^] bye timcyspet

      N 1 Reply Last reply
      0
      • T Timcyspet

        hi, try this http://dotnetjunkies.com/WebLog/abraham.mathew/articles/39751.aspx[^] bye timcyspet

        N Offline
        N Offline
        nguyenhh
        wrote on last edited by
        #3

        I did try code in that link and several of them but no luck. the picture didn't show up on the page. it shows missing picture. I look its properties. it shows the .aspx file url. I suspect that the problem is from how I inserted images into SQL database. How I inserted images into database? I drag and drop the images directly into the database image fields, which has been desired for image type. could that be the problem ? (I use SQL MSDE2000 database with MS Access XP GUI) what happen? Hai

        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