I testing photo capture application, for making albums.
Picture are stored into SQLite db, but cannot insert into MySQL.
I using MYSQL lib and in
reading BLOB with :
....
Dim upic() AS Byte
baza1.Position = 0
upic= baza1.GetBlob("picture")
.....
and then wish to send to Mysql with statement:
query="INSERT INTO pics (pictures) VALUES ('" & Array As Object(upic) & "')"
db.ExecuteNonQuery(query)
row is inserted, but only 27 bytes instead of picture with cca 280kB.
Any idea?
Picture are stored into SQLite db, but cannot insert into MySQL.
I using MYSQL lib and in
reading BLOB with :
....
Dim upic() AS Byte
baza1.Position = 0
upic= baza1.GetBlob("picture")
.....
and then wish to send to Mysql with statement:
query="INSERT INTO pics (pictures) VALUES ('" & Array As Object(upic) & "')"
db.ExecuteNonQuery(query)
row is inserted, but only 27 bytes instead of picture with cca 280kB.
Any idea?