News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
How to send Fax attaching pdf in RingCentral in Java
Tags: getting started
Mar 8, 2020 at 7:20am   •   1 replies  •  0 likes
Murthy TLN

We were exploring RingCentral fax for sending fax. We wanted to attach pdf docs and send it with Java code. But with RingCentral SDK I just wanted to know how do set the mime type or content type in the code. Any example will be helpful.


I tried :

`Attachment attachment = new Attachment();

attachment.fileName = "c:\\ testRun.pdf";`


Is there any way to set the document mime type?


1 Answer
answered on Mar 8, 2020 at 7:59am  

If you can check the sample document here, attachment.contentType is for setting the document content type: https://developers.ringcentral.com/guide/messaging/fax/sending-faxes

Attachment attachment = new Attachment();
attachment.fileName = "testRun.pdf";
attachment.contentType = "application/pdf";

 0



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us