How to upload mp4 images from Android devices to Parse.com

Asked 2 years ago, Updated 2 years ago, 96 views

I don't know how to upload MP4 images from an Android device to Parse.com.

File file=newFile(path);
    try{
        byte[] data=FileUtils.readFileToByteArray(file); // Convert any file, image or video into byte array
        ParseFile Pfile = new ParseFile("sample.mp4", data);
        Pfile.saveInBackground();
        ParseObject jobApplication = new ParseObject("JobApplication");
        jobApplication.put("applicantName", "Joe Smith";
        jobApplication.put("applicantResumeFile", Pfile);
        jobApplication.saveInBackground();
    } catch(IOExceptione){
        e.printStackTrace();
    }

android parse.com

2022-09-30 20:36

1 Answers

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.