commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zizou77 <pa...@laposte.net>
Subject OutOfMemoryError with VFS
Date Mon, 02 Oct 2006 14:29:00 GMT

Hi,

i would like to copy big big file (10G or 20G) with vfs.
So i use:

FileObject file = flowRepository.resolveFile("src.txt");
InputStream is = file.getContent().getInputStream();
FileObject flow = flowRepository.resolveFile("cible.txt");
OutputStream out = flow.getContent().getOutputStream();
IOUtils.copy(is, out);  
out.close();
is.close();
file.close();
flow.close();

but i've got an OutOfMemoryError with IOUtils.copy.

Help please!

zizou
-- 
View this message in context: http://www.nabble.com/OutOfMemoryError-with-VFS-tf2369948.html#a6602245
Sent from the Commons - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message