Skip to main content
Question

Outlook Automation


Forum|alt.badge.img

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
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 571 replies
  • 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.


Forum|alt.badge.img
Aaron.Gleason wrote:

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings