I want to be able to store and retrieve Images from an SQL database.
I searched the forums, but has so far not got a clear answer, I could have missed something, but then again, I will try and ask here.
I have heard pro's and con's against storing them in the database, but one issue I have with storing the link in the database instead of the actual image is permissions.
I need to restrict users from accessing pictures they do not have right to, so storing them in a path would only require the user to figure out where one image is located, and then start guessing the rest.
If I store it in the Database I would be able to restrict it since a user would not be able to create their own queries for the database.
Now, when we are so far, how can this be done?
I want to be able to store the image from an ASP page.
I then want to be able to retreive it and resize it depending on if it is a thumbnail or a full image. Thereby only sending the optimal sized image to the end user.
Now how can this be done? Code examples would be nice.
Also I suppose I need some kind of control to upload, and to do image handling.
I'm on a very low budget since it is a startup project, so does anyone know of a control that can handle the images and the upload?
The Images will only be jpeg.
The SQL server is located differently than the Web Server, does that cause problems?
Lot of questions, hopefully an answer exists.
Regards,
Brian
I searched the forums, but has so far not got a clear answer, I could have missed something, but then again, I will try and ask here.
I have heard pro's and con's against storing them in the database, but one issue I have with storing the link in the database instead of the actual image is permissions.
I need to restrict users from accessing pictures they do not have right to, so storing them in a path would only require the user to figure out where one image is located, and then start guessing the rest.
If I store it in the Database I would be able to restrict it since a user would not be able to create their own queries for the database.
Now, when we are so far, how can this be done?
I want to be able to store the image from an ASP page.
I then want to be able to retreive it and resize it depending on if it is a thumbnail or a full image. Thereby only sending the optimal sized image to the end user.
Now how can this be done? Code examples would be nice.
Also I suppose I need some kind of control to upload, and to do image handling.
I'm on a very low budget since it is a startup project, so does anyone know of a control that can handle the images and the upload?
The Images will only be jpeg.
The SQL server is located differently than the Web Server, does that cause problems?
Lot of questions, hopefully an answer exists.
Regards,
Brian