Object is an image file or a directory in THETA.
You can get a list of ObjectHandle. ObjectHandle is an identifier of the object in THETA.
List<UINT32> objectHandles = getObjectHandles();
ObjectInfo objectInfo = getObjectInfo(objectHandle);
A method for downloading full size image is below.
File file = new File("foo.jpg");
try(OutputStream dst = new FileOutputStream(file)) {
theta.getObject(objectHandle, dst);
}
A method for downloading pre resized image is below.
This method is faster, but image is resized to 2048x1024
.
theta.getResizedImageObject(objectHandle, dst);
A method for downloading thumbnail image is below.
theta.getThumb(objectHandle, dst);
theta.deleteObject(objectHandle);