Hi UKMelody,
To get the image from database, you can write an http handler to get the image data from database and then point the image control?s url to that handler?s adress, such as ?GetImageHandler.ashx?img=1?.
You can find a demo project about this scenario in the following link. Hope it is helpful to you.
Thumbnailer HTTP Handler
http://www.codeproject.com/KB/web-image/thumbnailer.aspx
Sincerely,
Benson Yu
Microsoft Online Community Support
Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.