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 with asp.net and sql

image with asp.net and sql

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-nethelptutorial
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.
  • A Offline
    A Offline
    Aljaz111
    wrote on last edited by
    #1

    I have problem with uploading image to sql database.. In asp.net form i use this input On database i have atribute in table defined as image. What do i have to insert now to this table,this atribute(named pics) that i could load image from database and displayed it in page? Do i have to make separate table, where i need to insert image title, image size, image type? I tryed with inserting MyFile.Value into table atribute(type image) but it didn't work!! In form i have also imagebox. How to display selected image from MyFile in this imagebox? Thanks

    S 1 Reply Last reply
    0
    • A Aljaz111

      I have problem with uploading image to sql database.. In asp.net form i use this input On database i have atribute in table defined as image. What do i have to insert now to this table,this atribute(named pics) that i could load image from database and displayed it in page? Do i have to make separate table, where i need to insert image title, image size, image type? I tryed with inserting MyFile.Value into table atribute(type image) but it didn't work!! In form i have also imagebox. How to display selected image from MyFile in this imagebox? Thanks

      S Offline
      S Offline
      Sandeep Mewara
      wrote on last edited by
      #2

      Have a look at this article: C# Photo Album Viewer[^] It saves and retrieves the images from DB.

      A 1 Reply Last reply
      0
      • S Sandeep Mewara

        Have a look at this article: C# Photo Album Viewer[^] It saves and retrieves the images from DB.

        A Offline
        A Offline
        Aljaz111
        wrote on last edited by
        #3

        Ok i have looked at article..i understand how it works, but when i used it with asp.net application i didn't get full path of file to use it in stream. I tryed both asp:fileupload and input type="file" with PostedFile.FileName and nothing retrieves full path. Everytime i get error that selected picture wasn't found in C:\\windows\\system32\\filename. I tryed to saved it there, but then i get error for reading rights.. Any idea how to deal with this.?

        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