I'm trying to resize the image after it is uploaded to the database but i don't know how. is it possible to resize an image that is uploaded to database with nvarchar(max) format or it just has to be saved as image format? can it be resized before uploading? I am using image upload control
I use a plugin from http://imageresizing.net/, which I then call from code-behind to resize images. There are some free parts and other parts you have to pay for. You can also get it from NuGet in Visual Studio. The resizing is handled on the server in C# before you store your images.
By the way, it is better, if you have many images, to store them in a file system or cloud storage account. Databases are not optimised for images and you might incur a large performance problem or high costs if you keep them all in a database. I keep the filename in the database and then store all my images in Amazon S3 storage.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments