Answer the question
In order to leave comments, you need to log in
How to determine the end of copying a file to the file system?
there is a function that copies a file from a temporary directory
try(OutputStream outputStream = new FileOutputStream(new File(fileFullPath));){
int read = 0;
byte[] bytes = new byte[1024];
while ((read = is.read(bytes)) != -1) {
outputStream.write(bytes, 0, read);
}
outputStream.flush();
} catch (IOException e) {
logger.error(e.getMessage(), e);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question