Hi,
I am using the upload module and tried to use MultiFileBuffer as well as MultiFileMemoryBuffer.
But I am facing a problem where, without creating an own Receiver, I do not see a solution.
MultiFileBuffer:
Created a tmp file with File.createTempFile(String, String)
But how do I get access to this tmp file to delete it?
I can get the inputstream for the file, but I do not get access to the file to clean and delete it after I am finished.
MultiFileMemoryBuffer:
Does store the bytes in memory.
I can get the inputstream, write it into a file and close the stream.
But how do I get the memory cleared?
li n83:
Hi,
I am using the upload module and tried to use MultiFileBuffer as well as MultiFileMemoryBuffer.
But I am facing a problem where, without creating an own Receiver, I do not see a solution.
MultiFileBuffer:
Created a tmp file with File.createTempFile(String, String)
But how do I get access to this tmp file to delete it?
I can get the inputstream for the file, but I do not get access to the file to clean and delete it after I am finished.
MultiFileMemoryBuffer:
Does store the bytes in memory.
I can get the inputstream, write it into a file and close the stream.
But how do I get the memory cleared?