question

Kt109 avatar image
Kt109 asked Kt109 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

rest api
2 comments
1 |3000

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

Anirban avatar image Anirban commented ·

Which sdk are you using? what programming language?


0 Likes 0 ·
Kt109 avatar image Kt109 Anirban commented ·

We are trying Java sdk

0 Likes 0 ·
Anirban avatar image
Anirban answered Anirban 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 |3000

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

Kt109 avatar image
Kt109 answered

Thank you

1 |3000

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

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys