Fixed bug in JSONObjectOutputStream and Base64Encoder

This commit is contained in:
Ziver Koc 2015-11-18 17:25:14 +01:00
parent 034166b413
commit 66bebc6f52
4 changed files with 7 additions and 7 deletions

View file

@ -88,7 +88,7 @@ public class JSONObjectOutputStream extends OutputStream implements ObjectOutput
// Add an array
else if(objClass.isArray()){
// Special case for byte arrays
if(objClass.getComponentType() == byte[].class) {
if(objClass.getComponentType() == byte.class) {
root = new DataNode(DataType.String);
root.set(Base64Encoder.encode((byte[])obj));
}