This is how our data is kept in the DB:
I'm getting the DB table in a datatable and looping through. The same data is implicitly converted to a byte array. This is from debug session:
I want the data as is. I will write it to a file. Currently I can access to bytearray with row.ItemArray[0]
. Its value is {byte[70]}
. There's no way to use index on row.ItemArray[0]
. row.ItemArray[0][0]
does not give you 86
.
I don't need 86
anyway. If I write row.ItemArray[0]
to a file, it looks System.Byte[]