Skip to content

Commit

Permalink
Added reader rewind to remote payload processor
Browse files Browse the repository at this point in the history
  • Loading branch information
RobGeada authored and ckadner committed Oct 18, 2023
1 parent 107cffc commit 256395b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ private static PayloadContent prepareContentBody(Payload payload) {
}

private static String encodeBinaryToString(ByteBuf byteBuf) {
byteBuf = byteBuf.readerIndex(0);
ByteBuf encodedBinary = Base64.encode(byteBuf, byteBuf.readerIndex(), byteBuf.readableBytes(), false);
//TODO custom jackson serialization for this field to avoid round-tripping to string
return encodedBinary.toString(StandardCharsets.US_ASCII);
Expand Down

0 comments on commit 256395b

Please sign in to comment.