I have a table in my SQL database that stores an AccountID and an ImageID – the ImageID being a file path to an actual account image in .gif format.
What would I need to do is, to retrieve the image from the file path saved on my SQL database onto an image control? I am using asp.net in c#.
Potentially, when the page is accessed, depending on which account has logged on, the appropriate image specific for the account is retrieve (I would imagine I can set up an @AccountID parameter at a later date)
If anyone has example code for something they have done similarly, I would be most grateful for any pointers you may have.
Here’s a sample: