diff --git a/src/android/com/silkimen/cordovahttp/CordovaHttpResponse.java b/src/android/com/silkimen/cordovahttp/CordovaHttpResponse.java index e6051bf3..5cad91c0 100644 --- a/src/android/com/silkimen/cordovahttp/CordovaHttpResponse.java +++ b/src/android/com/silkimen/cordovahttp/CordovaHttpResponse.java @@ -75,7 +75,7 @@ public JSONObject toJSON() throws JSONException { } else if (this.isFileOperation) { json.put("file", this.fileEntry); } else if (this.isRawResponse) { - json.put("data", Base64.encodeToString(this.rawData, Base64.DEFAULT)); + json.put("data", Base64.encodeToString(this.rawData, Base64.NO_WRAP)); } else { json.put("data", this.body); }