Hellp There ... Any help please
1. I have a MySql Database on NAS Disc and i have a table with images ( Blob )
1.1. From PC all image is visible and is ok
Now
2. I have an android app with SQLite3 database
2.1. When syncronize data i read from MySql Database ( from Nas ) and all records i add in SQLite tables
2.1.1. I use mysqllib (v.2.00) for connection to MySql and work correct
The problem is
2.2.1. When read from MySql if i use c.GetBlob("Img") then i get an error
2.2.2. When i use Dim Buffer() as Byte = v.GetString("Img").GetBytes("UTF8") all is ok
2.2.3. Finally save to SQLite using Array as Object(Buffer)
Is 2.2.2. correct method to read an image from MySql Blob field and save to SQLite ???
Thanks
1. I have a MySql Database on NAS Disc and i have a table with images ( Blob )
1.1. From PC all image is visible and is ok
Now
2. I have an android app with SQLite3 database
2.1. When syncronize data i read from MySql Database ( from Nas ) and all records i add in SQLite tables
2.1.1. I use mysqllib (v.2.00) for connection to MySql and work correct
The problem is
2.2.1. When read from MySql if i use c.GetBlob("Img") then i get an error
2.2.2. When i use Dim Buffer() as Byte = v.GetString("Img").GetBytes("UTF8") all is ok
2.2.3. Finally save to SQLite using Array as Object(Buffer)
Is 2.2.2. correct method to read an image from MySql Blob field and save to SQLite ???
Thanks