private void sendBody(OutputStream output) throws IOException {
for (Iterator<InputStream> iterator = bodyParts.iterator(); iterator.hasNext();) {
InputStream input = iterator.next();
StreamReader reader = new StreamReader(input);
while (!reader.isEof()) {
byte[] bytes = reader.readBytes(1000);
output.write(bytes);
}
}
}