To Send Data Via HTTP, FTP, or E-mail or Save It to a File
![*](chapterTOC_bullet.png)
Ensure that you do not pass any String objects into the Services
pub.client:http,
pub.client:ftp,
pub.client:smtp or save a String into a file.
![*](chapterTOC_bullet.png)
Call
pub.string:stringToBytes with the correct encoding parameter.
![*](chapterTOC_bullet.png)
Pass the bytes into ftp/http or into your Service which writes the file. (This service should use
java.io.FileOutputStream to write the file, not
FileWriter.) That way the message is sent out of
Adapter for SAP with proper encoding.