To Receive Data from HTTP, FTP, E-mail, or File
![*](chapterTOC_bullet.png)
You can use the Services
pub.client:http,
pub.client:ftp,
pub.client:smtp and
pub.file:getFile to load a multi-byte document into the pipeline. Always use the option
loadAs=bytes.
![*](chapterTOC_bullet.png)
Convert the binary data using the Services
pub.string:bytesToStringor a combination of
pub.xml:xmlStringToXMLNode (also accepts bytes) and
pub.xml:xmlNodeToDocument.
![*](chapterTOC_bullet.png)
Set the input parameter
encoding to the mime Encoding in which the bytes have been encoded, (one that is supported by the functions
sun.io.ByteToChar XXX.class, where XXX stands for the encoding) for example: ASCII, ISO2022 or SJIS.