2

When I am reading input from JMS Topic it is successful in creating document and reading tags from it. Same content when I read from File, its throwing illegal character exception.

byte[] decoded = Base64.getDecoder().decode(encoded);

1 Answer 1

1

Try using,

encodedData.getMimeDecoder()

It will neglect invalid character like new line characters and process the input.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.