How we Save Image in DataBase
-
Hi For all How we save image in table in sql server by vb.net code? please guid me thanks for all
Saving the image in your database isn't recommended. It will only make the database grow fast. Better way would be to save the path to the image. If you have a multi-user environment (with network) you'll best copy the image to a network share and save the network share path in the database. Be sure to use the correct name of the network share, so: '\\servername\sharename\...' and NOT 'Z:\' In the last case Z: is a network drive pointing to: '\\servername\sharename\' If you use that ALL your users need to have the same Z: pointing tot the sharename and it can never change, so using the full path (\\servername\sharenama\...') is safer. If you would still like to actually store the image in the database, google gives you plenty of help: goolge your friend[^]