Convert RTF to view in a webpage

General TRichView support forum. Please post your questions here
Post Reply
leandersantosm
Posts: 20
Joined: Fri Jun 03, 2011 8:33 pm

Convert RTF to view in a webpage

Post by leandersantosm »

Hi, is there a way to see a RTF saved in MySQL as a LONGBLOB in a webpage?

For example, I created a new RTF in my software, typed a text formatted with bold and italic, and I want to use the same database to my PHP project.

Then, I create a page that could be able to read this RTF, but the information inside the database is codded in a BLOB field (data starts with 0x2D... for example). How could I convert this information to get the same text formatted with bold and italic?

Sorry my english.

Thanks!
Sergey Tkachenko
Site Admin
Posts: 17606
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Convert RTF to view in a webpage

Post by Sergey Tkachenko »

RTF is not a format of webpages. Probably, you can find some PHP library that can display RTF in a webpage, but I cannot recommend any.

The simplest way to display RTF document in browser is to convert it to HTML and display as HTML. You may consider storing HTML copy of your documents.
leandersantosm
Posts: 20
Joined: Fri Jun 03, 2011 8:33 pm

Re: Convert RTF to view in a webpage

Post by leandersantosm »

Alright, I will go for the first option for now.

I can't go for the second one because I have thousands of clients with thousands of documents. I should have to update my software to convert them all before they receive the web module.

Thanks!!
Post Reply