Page 1 of 1

Extract images from a DbRichViewEdit

Posted: Wed Jan 16, 2019 10:20 am
by jrcalor
Hello

I need to be able to extract images from a DbRichViewEdit in order to send them as attachments in an email.

In my application, the user can create templates with images and text (signature) that are loaded in the body of the email. Before sending, I convert the RVF to HTML, but I need to find and extract the images to send them as an attachment in the same email.

I use RichView 17, Indi 10.5 and Delphi 2007

Thank you

Re: Extract images from a DbRichViewEdit

Posted: Wed Jan 16, 2019 4:38 pm
by Sergey Tkachenko
See the demo here: https://www.trichview.com/forums/viewtopic.php?f=3&t=11
It sends HTML email using Indy. It processes OnSaveImageImage2 event. This event occurs when saving to HTML. In this event, instead of saving images to files, it collects them in memory, in a collection.

Re: Extract images from a DbRichViewEdit

Posted: Thu Jan 17, 2019 4:24 pm
by jrcalor
Thank you

The demo has been a great help, I have solved the problem.

regards