upload large file in spring using FileCopyUtils.copy
<p>I'm using <strong>org.springframework.util.FileCopyUtils</strong> to upload files in my projects. </p>

<pre><code>FileCopyUtils.copy(multipartFile.getBytes(), new FileOutputStream( basePath + "/" + uploadedfile.getFileName()));
</code></pre>

<p>It use a FileOutputStream for uploading file and for smaller file this work fine, But how I can upload file with 2GB size or higher?</p>