79215659

Date: 2024-11-22 15:45:27
Score: 1.5
Natty:
Report link

QueueClient expects a message that is in UTF-8 format. This is from the documentation:

A message must be in a format that can be included in an XML request with UTF-8 encoding.

enter image description here

enter image description here

The way to serialize your object was causing problems. Using something like this will work:

var queueMessage = System.Text.Json.JsonSerializer.Serialize(item);

because this implementation internally uses Utf8JsonWriter.

Most likely the old library that you ended up using does support Base64 encoding.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sobrod