MetricStream Interview Question

Write code in Java to upload and download file?