Updated to allow using the default byte array as a default for methods
which return an InputStream