public class Attachment extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
Content
Must be base64 encoded.
|
String |
Name
The original file name.
|
String |
Type
The Mime type.
|
| Constructor and Description |
|---|
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
void |
base64EncodeContentStream(InputStream inputStream)
Base64 encodes the input stream and stores the result as the Content.
|
public String Name
public String Type
public String Content
public void base64EncodeContentStream(InputStream inputStream) throws IOException
inputStream - IOExceptionCopyright © 2019. All rights reserved.