-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLOB data support (MBTiles etc.) #10
Comments
An excellent test case is to try the following: In case of cordova-sqlite-storage 0.7.7, cordova-sqlite-ext, and Cordova-sqlite-evplus-legacy-attach-detach-free the result would contain In case of a recent version of cordova-sqlite-storage (such as 1.5.0) and this version there would be no value for |
The BASE64 User Defined Function has been added to cordova-sqlite-ext and this version to support the reading of BLOB column values. |
@brodybits - re BLOB read / write modes, I would appreciate if you can help me understand:
|
Marked as a |
The existing cordova-sqlite-ext and Cordova-sqlite-evplus-legacy-attach-detach-free versions support the reading of BLOB data by automatic conversion to base64 encoding but it has the following issues:
androidDatabaseImplementation: 2
setting to get this functionality on AndroidHere is an example case where the cordova-sqlite-ext and Cordova-sqlite-evplus-legacy-attach-detach-free versions deviate from the behavior in (WebKit) Web SQL:
Due to both the challenges of fixing the Android-sqlite-connector & Windows versions and the deviation from (WebKit) Web SQL behavior I would like to solve this a different way in the future.
The proposed solution is to add a user defined function (UDF) such as BASE64 or TOBASE64 and then the user could retrieve BLOB data for processing with SQL like this:
SELECT BASE64(image_data) from ImageTable
The text was updated successfully, but these errors were encountered: