Re: JClouds and OpenStack : uses or overrides a deprecated API

2015-01-09 Thread Sofiane Soulfly
Hi, I think the NovaAsyncApi is deprecated (http://jclouds.apache.org/reference/javadoc/1.7.x/org/jclouds/openstack/nova/v2_0/package-summary.html). On 09.01.2015 11:53, Karim wrote: Hello, I'm trying to list images available on OpenStack using Jclouds (Version 1.8.1). When i run the

Re: Download file from Swift

2014-12-23 Thread Sofiane Soulfly
the object to a file File file = File.createTempFile(uploadObjectFromFile, .txt); BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(file)); ByteStreams.copy(swiftObject.getPayload().openStream(), outputStream); Everett On Dec 22, 2014, at 6:23 AM, Sofiane Soulfly

Fwd: Re: Download file from Swift

2014-12-23 Thread Sofiane Soulfly
”); // Write the object to a file File file = File.createTempFile(uploadObjectFromFile, .txt); BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(file)); ByteStreams.copy(swiftObject.getPayload().openStream(), outputStream); Everett On Dec 22, 2014, at 6:23 AM, Sofiane

Re: Fwd: Re: Download file from Swift

2014-12-23 Thread Sofiane Soulfly
it is a BufferedOutputStream. Generally easier to use the Guava helpers in these situations, e.g., Files.asByteSink(File).writeFrom(InputStream), which handles resource management for you. Also do not forget to close all the InputStream and OutputStream! On Tue, Dec 23, 2014 at 12:45:07PM +0100, Sofiane Soulfly

Download file from Swift

2014-12-22 Thread Sofiane Soulfly
Hello everybody, after I uploaded successfully a text file to Swift, now I want download that file into my file system. I tried with ObjectApi.get but nothing was downloaded. Thank you. Regards, SB

Re: Method initialization failed from the command prompt

2014-09-09 Thread Sofiane Soulfly
I have all the required jars. As I said in Eclipse it's working fine, the problem comes from the command line. Am 08.09.2014 22:20, schrieb felipe gutierrez: I think you are missing some jars.