I am trying to store and retrieve binary objects from swift using org.jclouds.openstack.swift.v1 API.
SwiftApi swiftApi; ObjectApi objectApi; SwiftObject object; swiftApi = ContextBuilder.newBuilder(provider) .endpoint("http://X.X.X.X:5000/v2.0/") .credentials(identity, credential) .modules(modules) .buildApi(SwiftApi.class); objectApi = swiftApi.getObjectApiForRegionAndContainer(REGION, objectPath); object = objectApi.get(objectName); System.out.println("object: "+object); *Output:* object: SwiftObject{name=ssl.txt, uri= http://X.X.X.X:8080/v1/AUTH_c9b9a23a5e8e4a45921898a5ac306f29/Personal_Info/ssl.txt, etag=d76cad4bfabde5a5fc16a31a3ce82847, lastModified=Tue Jul 15 15:42:33 IST 2014, metadata={key1=value1, key3=value3, key2=value2}} When I dump the stream as string I see headers and mime parts arriving but I don't understand how to access the data Is there any way to get the content of the object and write to the local file. -- Thanks Sandeep Bazar