musaso Active Member Licensed User Longtime User Nov 26, 2021 #1 I have created an in-memory database. I wanted to save it directly to a zip file (without saving to device). I use ArchiverPlusZip from the fantastic ProBundle library by Informatix, which allows AddStreamToZip (InputStream, FileName) and I wanted to save the database in a stream. it's possible? B4X: Copy Dim BdSin As SQL BdSin.Initialize("", ":memory:", True) 'I fill in the data ......
I have created an in-memory database. I wanted to save it directly to a zip file (without saving to device). I use ArchiverPlusZip from the fantastic ProBundle library by Informatix, which allows AddStreamToZip (InputStream, FileName) and I wanted to save the database in a stream. it's possible? B4X: Copy Dim BdSin As SQL BdSin.Initialize("", ":memory:", True) 'I fill in the data ......
Erel B4X founder Staff member Licensed User Longtime User Nov 28, 2021 #2 Why make it an in-memory database if you want to save it to a file? I don't think that it is possible. Upvote 0
Why make it an in-memory database if you want to save it to a file? I don't think that it is possible.
musaso Active Member Licensed User Longtime User Nov 28, 2021 #3 Erel said: Why make it an in-memory database if you want to save it to a file? I don't think that it is possible. Click to expand... What I want is not to have to save it in a file, but directly to the zip file (the database contains sensitive data). Upvote 0
Erel said: Why make it an in-memory database if you want to save it to a file? I don't think that it is possible. Click to expand... What I want is not to have to save it in a file, but directly to the zip file (the database contains sensitive data).
Erel B4X founder Staff member Licensed User Longtime User Nov 28, 2021 #4 1. Use SQLCipher. 2. Or encrypt the sensitive fields. I don't see any security advantage for zipping the file. Upvote 0
1. Use SQLCipher. 2. Or encrypt the sensitive fields. I don't see any security advantage for zipping the file.