Hi,
I use a picture from the phone and I modified it.
My problem is: how to save it into my DB (table: photo (id_photo INT,name_photo TEXT, photo BLOB)).
I saw the following code a lot of time on the forum :
'convert the image file to a bytes array
Dim InputStream1 As InputStream
InputStream1 = File.OpenInput(File.DirAssets, "pallette.png")
Dim OutputStream1 As OutputStream
OutputStream1.InitializeToBytesArray(1000)
File.Copy2(InputStream1, OutputStream1)
Dim Buffer() As Byte 'declares an empty array
Buffer = OutputStream1.ToBytesArray
'write the image to the database
SQL1.ExecNonQuery2
But it doesn't explain how to save a modified picture.
Thanks in advance for your help
Luc
I use a picture from the phone and I modified it.
My problem is: how to save it into my DB (table: photo (id_photo INT,name_photo TEXT, photo BLOB)).
I saw the following code a lot of time on the forum :
'convert the image file to a bytes array
Dim InputStream1 As InputStream
InputStream1 = File.OpenInput(File.DirAssets, "pallette.png")
Dim OutputStream1 As OutputStream
OutputStream1.InitializeToBytesArray(1000)
File.Copy2(InputStream1, OutputStream1)
Dim Buffer() As Byte 'declares an empty array
Buffer = OutputStream1.ToBytesArray
'write the image to the database
SQL1.ExecNonQuery2
But it doesn't explain how to save a modified picture.
Thanks in advance for your help
Luc