As far as I know, uploading images to databases is wrong, but in this specific issue, I have to upload images to SQL Server
. I found some results, for example using the base64
string.
My database structure contains a lot of images with type of image
in SQL Server
.
Since I'm unfamiliar with SQL server, I'm using Laravel 5.4 for connecting to databases.
The problem now is this.
How can I upload an image to SQL Server(colomn type:
binary image
) using php in laravel?
What is the best way to display this image?