Class SendMailJob.MemoryAttachment

java.lang.Object
ch.tocco.nice2.optional.address.impl.action.mail.SendMailJob.MemoryAttachment
All Implemented Interfaces:
Serializable
Enclosing class:
SendMailJob

public static final class SendMailJob.MemoryAttachment extends Object implements Serializable
A bean for durable and ephemeral attachements. The fromBinary(MultiUploadService, String) is the recommended constructor. It loads the binary via MultiUploadService (it must be available this way at construction time). If the returned binary is _ephemeral_, i.e. a temporary file, it is read into a byte array and stored in its base64 representation in this class. Otherwise the `data` field is the uri as given to the constructor, because it is not needed to store yet another copy in this class. It should be used with MultiUploadService as usual to obtain the data.
See Also: