Updated to pass base64 encoded bytes to flash