First: Please use code tags for your code.
Your probably saving only the array reference to your project. Technically, you should not need the
but just use upic. The problem with that is that you may blow through the allowable statement size of your given SQL database. You should be using a prepared statement and ExecuteNonQuery2 to insert the byte array into your database.
query="INSERT INTO pics (pictures) VALUES(?)"
db.ExecuteNonQuery2(query, Array As Object(upic))
Please note that in this case you do need to use
, since it is a different use case for the variable.