>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
> procedure through a parameter array I'd appreciate it.

Re: VB + SQL SERVER - Using binary data types by Sahil

Sahil
Fri Oct 15 14:34:14 CDT 2004

The problem is the datatype in the parameter doesn't match the datatype on
the database. Try using the SqlDataType (or is it SqlDbType) enum to map the
exact data type, on your SqlParameter.

- Sahil Malik
You can reach me thru my blog at
http://www.dotnetjunkies.com/weblog/sahilmalik

"Ramzi Abboud" <ramziabb@gmail.com> wrote in message
news:a5617e65.0410151024.2dfcd7b3@posting.google.com...
> >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
> > procedure through a parameter array I'd appreciate it.