08-12-2012, 10:21 AM
Thanks for helping Vinwarez!
Anyway, there is a very basic premise to what you are trying to do. Basically, user chooses image, image gets uploaded, URL of that image gets saved in the database.
So, for example, if you specify a local image for the student "John Smith", the image might get renamed as "johnsmith81212.jpg" and then uploaded via FTP to the url "site.com/images/johnsmith81212.jpg". Then, the MySQL image field for "John Smith" is updated to "johnsmith81212.jpg". Then, when retrieving the image, the program reads the MySQL field, downloads the image, and displays it into the PictureBox.
This may not be the best way of doing it, but it is how I did it in a huge piece of software for a client and it seemed to get the job done.
Anyway, there is a very basic premise to what you are trying to do. Basically, user chooses image, image gets uploaded, URL of that image gets saved in the database.
So, for example, if you specify a local image for the student "John Smith", the image might get renamed as "johnsmith81212.jpg" and then uploaded via FTP to the url "site.com/images/johnsmith81212.jpg". Then, the MySQL image field for "John Smith" is updated to "johnsmith81212.jpg". Then, when retrieving the image, the program reads the MySQL field, downloads the image, and displays it into the PictureBox.
This may not be the best way of doing it, but it is how I did it in a huge piece of software for a client and it seemed to get the job done.