Have a need to provide file upload feature using Jax-Rs Jersey-1.x resource. I want to know if its better to create the method with "File" as parameter or "InputStream"?
Resource will accept application/octet-stream
content-type and not tied to form-data.
it will need to work with small to huge size (upto gig) files.
want to know if using InputStream
as method parameter over File
(or vice versa) has any advantage? (ex: memory optimization)
Jersey Runtime server is Tomcat