cancel
Showing results for 
Search instead for 
Did you mean: 

How to detect embedded image in email body

MANSWINIBIRDAWD
Level 2

My bot will have to read email where the email body will have embedded image but not as an attachment. While converting that email into PDF, the image gets lost. we cannot see the image in converted email. is there any way that image can be downloaded by bot separately?



------------------------------
MANSWINI BIRDAWDE
------------------------------
1 REPLY 1

TobiasArnold
Level 6

Hi Manswini,

I sounds for me that the email body is html. Than you have to search for the image tag and grap the value from the href attribute. With this value you can download the image.

If you are handy with .NET coding I recommend the HTML agility pack: https://html-agility-pack.net/

With this in mind you can get all image urls with a single expression e.g. //img/@href



------------------------------
Tobias Arnold
RPA Developer
ITERGO GmbH
Europe/Duesseldorf
------------------------------