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="


Solutions on the web12

Solution icon of atlassian
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="

Solution icon of atlassian
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="

Solution icon of github
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="

Solution icon of oraclecommunity
via Oracle Community by user5447966, 1 month 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: "\r------="

Solution icon of web
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="

Solution icon of web
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="

Solution icon of stackoverflow
BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 3 before EOF, the 10 most recent characters were: "nt-Transfe"

Solution icon of apache
via Apache's JIRA Issue Tracker by Amichai Rothman, 1 year ago
BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 2 before EOF, the 10 most recent characters were: "\130\190\130\179\130\162\129B\r\n"

Solution icon of apache
via james-server-dev by Amichai Rothman (JIRA), 1 year ago
BASE64Decoder: Error in encoded stream: needed 4 valid base64 characters but only got 2 before EOF, the 10 most recent characters were: "\130\190\130\179\130\162\129B\r\n"

Solution icon of oraclecommunity
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"

Stack trace

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)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago