B4J Question Save SQLite BLOB field to binary file?

tsteward

Well-Known Member
Licensed User
I want to save the data in a BLOB field to a binary file but don't know how.

My failed code
B4X:
Dim dumpdata As ResultSet = sql1.ExecQuery("SELECT * FROM BINFiles WHERE FileID = '1'")
    Do While dumpdata.NextRow
        File.WriteString(File.DirApp,"testdump.bin",dumpdata.GetBlob("data"))
    Loop
    dumpdata.Close
 

tsteward

Well-Known Member
Licensed User
Thank Erel,
Yes I know there is a single match result. This is also just test code to see if my idea will work.
 
Upvote 0
Top