I am working on React-Native-OpenPGP for Encryption and Decryption. I want to take an image from my folder (local image fetch)/ Image url and convert that image into Uint8Array for encryption/Decryption . I am new to react native , Not able to find a better solution . Links can also help. Need a process to give an image path and convert it into Uint8Array.
Moreover also need a solution to convert an image file to binary data for Encryption/Decryption . Is it possible as openpgp provides two ways to do that one is through String and another is through Uint8Array data ?