I want to upload an image in database through Asp.Net program. So tell me how to do this ?
If you make the sql column a blob. You can safe the image bytes directly into it. But it is a better idea for database size and speed to just have an uploads folder and upload your images to that folder then save the path to the image in a database column of type varchar
I presonally prefer the database option if we aren't talking 10mb+ images -- easier to deal with a database than a file system. I would actually use a separate table though so you don't touch that stuff inadvertently.
Hello Friend I want a program in Asp.net to upload an image in database.
This topic is now closed. New replies are no longer allowed.