in Search
 
Home Blogs Forums Marketplace Files
 
 
 

Getting Fax Image

Last post 08-28-2008, 7:53 AM by sme. 17 replies.
Page 1 of 2 (18 items)   1 2 Next >
Sort Posts: Previous Next
  •  12-08-2006, 2:01 PM 10412

    Getting Fax Image

    If I have a custom application on a server that is using the COM API to communicate with a RightFax Server that is installed on a separate machine, how can I retrieve a particular fax image from the RightFax server? Is there an API call that will actually grab the fax image content for
  •  12-08-2006, 2:01 PM 10413 in reply to 10412

    RE: Getting Fax Image

    See if this thread helps you get started.

    Greg
  •  12-08-2006, 2:01 PM 10414 in reply to 10412

    RE: Getting Fax Image

    Thanks Greg. One more question: Is there a way to annotate a fax image through the API? Once I grab a fax image I want to have a sort of stamp on the first page indicating what time the document arrived. If annotations cannot be added this way, then can RightFax add its own page to the incoming fax indicating the date the document arrived?

    Thanks for the help,
    QH
  •  12-08-2006, 2:01 PM 10415 in reply to 10412

    RE: Getting Fax Image

    RightFax and the COM API do not provide the option to annotate the image.

    RightFax can 'Stamp' a string on each page of the received faxes. This feature is documented in the Administrator's Guide on page 70 (at least in the v9.0 guide).
  •  12-08-2006, 2:01 PM 10416 in reply to 10412

    RE: Getting Fax Image

    Greg,

    When I am trying to retrieve the physical fax file using the following method:

    Set oFax = oFaxServer.Faxes(strHandle)

    strImageFile = oFax.Attachments(1).FileName
    ' Image is now in your %TEMP% folder, copy it from there

    Set oFax = Nothing
    ' image is automatically deleted

    strImageFile contains a path to the image file, but when I go to browse to that folder on my workstation, I don't see any such image. Is the image not immediately downloaded from the rightfax server to my workstation? Or am I missing something.

    Thanks,
    QH
  •  12-08-2006, 2:01 PM 10417 in reply to 10412

    RE: Getting Fax Image

    The image should be copied immediately, but you need to get the file before you destroy the fax object. As soon as the Fax object goes out of scope the image is removed automatically.
  •  12-08-2006, 2:01 PM 10418 in reply to 10412

    RE: Getting Fax Image

    Hmm. I am stepping through the vb code in debug mode and as soon as I step past the oFax.Attachments(1).FileName line, I check the directory, but no good. I am certain I am not destroying the fax object. Has this ever happened to you?
  •  12-08-2006, 2:01 PM 10419 in reply to 10412

    RE: Getting Fax Image

    Well, I figured out the problem. The attachment doesn't actually get downloaded until a firm reference to the attachment is set. For example:

    Set oAttachment = oFax.Attachments(1) 'Attachment downloaded here
    sFaxName = oAttachment.FileName

    as opposed to

    sFaxName = oFax.Attachments(1).FileName 'Doesn't work for me

    Not really sure why there is a difference but users should try the first approach if the second one isn't working for them.

    QH
  •  12-08-2006, 2:01 PM 10420 in reply to 10412

    RE: Getting Fax Image

    I had not noticed that before, what is your server and API version?

    Thanks for sharing that info!

    Greg
  •  12-08-2006, 2:01 PM 10421 in reply to 10412

    RE: Getting Fax Image

    No problem. Looks like the Enterprise Server is 8.7 and the API is 8.6. Might have to ask the administrator why the difference in versions.
  •  12-08-2006, 2:01 PM 10422 in reply to 10412

    RE: Getting Fax Image

    The version numbers are probably fine, the version stamps are rarely the same.

    Greg
  •  12-08-2006, 2:01 PM 10423 in reply to 10412

    RE: Getting Fax Image

    I see. About the RTI stamp that can be placed on pages of incoming faxes--have you used this feature before? If so, can you specify only faxes received to a certain inbox be stamped and all others unstamped? The fact that the admin guide says the RTI line is enabled/disabled by a registry setting makes me believe that is a universal thing. (Hope not, though)

    QH
  •  12-08-2006, 2:01 PM 10424 in reply to 10412

    RE: Getting Fax Image

    Greg, I have a somewhat related question: After I copied the TIFF image from the oAttachment.FileName location to a more permanent directory, I can view the TIFF image with no problem, but when I try to re-send the image as an attachment, it ALWAYS gives me a "Problem Converting Fax Body or Cover Sheet" error (both programmatically using the COM API or manually using FaxUtil.)

    Do I have to convert the resulting image to another TIFF compression or something?

    TIA,
    =-Tjeng-Bo->
  •  12-08-2006, 2:01 PM 10425 in reply to 10412

    RE: Getting Fax Image

    Quincy,

    only faxes received to a certain inbox


    Once you place those Registry keys, you also need to enable/check the User Permission of 'Stamp pages of received faxes with Audit Stamp' (or something like that) for the user receiving those faxes.

    Greg
  •  12-08-2006, 2:01 PM 10426 in reply to 10412

    RE: Getting Fax Image

    Tjeng-Bo,

    Do I have to convert the resulting image to another TIFF compression or something?


    You should not need to do this and I am unable to reproduce this issue, when I get the fax image and send it out it converts successfully. If you use the same code to send out a different file, does that convert successfully?

    What version of RightFax are you using?

    Greg
Page 1 of 2 (18 items)   1 2 Next >
View as RSS news feed in XML
  Privacy    Site Terms   Contact Administrator