Android Question writeBlob error?

tian fang

Member
Licensed User
Dim InputStream1 As InputStream
InputStream1 = File.OpenInput(File.DirDefaultExternal,"user.jpg")
Msgbox(InputStream1,"1")
Dim OutputStream1 As OutputStream
OutputStream1.InitializeToBytesArray(1000)
File.Copy2(InputStream1, OutputStream1)
Msgbox(OutputStream1,"2")
Dim Buffer3() As Byte 'declares an empty array
Buffer3 = OutputStream1.ToBytesArray
'write the image to the database
' SQLite2.ExecNonQuery2("INSERT INTO users VALUES(UserID,SchoolId,loginbj'smiley')", Array As Object(Buffer3))
SQLite2.ExecNonQuery2("update users ('photo') value (?) where loginbj='1' ", Array As Object(Buffer3))
 
Top