PHP Classes
elePHPant
Icontem

Store PDF as binary in Database and read it as PDF or HTML: I want to convert PDF file in Binery

Recommend this page to a friend!
  All requests RSS feed  >  Store PDF as binary in Database and r...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Store PDF as binary in Database and read it as PDF or HTML

Edit

by muabshir - 2 years ago (2017-03-13)

I want to convert PDF file in Binery

This request is clear and relevant.
This request is not clear or is not relevant.

+2

I want to STORE PDF in database as binary and called it as PDF or Word or HTML formate

  • 1 Clarification request
  • 1. by Dave Smith - 2 years ago (2017-04-30) Reply

    pdf is already binary. You can use file_get_contents() to read the file into a variable and then save that in the database as a BLOB (binary large object).

    To display it in the browser, you just need to send the appropriate content headers before you echo the data.

    Ask clarification

    1 Recommendation

    Handle Binary Files With PDO: Save and load binary files in databases using PDO

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    0

    by zinsou A.A.E.Mo´se package author package author Reputation 5455 - 1 year ago (2017-12-21) Comment

    you can try this...


    Recommend package
    : 
    :