mirror of
https://github.com/moparisthebest/davmail
synced 2025-01-09 20:58:05 -05:00
EWS: Force encoding in mimeContent decode
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@2250 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
b75fb15483
commit
58ae6e1e91
@ -979,8 +979,11 @@ public abstract class EWSMethod extends PostMethod {
|
||||
responseItem.mimeContent = ((TypedXMLStreamReader) reader).getElementAsBinary();
|
||||
} else {
|
||||
// failover: slow and memory consuming conversion
|
||||
byte[] base64MimeContent = reader.getElementText().getBytes();
|
||||
responseItem.mimeContent = Base64.decodeBase64(base64MimeContent);
|
||||
try {
|
||||
responseItem.mimeContent = Base64.decodeBase64(reader.getElementText().getBytes("ASCII"));
|
||||
} catch (UnsupportedEncodingException e) {
|
||||
throw new XMLStreamException(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user