webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Difference b/w loadAs-bytes & stream?

    Posted Tue May 17, 2011 01:25 PM

    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


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: Difference b/w loadAs-bytes & stream?

    Posted Tue May 17, 2011 03:40 PM

    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.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services