Answer the question
In order to leave comments, you need to log in
How to give a file for android?
Hello. I'm trying to give the android a pdf file on the server side (php). The function is simple:
$pdfPath = '....';
$filename = '...';
header('Content-Type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
readfile($pdfPath);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question