upload and download test by Java