Hey,
I’m trying to upload to a server a picture from the Camera Roll.
I can access an image representation that looks like this:
{
"node": {
"type":"ALAssetTypePhoto",
"group_name":"Camera Roll",
"location":{},
"image" :{
"isStored":true,
"width":1280,
"uri":"assets-library://asset/asset.JPG?id=AC072879-DA36-4A56-8A04-4D467C878877&ext=JPG",
"height":850},
"timestamp":1405312098
}
}
I was thinking of (somehow) read the binary file, convert that to base64 and post this as JSON using fetch. Is that the best way to upload this to a server for now ?
Anybody have an Android solution for OP’s problem?
Android+1