M
Marcio Kleemann
I have a stored procedure in SQL Server that inserts a row into a table. One
of the columns of the table has the "image" data type, which maps to a byte
array in ADO SqlClient.
The problem I have is that the data that I'm adding as a parameter when
calling the stored procedure comes from a TextBox on the web page, which is
of type string. As a result, I keep getting errors because it can't convert
a string to a byte array. I cannot seem to find any kind of method that
would do that for me.
Does anyone know what would be the correct procedure to pass data for
inserting into a column of type image, when the data is coming as a string
from a text box?
Or, if nothing else, how could I convert a string to a byte array?
Thanks
of the columns of the table has the "image" data type, which maps to a byte
array in ADO SqlClient.
The problem I have is that the data that I'm adding as a parameter when
calling the stored procedure comes from a TextBox on the web page, which is
of type string. As a result, I keep getting errors because it can't convert
a string to a byte array. I cannot seem to find any kind of method that
would do that for me.
Does anyone know what would be the correct procedure to pass data for
inserting into a column of type image, when the data is coming as a string
from a text box?
Or, if nothing else, how could I convert a string to a byte array?
Thanks