Groups | Blog | Home
all groups > sql server (alternate) > october 2004 >

sql server (alternate) : BitArray to binary


ramziabb NO[at]SPAM gmail.com
10/14/2004 1:17:40 PM
I want to store a binary string in SqlServer from VB .NET through a
stored procedure. I have been storing the binary data in a BitArray
which I am not set on by any means. When I pass the BitArray into a
stored procedure, which is looking for a variable of type binary, it
throws the following: "Object must implement IConvertible." BitArray
obviously does not implement IConvertable.

If anyone has a good way of passing binary data into a stored
Simon Hayes
10/15/2004 4:10:58 PM

[quoted text, click to view]

You might get a better answer by posting in a .NET or VB group. I don't know
what a BitArray is, but you can use the ADO Command object to execute stored
procedures with correctly typed parameters, which might be another
possiblity for you.

Simon

AddThis Social Bookmark Button