glance.images().upload(newImage.getId(), uploadImage).execute();
// Downloading the image and displaying the image content
try {
byte[] imgContent = new byte[IMAGE_CONTENT.length()];
ImageDownload downloadImage = glance.images().download(newImage.getId()).execute();
downloadImage.getInputStream().read(imgContent, 0, imgContent.length);
System.out.println(new String(imgContent));
} catch (IOException e) {
e.printStackTrace();
}