How to get the rtf field content through stream?

I want to get the content of rtf field by stream format,the rtf field contains text、word、excel、zip、gif、jpg and so on.