As you can see, I'm using an empty string as the documentPath, because an exception is thrown without it.
I'm using an InputStream instead of a File, because the file is inside a jar (generated by spring boot) and I don't wish to create unnecessary temporary files.
Maybe it's by design and an empty string is a correct solution of this problem?
Hi
If we are creating
new ReportTemplateBuilder()
using InputStream instead of a File, why is the documentPath necessary?For example, here is the method to create new ReportTemplateBuilder using InputStream:
As you can see, I'm using an empty string as the documentPath, because an exception is thrown without it.
I'm using an InputStream instead of a File, because the file is inside a jar (generated by spring boot) and I don't wish to create unnecessary temporary files.
Maybe it's by design and an empty string is a correct solution of this problem?