try {
srcfilep = srcf.open(srcfile, FileAgent.READ);
// Now loop, reading from src and writing to dest
while (true) {
buf = srcfilep.readBytes(1000000);
// logger.info(" Read " + buf);
// logger.info(buf);
// logger.info(buf.length);
stream.write(buf);
if (buf.length < 1000000) {