Page 1 of 1
Convert byte[] to string
Posted: Wed Jan 26, 2011 6:01 am
by luczan
Hi,
I have a column with data type byte[].
I need to display value of this column like a string. Is it possible to do it?
Thank you
M.
Convert byte[] to string
Posted: Wed Jan 26, 2011 7:01 am
by Alex K.
Hello,
You can use the following code:
Code: Select all
System.Text.Encoding.UTF8.GetString(Field);
Thank you.
Convert byte[] to string
Posted: Wed Jan 26, 2011 7:25 am
by luczan
Thank you,
but i need to use this conversion in Designer, no in my code. Can I add my own function to Designer?
Convert byte[] to string
Posted: Wed Jan 26, 2011 1:54 pm
by Andrew
Hello,
You can use this code in the designer either as an expression of the Text component or in its function.
Thank you.