base64 conversion of binary data