Profile Picture

Hi all,

I’m looking for some clarification on the options to update a user’s profile picture with Cloud. I see that when a user logs in with facebook this automatically sets their profile pic (which is great!).

If a user wants to update their picture with a photo from their device’s photo library…is it possible to upload this photo and replace the one already set? I see the updateProfile API includes a profilePicture parameter but not exactly sure how to use this to take a picture from the device.

I can get as far as saving a picture with media.show() but not sure how to get this image saved into Corona Cloud. 

Thanks in advance!

-Clark