log.warn("Content-Length of data stream not set, will automatically determine data length in memory");
}
BasicHttpEntity basicHttpEntity = new BasicHttpEntity();
basicHttpEntity.setContent(object.getDataInputStream());
try {
requestEntity = new BufferedHttpEntity(basicHttpEntity);
}
catch(IOException ioe) {
throw new ServiceException("Unable to read data stream of unknown length", ioe);
}
}