Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

I need to upload media content (video or image) storage in SQL Azure to Azure BLOB Container

$
0
0

Actually the information is stored in BASE64 in a varchar field. I've created a stored procedure to convert that field into VARBINARY. With the following code:

cast(N'' as xml).value('xs:base64Binary(sql:column("[name of the column]"))', 'varbinary(MAX)')

The result is shown in the following picture:

The media is storage (SQL Azure) in Varbinary, after storing the media content as file in the BLOB Container, I cannot be able to render the media to watch its content if I donwload it in my local computer. Even If I try to open the file with a local editor I can see the same value as the image shows above. All the convertion process is running in Azure SQL Server and call it using a ADF process.

What is the best approach to load those media using Azure Data Factory? Is it another way to save BASE64 to image from SQL to Blob storage in AZURE? Thanks


Viewing all articles
Browse latest Browse all 935

Trending Articles



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