Skip to content

Commit

Permalink
fix(android): make readFile not add newlines on base64 strings (#2857)
Browse files Browse the repository at this point in the history
  • Loading branch information
rosmcmahon authored May 1, 2020
1 parent f4d5c84 commit 31d65c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private String readFileAsBase64EncodedData(InputStream is) throws IOException {
}
fileInputStreamReader.close();

return new String(Base64.encodeToString(byteStream.toByteArray(), Base64.DEFAULT));
return new String(Base64.encodeToString(byteStream.toByteArray(), Base64.NO_WRAP));
}

@PluginMethod()
Expand Down

0 comments on commit 31d65c9

Please sign in to comment.