Convert SQL Server Varbinary to Byte Array

I had a need to convert the HEX output from SQL Server Management Studio's Results to Grid output of a varbinary column back to the byte array of the file it represented. I couldn't find an all-in-one script online, so I thought I'd create this C# gist. (original parse script here)

https://gist.github.com/aaronhoffman/ad16b27d14e2f5d7e16c


Hope this helps,
Aaron

Comments

Popular posts from this blog

Install and Setup Windows 10 for a Developer

Configure SonarAnalyzer.CSharp with .editorconfig, no need for SonarCloud or SonarQube

Search iPhone Text Messages with SQLite SQL Query