Forum Discussion
TanyaYatskovska
Alumni
12 years agoHi,
Do you want to use the SetValue method to set values of the array on a client side? I can suggest that you use the following approach to set the array of bytes from a string.
var binaryData = dotNET.System_Text.Encoding.ASCII.GetBytes_2("SomeMessage");
The approach with GetType("System.Byte") should work fine on the server side.
Do you want to use the SetValue method to set values of the array on a client side? I can suggest that you use the following approach to set the array of bytes from a string.
var binaryData = dotNET.System_Text.Encoding.ASCII.GetBytes_2("SomeMessage");
The approach with GetType("System.Byte") should work fine on the server side.