cancel
Showing results for 
Search instead for 
Did you mean: 

Read Attachments using Java Mapping API

Former Member
0 Kudos

Hello,

after investigating the Java Mapping API a little deeper I found some very interesting Interfaces "InputAttachments" and "Attachments" which could do exactly what is required:

Reading attachments and convert them into base64 code.

As I am not an experienced Java Programmer howeve, I am note sure how to use those interfaces.

For example there is a method defined in interface "InputAttachments":

Attachment getAttachment(String contentID)

How do I use it? If I use it in a way like "InputAttachments.getAttachment("abc");" then I get the error that it is not a static method. However how do I instantiate "InputAttachments".? As it is an interface I am not sure how to do this.

Any idea how to handle these methods?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I am working on the similar. I am able to attach txt files and csv files but have trouble attaching xcel and pdf's. Any input is appreciated. Thanks

Former Member
0 Kudos

For working With Excels and PDF's you have separate API, which you can use by importing corresponding .jar files.

You can find those in the google.