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();
}
As Shirone said, we cannot transfer more than 10MB of files.Let's keep the exception in mind you.
Also,
byte[]data=FileUtils.readFileToByteArray(file);\
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
581 PHP ssh2_scp_send fails to send files as intended
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.