> @@ -129,9 +126,9 @@ private void generateGetTempURL() throws IOException {
> // GET the file using jclouds
> File file = File.createTempFile(FILENAME, ".tmp");
> try {
> - String content =
> Strings2.toString(blobStoreContext.utils().http().invoke(request).getPayload());
> - Files.write(content, file, Charsets.UTF_8);
> -
> + Payload payload =
> blobStoreContext.utils().http().invoke(request).getPayload();
> + Files.asByteSink(file).writeFrom(payload.openStream());
@demobox Good catch. Fixed. I explicitly release the payload.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/51/files#r13617618