Page 1 of 1

Convert RTF to view in a webpage

Posted: Fri Jan 17, 2020 9:39 pm
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!

Re: Convert RTF to view in a webpage

Posted: Mon Jan 20, 2020 6:54 am
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.

Re: Convert RTF to view in a webpage

Posted: Mon Jan 20, 2020 6:56 pm
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!!