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

Refresh

5 weeks ago

Views

44 time

1

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']) ?>" 
    type="application/pdf">
</object>

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