- Code: Select all
header("Content-disposition: attachment; filename=db_app");
When I try to download the file from a usual webbrowser everything is fine.
But when I try to download it from within my Android App I only get a file with a "0" in it and not the real content.
I use the source code from here.
I think the problem is that I am not directly downloading the file, instead I have to react on the HTTP Header information "Content-disposition: attachment; filename=db_app", does anyone know how to do this and download the file?