}
System.out.println("data size: " + data.length);
if (data != null) {
if(progressCallback != null) {
httppost.setEntity(new CountingHttpEntity(new ByteArrayEntity(data), progressCallback));
}
else {
httppost.setEntity(new ByteArrayEntity(data));
}
}