Uploading Video on Amazon S3 - "too much to process! with exit code 137" -
i trying upload video file amazon bucket. below code using so. followed example on amazon documentation.
it starts , says "too process!" , exits 137. why failing upload? size of video 80 mb.
string existingbucketname = "***mybucket***"; string keyname ="***myvideo.mov***"; string filepath = "***/users/myhomedir/desktop/myvideo.mov***"; transfermanager tm = new transfermanager(new profilecredentialsprovider()); system.out.println("hello"); // transfermanager processes transfers asynchronously, // call return immediately. upload upload = tm.upload( existingbucketname, keyname, new file(filepath)); system.out.println("hello2"); try { // or can block , wait upload finish upload.waitforcompletion(); system.out.println("upload complete."); } catch (amazonclientexception amazonclientexception) { system.out.println("unable upload file, upload aborted."); amazonclientexception.printstacktrace(); }
found problem. multipart resolver! needed increase max in memory size. multipartresolver.setmaxinmemorysize(90971520);
Comments
Post a Comment