Getbinary return type

Enonic version: Enonic XP 6.14.1
OS: Windows 10

Hi,

Does anyone know the return type of repo.getBynary(params). In the documentation it says stream of the bynary type * . I’m trying to send that binary to a java function to process that data but I’m not sure which the return type is. I tried to use it as an inputStream type but I get the error
Cannot cast com.google.common.io.Files$FileByteSource to java.io.inputStream

Regards.

I think it’s ByteSource if I’m not wrong

You are right: com.google.common.io.ByteSource