private UploadResult uploadInSinglePart(final String accountId,
final String vaultName, final String archiveDescription,
final File file, ProgressListener progressListener)
throws AmazonServiceException, AmazonClientException, FileNotFoundException {
String checksum = TreeHashGenerator.calculateTreeHash(file);
InputStream is = new RepeatableFileInputStream(file);
publishProgress(progressListener, ProgressEventType.TRANSFER_STARTED_EVENT);
final UploadArchiveRequest req = new UploadArchiveRequest()
.withAccountId(accountId)
.withArchiveDescription(archiveDescription)
.withVaultName(vaultName)