You cannot pass null to the second argument of readObject.  This is the class type you want back (I'm not sure how it even compiled).  You should pass InputStream.class if you want an InputStream, e.g.  InputStream stream = this.atmosAPI.readObject(new ObjectId(atmosObjectId), InputStream.class);  What is the size of the object if you getSystemMetadata() ?
Hello, Please do let me know if this is not the right forum to ask this question. That being said, I'm having an issue with using the Java Atmos Client API (ver 2.1.5). I want to to stream the content to the Servlet response instead of first reading the byte array because that loads all the content of the file to memory.  Here is the code so far: ReadObjectResponse response = this.esuAPI.readObjectStream(new ObjectId(atmosObjectId), null);   after this executes the response.getContentLength() method prints 0.  I have verified following details before posting: 1. Connection credentials are correct (host, port, uid and secret key) 2. File does have proper data on the server. I'm able to download the file via AtmosChrome extension.  I'm not sure why the response would be empty?
AtmosApi.readObjectStream returns empty stream.