I am designing an API where one of the methods needs to provide a way to get file content.
I do not want the method to return a file location as potentially files will be stored in the database. I also do not want to return file content as Array[Byte] as the files can be quite big.
In Java I would create a method that returns an InputStream.
What is the recommended way of doing it in Scala?