withBase64Image static method

dynamic withBase64Image(
  1. String base64Image
)

Create an attachment with Base64 encoded image.

base64Image image URL.

Implementation

static withBase64Image(String base64Image) {
  MediaAttachment m = new MediaAttachment();
  m.base64Image = base64Image;
  return m;
}