Retrieving an Image from Drone

Hello,

This is a bit of a follow-up from my previous post, “Programmatically Taking a Picture”.

I might have mentioned before that I am trying to develop an Android app that can take a picture, collect metadata at the time that the picture is taken, then send the image with the relevant metadata off somewhere else, like AWS S3. To do that, I need to be able to retrieve the most recent image. The best I could find on that so far is by calling photoState().latestMediaId() on the Main Camera object to retrieve the ID of the most recent photo, but that’s just a String.

How could I get the actual image, whether that be in the form of a file (JPEG), a byte array, a bitmap, or whatever else?

You want to interact with the MediaStore:

https://developer.parrot.com/docs/refdoc-android/com/parrot/drone/groundsdk/device/peripheral/MediaStore.html

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.