adding binary and byte file support spark