file = new File(file, name);
}
HttpInputStream hin = new HttpInputStream(in);
try {
FileOutputStream out = new FileOutputStream(file);
hin.copyTo(out);
log(hr, Server.LOG_DIAGNOSTIC, "wrote file: " + file);
} catch (IOException e) {
log(hr, Server.LOG_LOG, "Can't write file: " + e.getMessage());
}
}