cancel
Showing results for 
Search instead for 
Did you mean: 

Blob from BlobInfo

Eric_Ace
Confirmed Champ
Confirmed Champ

I'm getting a result set from ElasticSearch, and then for each object in the result set, I need to get a Blob (or a Binary) from S3 using only the BlobInfo elements from ES (digest, filename, etc.) Best I have come up with so far is:

BlobProvider provider = Framework.getService(BlobManager.class).getBlobProviders().values()
.stream().findFirst().orElse(null);

// then use the provider to get the  blob:
Blob blob = provider.readBlob(new BlobInfo(... from ElasticSearch result elements ...)

In my testing, there appears to only ever be one provider - that's true even in the unit test environment. Is there a better / more reliable way to get the one and only one "active" BlobProvider?

0 REPLIES 0
Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.