File fonte = new File(bean.getEndFonte());
File destino = new File(DESTINO);
if (fonte.exists() && !destino.exists()) {
FileInputStream in = new FileInputStream(fonte);
FileOutputStream out = new FileOutputStream(destino);
byte[] buffer = new byte[(int) fonte.length()];
in.read(buffer);
out.write(buffer);
in.close();
out.flush();
out.close();
}
Não compreendo onde pode estar o erro algume poderia dar uma força ai?
no destino ponho o URL do site?
