简体   繁体   中英

Why my byte array is split at 0x00 when i insert it into my db (SQL SERVER, C++)

I have to insert a byte array into a VARBINARY(max) in SQLServer2008 trough a stored procedure and when one of my byte array element is equal to 0x00 my byte array is split.

I use an SQLBindParameter to insert my data in the DB, and it work normally when I haven't any 0x00 value in my array.

我还可以更改插入方法,因此,如果有人已经做过一些事情,可以将二进制流(byte [])放入sql server中的varbinary中,那可能会对我有所帮助。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM