Hi please help me to get out of this issue. Here I writing my services in Spring. I am trying to upload a large video file onto the server. For that in android I am splitting the video into some parts(each has 1 MB) as chunks. And their local paths are as below
[ /storage/emulated/0/1493357699.mp4.001,
/storage/emulated/0/1493357699.mp4.002,
/storage/emulated/0/1493357699.mp4.003,
/storage/emulated/0/1493357699.mp4.004,
/storage/emulated/0/1493357699.mp4.005,
/storage/emulated/0/1493357699.mp4.006,
/storage/emulated/0/1493357699.mp4.007,
/storage/emulated/0/1493357699.mp4.008 ]
I wrote the code at server side as below
@RequestMapping(value = "/replyToQuestionAns", method = RequestMethod.POST, headers = "content-type=multipart/*", produces = { "application/json" })
@ResponseBody
public StatusObject replyToQuestionAns(
@RequestParam Map<String, String> requestParams,
@RequestParam("file") MultipartFile[] files) throws Exception {
return null;
}
I am getting all chunk(splitted) files but I don't know how to handle them. I tried to merge all chunked videos. But I don't know how to merge them. Please help me.