Forum Discussion
Vasily_Zaytsev
Sep 23, 2021Iron Contributor
How can I decode varbinary(max)?
Hello. How can I decode some values in varbinary(max)? If I have 30 91 40 it is 1100 in decimal If I have 30 A1 40 it is 2200 in decimal BR, Vasily
- Sep 23, 2021Sorry, I found solution
[bitconverter]::ToDouble([byte[]](0x00,0x00,0x00,0x00,0x00,0x30,0x91,0x40),0)
[bitconverter]::ToDouble([byte[]](0x00,0x00,0x00,0x00,0x00,0x30,0xA1,0x40),0)
Have a nice day
Vasily_Zaytsev
Sep 23, 2021Iron Contributor
Sorry, I found solution
[bitconverter]::ToDouble([byte[]](0x00,0x00,0x00,0x00,0x00,0x30,0x91,0x40),0)
[bitconverter]::ToDouble([byte[]](0x00,0x00,0x00,0x00,0x00,0x30,0xA1,0x40),0)
Have a nice day
[bitconverter]::ToDouble([byte[]](0x00,0x00,0x00,0x00,0x00,0x30,0x91,0x40),0)
[bitconverter]::ToDouble([byte[]](0x00,0x00,0x00,0x00,0x00,0x30,0xA1,0x40),0)
Have a nice day