This error indicates the “stream” key isn’t present in the pipeline, Please confirm that the key is in the pipeline before calling the service “pub.io:streamToBytes”.
Additionally , more information about the usecase will help. When you say "file sent from the http is xml " please elaborate how the file is sent , is it using WM public services or through any other third party applications.
-Regards,
NP
#webMethods