question

Tanmay Kumar avatar image
Tanmay Kumar asked Tanmay Kumar answered

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

fax call
2 comments
1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Anirban Sen Chowdhary avatar image Anirban Sen Chowdhary commented ·

Which sdk are you using? what programming language?


0 Likes 0 ·
Tanmay Kumar avatar image Tanmay Kumar Anirban Sen Chowdhary commented ·

We are trying Java sdk

0 Likes 0 ·
Anirban Sen Chowdhary avatar image
Anirban Sen Chowdhary answered Anirban Sen Chowdhary edited

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

1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Tanmay Kumar avatar image
Tanmay Kumar answered

Thank you

1 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.