Idea need for loading/saving/removing images in a RTF
Posted: Thu Jul 26, 2018 9:42 am
Hi,
we are using a RichView for editing emails. Those Emails contain a footer with different pictures.
Currently we have stored about 2 million emails. Those footers are really big in sum. Because the often contain the same pictures.
My idea is to extract the images and store them not duplicated in a separated blob database table.
My problems to solve:
1) How to find and extract the images and replace them in RTF with a placeholder.
2) When a rtf is loaded to richview, how to restore those extracted images.
Should i to an parse the RTF?
Is there a more elegant way?
Does the Richview have some helpful function?
we are using a RichView for editing emails. Those Emails contain a footer with different pictures.
Currently we have stored about 2 million emails. Those footers are really big in sum. Because the often contain the same pictures.
My idea is to extract the images and store them not duplicated in a separated blob database table.
My problems to solve:
1) How to find and extract the images and replace them in RTF with a placeholder.
2) When a rtf is loaded to richview, how to restore those extracted images.
Should i to an parse the RTF?
Is there a more elegant way?
Does the Richview have some helpful function?