Java Fax - Submit a Binary File Using SendFax

This code sample demonstrates how to submit a Java fax with one attachment (binary file) to the InterFAX Web service, using the method SendFax.

SendFax also indicates whether the fax was submitted successfully -- the transaction ID (positive number) of the fax in the system indicates a successful transmission, where any other return values indicate a failure (for more details, see Web Service Return Codes).

The Java fax code sample copied below sends a binary, Java fax and indicates whether the submission was successful. This sample is also available as part of the ZIP file above (see the green 'Download' box), under the path interfaxJavaSamples > src > SendOneFileAttachment.