Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Would like to convert Base64 string and convert it to an image in my TSQL.

$
0
0

I have a Base64 encoded string/image field in my SQL database.  I would like to take that string and convert it to an image.

I know I need to use Convert.FromBase64String(mybase64string)  and set it to a Bytes()  variable.

If possible, I would like to do this in my TSQL.  Could someone help me integrate this into a simple TSQL?

I'd image it would involve using a CAST/CONVERT to create a bytes data type then loading it.

Thank you in advance.


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>