how to display a pdf file as a download link from mysql without path directing way in php?


April 2019


44 time


I tried to display pdf files from mysql in the webpage without any path directory. is it possible to do that?

I tried this:

<object data="data:application/pdf;base64,<?php echo base64_encode($row['download']) ?>" 

but this shows the pdf file but no download link. i want it present as a link and when i click the link it starts downloading but without no directing path such that path is unknown.

0 answers