Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365
http://aadinternals.com/aadinternals
MIT License
1.26k stars 216 forks source link

Fixing TTS #51

Closed fraga closed 1 year ago

fraga commented 1 year ago

Fixing #50, this is the error:

Set-BinaryContent : Cannot process argument transformation on parameter 'Value'. Cannot convert value "[byte[]]" to type "System.Byte[]". Error: "Cannot convert value "[byte[]]" to 
type "System.Byte". Error: "Input string was not in a correct format.""
At line:1 char:37
+ Set-BinaryContent -Path $mp3 -Value [byte[]](Convert-B64ToByteArray - ...
+                                     ~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Set-BinaryContent], ParameterBindingArgumentTransformationException
    + FullyQualifiedErrorId : ParameterArgumentTransformationError,Set-BinaryContent