www.webdeveloper.com
Results 1 to 2 of 2

Thread: save and retrieve images from mysql using asp.net with c#

  1. #1
    Join Date
    May 2008
    Posts
    18

    Question save and retrieve images from mysql using asp.net with c#

    Hi everyone,

    I need to save and retrieve images from mysql database using asp.net with c#. Please help me with some examples.


    Thanks in Advance,

    J. Mohan.

  2. #2
    Join Date
    Nov 2002
    Location
    London UK
    Posts
    154
    Can't really give you an example until I know exactly how you are trying to go about it but in reality you should only store the path to the image in the database not the image itself, which is what is sounds like you're trying to do at the moment.

    I have a page that lets the user upload an image and when they do I create a folder using their username and put the image into that, then I simply take the path to that image and store it in the database. When I display the image I simply take the path to it from the database and assign it to an image control.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles