G
Guest
I have the following code
System.Data.SqlTypes.SqlBytes bytes = reader.GetSqlBytes(columnIndex);
MemoryStream ms = new MemoryStream(bytes.Buffer);
My question is will the Buffer property of SqlBytes reliable get all the
data from the bytes retreived from the GetSqlBytes function. It seems to do
so in my testing but will this always be the case. The documentation is a bit
sparse on this. It was the only way I could find to populate a memory stream
from the SqlBytes.
System.Data.SqlTypes.SqlBytes bytes = reader.GetSqlBytes(columnIndex);
MemoryStream ms = new MemoryStream(bytes.Buffer);
My question is will the Buffer property of SqlBytes reliable get all the
data from the bytes retreived from the GetSqlBytes function. It seems to do
so in my testing but will this always be the case. The documentation is a bit
sparse on this. It was the only way I could find to populate a memory stream
from the SqlBytes.