Sql server 使用Powershell在SQL中存储字节数组

Sql server 使用Powershell在SQL中存储字节数组,sql-server,powershell,Sql Server,Powershell,Powershell是否有办法在SQL Server中存储字节数组,然后再次从SQL Server中检索字节数组,并将其用作字节数组?转换为字符串: byte[]myByteArray=System.Text.Encoding.ASCII.GetBytes(“字符串”); 字符串myString=System.Text.Encoding.ASCII.GetString(myByteArray) 将字符串存储在SQL中,检索并转换回byteArray(我将把这些步骤留给您)

Powershell是否有办法在SQL Server中存储字节数组,然后再次从SQL Server中检索字节数组,并将其用作字节数组?

转换为字符串: byte[]myByteArray=System.Text.Encoding.ASCII.GetBytes(“字符串”); 字符串myString=System.Text.Encoding.ASCII.GetString(myByteArray)

将字符串存储在SQL中,检索并转换回byteArray(我将把这些步骤留给您)