public static void writeToFile ( final File fileNode , final InputStream data ) throws FrameworkException , IOException { setFileProperties ( fileNode ) ; try ( final FileOutputStream out = new FileOutputStream ( fileNode . getFileOnDisk ( ) ) ) { IOUtils . copy ( data , out ) ; } }
Write binary data from FileInputStream to a file and reference the file on disk at the given file node