adam291086 Posted March 16, 2009 Share Posted March 16, 2009 Hey i am using .base64_encode() to encode and simple text file and store the result within my database. I am then decoding that value and getting {\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf430 {\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} \paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\ql\qnatural\pardirnatural \f0\fs24 \cf0 kjfhsdkfhdskfhskdfhksdjfh} how can i turn that back into its original content? Link to comment https://forums.phpfreaks.com/topic/149688-reading-binary/ Share on other sites More sharing options...
adam291086 Posted March 16, 2009 Author Share Posted March 16, 2009 i am using file_get_contents() to turn the original file into binary Link to comment https://forums.phpfreaks.com/topic/149688-reading-binary/#findComment-786036 Share on other sites More sharing options...
kenrbnsn Posted March 16, 2009 Share Posted March 16, 2009 What type of file is the original file. What you gave us looks like the content of an RTF (rich text format) file. Try saving with a file extension of rtf and then open it with Word. Ken Link to comment https://forums.phpfreaks.com/topic/149688-reading-binary/#findComment-786042 Share on other sites More sharing options...
adam291086 Posted March 16, 2009 Author Share Posted March 16, 2009 ok, so add a force download script ect Link to comment https://forums.phpfreaks.com/topic/149688-reading-binary/#findComment-786045 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.