Question

Outlook Automation


Badge

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


2 replies

Userlevel 4
Badge +7

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.

Badge

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.

Reply