How to save base64 to Image in ms sql


Have a base64-encodad string (i image file)

How do i save this to a image field in ms sql ?

Please give me example
Who is Participating?
lcohanConnect With a Mentor Database AnalystCommented:
According to Microsoft research this will depend on the size of your image. If your images are < 256Kb, you should use VARBINARY(MAX). If they are above 1Mb, then you should use a FILESTREAM where the image is usually stored on the filesystem outside the database.

Also please have a look at code sample from the link below:
team2005Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.