Currently it appears that this library supports byte[] and filepath inputs. It would be much more flexible if it also allowed for Stream input.