ReadBase64ElementValue method
Reads the base64 element value.
Implementation
Future<Uint8List> ReadBase64ElementValue() async {
this.EnsureCurrentNodeIsStartElement();
final content = await this._xmlReader.ReadString();
return base64.decode(content);
// todo : check base64 reading
// // Can use MemoryStream.GetBuffer() if the buffer's capacity and the number of bytes read
// // are identical. Otherwise need to convert to byte array that's the size of the number of bytes read.
// return (memoryStream.Length == memoryStream.Capacity) ? memoryStream.GetBuffer() : memoryStream.ToArray();
// memoryStream.Close();
}