Skip to content

Tag: cordova

Cordova SQLite save BLOB

I have a problem with Cordova SQLite plugin. How can I save BLOB image to SQLite? I have BLOB object in JS: And I trying to save it And when i trying to get this image: I get this string: How can i convert it to BLOB again? Also i trying to save images in base64, but i can’t save

Converting base64 to blob in javascript

I tried to convert a JPEG’s base64 string to a blob on a Cordova/hybrid app running on iOS 8 using the following function b64toBlob. However it’s giving an error when we do How can be work around this error? Answer Try this out. Please note that dataURI is assumed to include base64 prefix. (e.g. &…

Swipe gesture in phonegap android

How swipe guesture to be implemented in phonegap android? Answer If you’re using jQuery mobile you can use the built in event swipe. Documentation E.g.: If you’re using jQuery UI take a look at jQuery UI Touch Punch. jQuery UI Touch Punch is a small hack that enables the use of touch events on sit…