Question

I need to be able to receive a fax in a java application. I was wondering what are some ways of doing this. Efax? Use a fax to email provider?

Was it helpful?

Solution

I suggest using fax to email. I've been using RapidFax for the past year or so, and it is fairly inexpensive and fast. I'm happy with it.

Alternatively, there are some Web Service based fax services, like InterFax.

OTHER TIPS

We use Ringcentral.com which sends the fax as a PDF to an email address. We then access the PDF by accessing the POP3 account programatically (sp?).

I use the fax-to-email capability of 101Fax and it has been rock-solid reliable.

This can be done from Java on an API-accessible internet fax service such as Interfax. There are Java fax samples available on their site for review and download.

Once you've signed up for inbound fax service (free for developers), download the jar file from any one of the code sample pages. The business end of receiving faxes into your application is the two following bits.

Let your app query the servers periodically for any new faxes that arrive for you, with method GetList:

GetList parameters = new GetList(TestConstants.USERNAME,
                    TestConstants.PASSWORD,
                    ListType.AllMessages,    // Select the type of list you wish to return
                    10, // max items
                    new MessageItem[0]
                    );

Any fax sent to your number on the service will appear as a new record in the structure returned by this method. Once a new fax is available, you download it with method GetImageChunk:

GetImageChunk parameters = new GetImageChunk(TestConstants.USERNAME,
                        TestConstants.PASSWORD,
                        MESSAGE_ID,
                        MARK_AS_READ,
                        CHUNK_SIZE,
                        from,
                        new byte[0]
                        );
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top