Author: paulo32 | Posted on: 3/2/2010 5:49:02 AM | Views : 376

 
Hello
 
I need to insert a image on my table database, but i still get the error: is not possible to convert image to byte.
My question is: How to convert the image to insert on my database.
My code is :
 
 
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
        Using connection As New SqlConnection("Data Source=.\SQLEXPRESS;Initial Catalog=teste1;Integrated Security=SSPI;")
            'Comando
            Using command As New SqlCommand("INSERT INTO TABELA1 (UM,DOIS,IMAGE)Values(@UM,@DOIS,@IMAGE)", connection)
                'Configura os parâmetros.
& ...

Go to the complete details ...