Skip to main content
The First Step
Jun 20, 2020 10:00 AM UTC
Solved

Attaching file in fax sdk

Hi,

We are exploring ringcentral sdk. Can some one help to clarify how to attach files for Fax call in sdk and enable the mime type. for example, we can enable different mime types like text, pdf etc for the attached file

    The First Step
    Jun 20, 2020 10:34 AM UTC

    Since as you said in your comment, you are using java sdk, you can use following example to attach your files with required content type:

    Attachment attachment = new Attachment();

    attachment.fileName = "test.pdf";

    attachment.contentType = "application/pdf";

    ref: https://developers.ringcentral.com/guide/messaging/fax/sending-faxes

    2 replies

    The First Step
    Jun 20, 2020 10:34 AM UTC

    Since as you said in your comment, you are using java sdk, you can use following example to attach your files with required content type:

    Attachment attachment = new Attachment();

    attachment.fileName = "test.pdf";

    attachment.contentType = "application/pdf";

    ref: https://developers.ringcentral.com/guide/messaging/fax/sending-faxes

    The First Step
    Jun 21, 2020 8:27 AM UTC

    Thank you