Uploading base64 encoded file to Parse server

I’m using parse server and I’m developing on android. I pick a file from the storage and can get the base64 encoded string out of that. Now I want to upload file to parse server using encoded string, but I really got no idea how to do it, because the parseFile.save() function in parse-android-sdk accepts byte array only.

Android sdk accepts files. For example:

ParseFile media = new ParseFile(file);
You dont need to encode file to base 64 or byte array

I know but it seems that some problems will disappear if I do so. So do you know a way to uplaod base64 encoded file to parse server using android?

You can’t directly upload base64. But you can set base64 as cloud code parameter and upload file in cloud code