Hi,
some of the service has the service in parameter as “loadAs”, example: pub.file:getFile and pub.client:http. we are giving either bytes or stream.
when to use bytes and when to use stream?
Thanks
Devi
Hi,
some of the service has the service in parameter as “loadAs”, example: pub.file:getFile and pub.client:http. we are giving either bytes or stream.
when to use bytes and when to use stream?
Thanks
Devi
Loadas bytes will load the entire file into memory as a byte array.
Loadas stream returns an InputStream from which you can read file contents a bit at a time.
If you’re not familiar with stream-based I/O there is introductory information on the web.