Can I use H2, HSQLDB, or any other embedded database, with a database from an InputStream instead of a file?
I’m planning to use AssetManager.open() on Android, which can return an InputStream in random access mode.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
H2 supports a pluggable file system that allows you to access read-only databases in a zip or jar files. However, there is currently no file system implementation for the
AssetManager. It should be relatively easy to implement it. The best starting point is probably FileSystemZip and FileObjectZip.