I'm working on a photo gallery using ASP.NET.I'm storing user's images in a SQL database. I'm not sure how should displaying images look like.Let's say there is 1 picture per user, I was doing something like that:
- get image from database
- save it on server's disc as "file.jpg"
- ASP:Image.uri = "file.jpg"
- get image from database
- save it on server's disc as "ABCDUDHDJSAKFHADGJKHAKADFAD.jpg"
- ASP:Image.uri = "ABCDUDHDJSAKFHADGJKHAKADFAD.jpg"
- File.Delete("~/ABCDUDHDJSAKFHADGJKHAKADFAD.jpg");