there may be some input that is not in good shape, resulting in an Sql injection. so I suggest you try this. with a parameterized query. also try giving some nice descriptive name for your columns. The image will be ambiguous. as this will be considered as a keyword.
cmd.CommandText = "INSERT INTO Table1 (Product, Manufacturer, Description, Price, [Image]) VALUES (@column1, @column2, @column3, @column4, @img )";
cmd.Parameters.AddWithValue("@column1", yourval);
cmd.Parameters.AddWithValue("@column2", yourval);
cmd.Parameters.AddWithValue("@column3", yourval);
cmd.Parameters.AddWithValue("@column4", yourval);
cmd.Parameters.AddWithValue("@img", yourPhoto);
source
share