Sending an image to native code


#1

Hello,

Please excuse the general question, but I am a beginner to ionic/cordova and I feel a little bit lost on a very specific task I want to achieve.

I have the following use case that I would like to implement:

  • We have an image imgEx.png in the www/img directory ( later from url or other source )

  • I would like to be able to get this image from ionic / cordova in some in my iOS objective C code

  • Do some image processing and send back the modified image to Ionic/Cordova for display purposes

Since the data can be quite large, I am thinking this is a more efficient approach as to passing the image in a base64 string. (Which I also tried and failed)

The image processing, iOS code is obviously not of importance here.

Thanks in advance!