cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the InputStream of a file without using FileBlob.getStream()?

markvincent9_
Champ on-the-rise
Champ on-the-rise

Is there a way to to get the InputStream of a file without using FileBlob getStream() method? I ask this because when I when I use fileblob getStream() it seems that it copy first the file in a temp file then return a blob. I this will affect the performance of my download because it will download first the file from nuxeo before it response as a file to the client.

1 ACCEPTED ANSWER

Florent_Guillau
World-Class Innovator
World-Class Innovator

The Automation Client FileBlob is always backed by a temporary file at the moment, even before you call getStream.

View answer in original post

6 REPLIES 6

Florent_Guillau
World-Class Innovator
World-Class Innovator

What version of Nuxeo are you using?

Florent_Guillau
World-Class Innovator
World-Class Innovator

Also, which FileBlob are you talking about? The one from Automation Client (if you're using Automation Client), or the one internal to Nuxeo (if you're extending it through its native APIs).

markvincent9_
Champ on-the-rise
Champ on-the-rise

I'm using version 7.2. And the FileBlob that I was talking about is from Automation Client

Florent_Guillau
World-Class Innovator
World-Class Innovator

The Automation Client FileBlob is always backed by a temporary file at the moment, even before you call getStream.

Ok so there is no way to get the file without storing it in a temp file first. Thanks for this

Without re-coding part of the Automation Client (which is just a REST API client really), no.

Getting started

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.