Dear friends!
In my case there is a device that outputs data stream in binary form.
I want to recode binary data into Unicode strings.
To do this, I wrote the following code:
Dim binData as Byte
AxWinsock1.GetData(binData)
System.Text.Encoding.Unicode.GetString(binData)
This code returns an error:
Unable to convert value of type "Byte" to one-dimensional array from Byte.
Can anyone kindly take me to unerstanding the essence of the issue?
Faithfully yours.
In my case there is a device that outputs data stream in binary form.
I want to recode binary data into Unicode strings.
To do this, I wrote the following code:
Dim binData as Byte
AxWinsock1.GetData(binData)
System.Text.Encoding.Unicode.GetString(binData)
This code returns an error:
Unable to convert value of type "Byte" to one-dimensional array from Byte.
Can anyone kindly take me to unerstanding the essence of the issue?
Faithfully yours.