handle downloading binary files