GetSqlBinary returns a SqlBinary structure
Represents a variable-length binary data stream that must be stored or retrieved from a database.
GetSqlBytes returns the SqlBytes class
Represents a mutable reference type that wraps either a buffer or a stream.
It seems that the difference is that GetSqlBinary gives you a piece of data as a byte array, while GetSqlBytes is similar, but it saves the data in a buffer that allows you to interact with the underlying data as a stream.
source share