Skip to content

Commit

Permalink
Convert ByteMessage correctly, use getData() method
Browse files Browse the repository at this point in the history
  • Loading branch information
195858 committed Aug 17, 2020
1 parent d9d572d commit 0eada41
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ private TypedValue<Object> convertFromBytesMessage(BytesXMLMessage msg, String c
encoding = "utf-8";
}
byte[] bytesPayload = msg.getBytes();
if (msg instanceof BytesMessage) {
bytesPayload = ((BytesMessage) msg).getData();
}
if (!StringUtils.isBlank(mediaType))
dt = DataType.builder().type(String.class).mediaType(mediaType).charset(encoding).build();
else
Expand Down

0 comments on commit 0eada41

Please sign in to comment.