mercredi 3 mai 2017

How to read stored word (doc,docx) binary content.

I am sucessfully storing world file in Large-blog mysql using following query.

DB::table('file')->insert(array(
            'name'=> $f->getClientOriginalName(),
            'type'=>$f->getClientOriginalExtension(),
            'content'=>file_get_contents(Input::file('image')->getRealPath())   
            )
        );

Now i want to HTML preview this original doc file. i don't know how to read this binary stored file. any idea ??



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire