Binary file upload and download working