Skip to main content
Ground Control | Tier 1
June 2, 2024
Question

Outlook Automation

  • June 2, 2024
  • 2 replies
  • 124 views

How to extract/download inline images from an email body Outlook, whenever client upload images directly to oulook inside mail body?

2 replies

Aaron.Gleason
Automation Anywhere Team
Automation Anywhere Team
June 3, 2024

Most of the time, inline images are just attachments in the Outlook message. You can use the “Email > Save all attachments” action and loop through the saved files looking for files with common image extensions (e.g., GIF, PNG, JPG).

Items inserted into the body of a message (rather than being attached) are typically encoded in Base 64 format like this:

<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />

To extract those, you would need to manually decode the base64 text. There is a bot on the Bot Store that can do base64 decoding.

Cadet | Tier 2
June 10, 2024

Most of the time, inline images are just attachments in the Outlook message. You can use the “Email > Save all attachments” action and loop through the saved files looking for files with common image extensions (e.g., GIF, PNG, JPG).

Items inserted into the body of a message (rather than being attached) are typically encoded in Base 64 format like this:

<img src="data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" alt="Red dot" />

To extract those, you would need to manually decode the base64 text. There is a bot on the Bot Store that can do base64 decoding.

It’s possible to decode without install any package? i’m using the community version.