Large fax causes the web service to choke

8 posts / 0 new
Last post
morrisdj6
Offline
Joined: 20 May 2005
Large fax causes the web service to choke

Is there a limit on the size of the fax that can be sent?

My program (.NET) gets a "too much data" error with a big fax.
i.e. more than a couple of pages. It is using the "SendFax" method.

Any help would be appreciated.

Thanks

Daniel.

Alon Y
Offline
Joined: 9 May 2005

There is one limit - 4MB per a Post request.
Most of the data sent is the filesdata (the document). Keeping in mind that binary data in SOAP is converted to Base64, the practical max length is ~3MB per request.

What type of document are you trying to send ?

morrisdj6
Offline
Joined: 20 May 2005

The document I am trying to send is a TIFF.

It works fine until I get up to about 5 or 6 pages.

Thanks.

Adam M
Offline
Joined: 19 Jun 2009

TIFF files used for faxing are normally quite small - around 30-50K per page - as they are low-density 1-bit image files. They might become bloated when their contents are stored as greyscale (8 bits per pixel) and/or when the TIFF file is not compressed.

I'm not sure how your TIFF file is created and whether you have any control over its characteristics, but hope this helps.

Adam M
Offline
Joined: 19 Jun 2009

We have recently added a new Web Service method which allows you to upload files larger than 250KB. The Chunk Data Upload lets you upload large files in batches.

samdev
Offline
Joined: 29 Oct 2005

I'm interested in implementing the chunk data upload in my setup.

I'm using NuSOAP with PHP and can send a small sized doc fine.

Do you have any example code of how to get started using StartFileUpload and UploadFileChunk ?

Thanks!

Adam M
Offline
Joined: 19 Jun 2009

samdev,

We do not currently have any samples for this. Are you encountering difficulties using the method?

The idea is to contact the web service with StartFileUpload. You do not upload anything at this point - you only retrieve a Session ID to use for your upload.

You then start uploading chunks of data with UploadFileChunk, using the Session ID you received with StartFileUpload, and repeating as many times as necessary. When you reach the last chunk, make sure to set the IsLast property to TRUE.

You then proceed to send the fax by using one of the Sendfax* methods (e.g. SendfaxEx_2). The three properties affected by your chunk upload are FilesData, FileTypes, and FileSizes. Now:

1. For FilesData: use an empty buffer.
2. For FileTypes: use the actual file type(s) of the file(s) you have uploaded.
3. For FileSizes: use the actual file size(s) of the file(s) you have uploaded, and append the session ID of your uploaded file(s) , in the format /sessionID=[session ID].

samdev
Offline
Joined: 29 Oct 2005

Thanks Adam,

The difficulty I encountered was not knowing how/where to start!

After reading your post I believe I understand how to do it now.
I'll give it a try and see how I go

Cheers,

Sam

Login or register to post comments