Extract images from a DbRichViewEdit

General TRichView support forum. Please post your questions here
Post Reply
jrcalor
Posts: 2
Joined: Thu Jan 30, 2014 3:54 pm

Extract images from a DbRichViewEdit

Post 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
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Extract images from a DbRichViewEdit

Post 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.
jrcalor
Posts: 2
Joined: Thu Jan 30, 2014 3:54 pm

Re: Extract images from a DbRichViewEdit

Post by jrcalor »

Thank you

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

regards
Post Reply