![]() |
|
|
| Welcome | User Tools | Developer Tools | Prices | Help | Sign up | Login |
| Overview | Web Service | Email Interface | COM Object | Forum | Developer Registration |
| You are here:
Home > Developer Tools > Fax Web Service > Samples > Java - How to fax two files at once |
||
Fax Web Service Code SampleJava - How to fax two filesDownload the Java project files.
class TestFax { public static void main(String[]
args) throws Exception { String str1 = "First test fax."; String str2 = "Second test fax."; //Concat the Strings in order to use the Web Service String testStr = str1.concat(str2); Integer len1 = new Integer(str1.length()); Integer len2 = new Integer(str2.length()); int testStrLen = testStr.length(); String fileLen = len1.toString().concat(";").concat(len2.toString()); byte[] b = new byte[testStrLen]; for (int i=0;i<testStrLen;i++) { char c = testStr.charAt(i); b[i] = (byte)c;// Create date object GregorianCalendar gc = new GregorianCalendar(2003,3,15,17,10); // 15 - March - 2003, 17:10 try { long result; // Create an instance of the Web Service Objectcatch(Exception e) { System.out.println(e.toString());} } } |
||
| About | Contact | Privacy | Terms | Partners | Login | System Status © Interfax Inc |