|
User #109447 794 posts
Whirlpool Enthusiast
|
I am having trouble trying to save a file to a SQL Server image field using VB.NET 2005. I have tried the following 2 methods from Microsoft: |
posted 2007-Apr-8, 9pm AEST
|
|
User #61010 15003 posts
Whirlpool Forums Addict
|
In MySQL you create a BLOB field, and you simply insert the binary data. |
posted 2007-Apr-8, 10pm AEST
|
|
User #116301 1230 posts
Whirlpool Enthusiast
|
Set the column type in SQL Server to varbinary(MAX). |
posted 2007-Apr-8, 11pm AEST
|
|
User #109447 794 posts
Whirlpool Enthusiast
|
and you simply insert the binary data. |
posted 2007-Apr-8, 11pm AEST
|
|
User #109447 794 posts
Whirlpool Enthusiast
|
using(SqlCommand sqlCommand = new SqlCommand(commandText, sqlConnection)) { |
posted 2007-Apr-8, 11pm AEST
|
|
User #116301 1230 posts
Whirlpool Enthusiast
|
I was really after some ADO.NET code as I am doing it from a Windows Form, not an ASP.NET page |
posted 2007-Apr-8, 11pm AEST
|