---
title: "System::Text::Json::Utf8JsonWriter::WriteBase64String method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json/utf8jsonwriter/writebase64string/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use WriteBase64String method of System::Text::Json::Utf8JsonWriter class in C++."
---

## Utf8JsonWriter::WriteBase64String(JsonEncodedText, ReadOnlySpan\<uint8_t\>) method




```cpp
void System::Text::Json::Utf8JsonWriter::WriteBase64String(JsonEncodedText propertyName, ReadOnlySpan<uint8_t> bytes)
```

## See Also

* Class [JsonEncodedText](../../jsonencodedtext/)
* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [Utf8JsonWriter](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## Utf8JsonWriter::WriteBase64String(ReadOnlySpan\<char16_t\>, ReadOnlySpan\<uint8_t\>) method




```cpp
void System::Text::Json::Utf8JsonWriter::WriteBase64String(ReadOnlySpan<char16_t> propertyName, ReadOnlySpan<uint8_t> bytes)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [Utf8JsonWriter](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## Utf8JsonWriter::WriteBase64String(ReadOnlySpan\<uint8_t\>, ReadOnlySpan\<uint8_t\>) method




```cpp
void System::Text::Json::Utf8JsonWriter::WriteBase64String(ReadOnlySpan<uint8_t> utf8PropertyName, ReadOnlySpan<uint8_t> bytes)
```

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [Utf8JsonWriter](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## Utf8JsonWriter::WriteBase64String(String, ReadOnlySpan\<uint8_t\>) method




```cpp
void System::Text::Json::Utf8JsonWriter::WriteBase64String(String propertyName, ReadOnlySpan<uint8_t> bytes)
```

## See Also

* Class [String](../../../system/string/)
* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [Utf8JsonWriter](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
