I want to add the value from my database to a label.
The value has a datatype varbinary(max)
string buF = dt.Rows[i]["BuF"].ToString();
Label3.Text = buF;
For this I get the output as System.Byte[] which is not the correct value.
Any suggestions?
Thanks
This sounds like a job for the
BitConverterclass:Note that this will insert hyphens between each
bytevalue in the output string. If you want to remove the hyphens and/or generate a different string format then you could do something like this, for example: