Hi, I am working on my first typescript ionic project. This time over, I am trying to make sure I use as few 3rd party plugins as possible and rely mostly on
ionic-native interfaces to keep my code clean and easy to maintain. This is my first app, so I’m a newbie to the new formats/process of angular 2/3/4
I have two questions:
a) My app is an ‘image catalog manager’ - in other words, you take photos, tag them and my app files and saves them for a specific purpose. I don’t want these images to be saved in the photo gallery because that can be deleted outside of the app. I’d prefer to store it in_app. I’m using
cordova-sqlite. It looks like to save images, I need to base64encode them, which makes images much larger. I also read other posts there that its not good practice to store images in DBs if there are many. So what is the best practice that I can adopt? (Saving to camera gallery and just putting the path URL in the DB is not an option, due to reasons mentioned above). What if I save as a
Blob instead of base64 ? Bad practice in DB?
b) Many apps (example banking apps) allow you to point a camera to an image, and it automatically detects borders and takes a photo without you having to tap on ‘take photo’ (useful for document cropping). How does one go about using this in the new ionic? Is there a way you can route it to ionic-native interface?