com.sun.mail.util.DecodingException: BASE64Decoder: Error in encoded stream: needed at least 2 valid base64 characters, but only got 1 before padding character (=), the 10 most recent characters were: "peg; name="

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Nicolas Bouchet, 1 year ago
BASE64Decoder: Error in encoded stream: needed at least 2 valid base64 characters, but only got 1 before padding character (=), the 10 most recent characters were: "peg; name="
via Atlassian JIRA by Nicolas Bouchet, 1 year ago
BASE64Decoder: Error in encoded stream: needed at least 2 valid base64 characters, but only got 1 before padding character (=), the 10 most recent characters were: "peg; name="
via Stack Overflow by tbeernot
, 1 year ago
BASE64Decoder: Error in encoded stream: found valid base64 character after a padding character (=), the 10 most recent characters were: "am; name=9"
via Oracle Community by bgy, 1 year ago
BASE64Decoder: Error in encoded stream: found valid base64 character after a padding character (=), the 10 most recent characters were: "\r name="I"
via kenai.com by Unknown author, 1 year ago
BASE64Decoder: Error in encoded stream: needed at least 2 valid base64 characters, but only got 0 before padding character (=), the 10 most recent characters were: "IGFyZSEi\n="
via kenai.com by Unknown author, 1 year ago
BASE64Decoder: Error in encoded stream: needed at least 2 valid base64 characters, but only got 0 before padding character (=), the 10 most recent characters were: "IGFyZSEi\n="
com.sun.mail.util.DecodingException: BASE64Decoder: Error in encoded stream: needed at least 2 valid base64 characters, but only got 1 before padding character (=), the 10 most recent characters were: "peg; name="
at com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java:266)
at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:144)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at javax.activation.DataHandler.writeTo(DataHandler.java:308)
at com.atlassian.jira.plugins.mail.handlers.AbstractMessageHandler.getFileFromPart(AbstractMessageHandler.java:1182)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.