github Azure/azure-sdk-for-java azure-storage-queue_12.9.0-beta.2

latest releases: azure-identity-broker_1.1.8, azure-identity_1.14.2, azure-ai-translation-text_1.1.0...
pre-release3 years ago

12.9.0-beta.2 (2021-03-29)

  • Updated azure-storage-common and azure-core dependencies.

Support for binary data, custom shapes and Base64 encoding

This release adds a convenient way to send and receive binary data and custom shapes as a payload.
Additionally, support for Base64 encoding in HTTP requests and responses has been added that makes interoperability with V11 and prior Storage SDK easier to implement.

The QueueClient.sendMessage and QueueAsyncClient.sendMessage consume com.azure.core.util.BinaryData in addition to String.
QueueMessageItem and PeekedMessageItem expose new property getBody() of com.azure.core.util.BinaryData type to access message payload and should be used instead of getMessageText().

See BinaryData for more information about handling String, binary data and custom shapes.

Receiving message as string

Before:

QueueMessageItem message = queueClient.receiveMessage();
String messageText = message.getMessageText();

After:

QueueMessageItem message = queueClient.receiveMessage();
BinaryData body = message.getBody();
String messageText = body.toString();

Don't miss a new azure-sdk-for-java release

NewReleases is sending notifications on new releases.