hi i wrote a code which will take a file and will save it in database and then i will read it from database in binary format . it will be saved in file format i dont know how to read this file. i know the extention.i want a way to readthis binary file and open it with the correct software.forexample if it is a PDF file i want to read this binary file and open it with Adobe.
You need to send the appropriate header before sending the data. Something like:
header("Content-type: application/pdf");