@Override public byte[] getBody() throws AuthFailureError { ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { entity.writeTo(bos); } catch (IOException e) { VolleyLog.e("IOException writing to ByteArrayOutputStream"); } // return bos.toByteArray(); System.out.println("write entity:" + byteArrayGlobal.toString()); return byteArrayGlobal; }