made some changes to the server file. read the data in bytes.
addded .rtf file