I need to store image in sql database.For this purpose I have to convert the image into byte array.Since different image will have different size what should I give the maximum column length for the image column while creating the database.
Thanks
I need to store image in sql database.For this purpose I have to convert the image into byte array.Since different image will have different size what should I give the maximum column length for the image column while creating the database.
Thanks
Use VARBINARY(MAX). This will solve your problem of size. There is an article that can help you. Here you can find it.
Note: Sql Server also contains an Image Data type but as per MSDN site, it is going to be removed from future versions so it is better to go with varbinary.