spring-framework/spring-messaging
Brian Clozel 6dd5c85ed0 Support byte array payloads in ProtobufMessageConverter
Prior to this commit, the `ProtobufMessageConverter` used in messaging
would try and serialize the message payload by calling "toString()" on
it in order to pass it to the Protobuf JSON encoder.
While this works for `String` payloads, this fails for `byte[]` types.

This commit ensures that such `byte[]` are first converted to `String`
instances using the given charset first.

Fixes gh-27408
2024-06-25 21:16:50 +02:00
..
src Support byte array payloads in ProtobufMessageConverter 2024-06-25 21:16:50 +02:00
spring-messaging.gradle Consistent dependency declarations 2023-08-02 00:56:50 +02:00