SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to insert/upload any image in database with using Asp.Net program?

    Hello Friends,
    I want to upload an image in database through Asp.Net program. So tell me how to do this ?

  2. #2
    SitePoint Mentor NightStalker-DNS's Avatar
    Join Date
    Jul 2004
    Location
    Cape Town, South Africa
    Posts
    2,869
    Mentioned
    38 Post(s)
    Tagged
    0 Thread(s)
    If you make the sql column a blob. You can safe the image bytes directly into it. But it is a better idea for database size and speed to just have an uploads folder and upload your images to that folder then save the path to the image in a database column of type varchar

  3. #3
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,576
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I presonally prefer the database option if we aren't talking 10mb+ images -- easier to deal with a database than a file system. I would actually use a separate table though so you don't touch that stuff inadvertently.

  4. #4
    SitePoint Member
    Join Date
    Jun 2013
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello Friend I want a program in Asp.net to upload an image in database.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •