To extract images from emails getImages method is used. By default images are extracted with its original format. With using ImageOptions class it is possible to extract images from emails as bmp, gif, jpeg, png and webp formats.
Warning getImages method returns null value if image extraction isn’t supported for the document. For example, image extraction isn’t supported for Txt files. Therefore, for Txt file getImages method returns null. If an email has no images, getImages method returns an empty collection....isn’t supported for TXT files. Therefore, for TXT file method returns...