FileInputStream fis = null;
try {
fis = new FileInputStream(file);
int count = 0;
while ((count = fis.read(buf)) != -1)
vfsService.writeData(sessionID, fileSessionID, buf, count);
} catch (IOException e) {
e.printStackTrace(System.err);
} finally {
if (fis != null)
try {