[ad_1]
Using Powershell, I insert a picture into a SQL database varbinary(max) column via an API.
I use Get-Content -Encoding byte to convert the picture to a byte array, but it is slow:
[byte[]]$picture = Get-Content $picturePath -Encoding byte
Is there a way to improve performance?
[ad_2]