Hi Community I'm testing the features of FireBaseStorage, and I wanted to understand if it is possible to load file.db to be recovered later. The problem is that once the .db is populated, the UploadFile instruction saves an empty file.db in the storage by transcribing the data.
I am trying to make a copy of the populated .db, but apparently there is something wrong with this instruction because the .db in the storage is empty.
I left out the authentication part.
All this can be done with a .txt file passing the parameters of the .db, I wanted to know if a direct copy can be made without having to go through all the parameters.
Thanks in advance for availability
B4X:
If File.Exists(File.DirInternal,"DB.db")= False Then
File.Copy(File.DirAssets,"DB.db",File.DirInternal,"DB.db")
End If
My = File.DirInternal
s.Initialize(My,"DB.db",True)
B4X:
dim Variable as string ="Hello World"
s.ExecNonQuery("INSERT INTO Table1 (Culomn1)VALUES('"& Variable &"')")
I am trying to make a copy of the populated .db, but apparently there is something wrong with this instruction because the .db in the storage is empty.
B4X:
Starter.storage.UploadFile(File.DirInternal,"DB.db",$"/public/DB.db"$)
I left out the authentication part.
All this can be done with a .txt file passing the parameters of the .db, I wanted to know if a direct copy can be made without having to go through all the parameters.
Thanks in advance for availability