Fixed bug in JSONObjectOutputStream and Base64Encoder
This commit is contained in:
parent
034166b413
commit
66bebc6f52
4 changed files with 7 additions and 7 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue