Class FileWrapper
- java.lang.Object
-
- oracle.cloud.bots.mobile.core.payload.FileWrapper
-
public class FileWrapper extends java.lang.ObjectAn object that represents the attachment uploaded by the user.
-
-
Constructor Summary
Constructors Constructor Description FileWrapper(byte[] data, java.lang.String name)Creates an object for the attachment uploaded by the user
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()The byte array of the uploaded attachmentintgetLength()The size of the uploaded attachmentjava.lang.StringgetName()The name of the uploaded file along with its extension
-
-
-
Method Detail
-
getData
public byte[] getData()
The byte array of the uploaded attachment- Returns:
- The byte array of the uploaded attachment
-
getName
public java.lang.String getName()
The name of the uploaded file along with its extension- Returns:
- The name of the uploaded file along with its extension
-
getLength
public int getLength()
The size of the uploaded attachment- Returns:
- The size of the uploaded attachment
-
-