Sicos1977 / MSGReader

C# Outlook MSG file reader without the need for Outlook
http://sicos1977.github.io/MSGReader
MIT License
489 stars 168 forks source link

Is possible to generate html with embeded images ? #381

Closed be-swarm closed 10 months ago

be-swarm commented 11 months ago

Hi, Actually msgReader.ExtractToFolder or msgReader.ExtractToStream generate html and image link ex: src=" is it possible to generate html whith embeded data ? ex:

to have only one file or only one stream ?

Thanks

be-swarm commented 11 months ago

Hi, Actually msgReader.ExtractToFolder or msgReader.ExtractToStream generate html and image link ex: img src="Screenshot_20230710_105924[1]_2.jpg" is it possible to generate html img whith embeded data ? ex: img src="data:image/png;base64,iVBO....

to have only one file or only one stream ?

Thanks

Sicos1977 commented 11 months ago

Yes this is possible by converting any inline images to base64 and add that to the image source tag. But this is not implemented at the moment but I'm always open for pull requests.

https://www.geeksforgeeks.org/how-to-display-base64-images-in-html/

Sicos1977 commented 10 months ago

No repsonse... closed.