M
Marius Gheorghe
Is it possible to insert a BLOB value into a field using only SQL ? I
mean without an IDbParameter.
mean without an IDbParameter.
Marius Gheorghe said:Is it possible to insert a BLOB value into a field using only SQL ? I
mean without an IDbParameter.
Marius Gheorghe said:Is it possible to insert a BLOB value into a field using only SQL ? I
mean without an IDbParameter.
cmd.CommandText = "insert into categories(picture)
values(" + sb.ToString() + ")";
to know if there is a way to do this WITHOUT usingAlso try with
cmd.CommandText = "insert into categories(picture) values('" +
sb.ToString() + "')"; for text.
Marius Gheorghe said:Thomas the sample you linked is using SqlParameters and i have asked
specifically for SQL only solution. Thanks for the link anyway.
Chad...let's take SqlServer and a "Image" field. If i tried to insert
the text representation (with '') of the byte array which represents the
image i get a "Operand type clash: text is incompatible with image". If
i try without the text representation (without '') i get a "The number
that starts with [part of byte arry] is too long".
=?Utf-8?B?RWx0b24gVw==?= said: