Getbinary return type

Enonic version: Enonic XP 6.14.1
OS: Windows 10


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$FileByteSource to


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

You are right: