Download binary file php






















I have used some example code to create a database in MySQL and using php I can add binary files to the database. I was under the impression that I would be able to download the files with the source code provided, but am having trouble doing that. Am I getting the wrong impression? How would I go about downloading the data from database? Follow Post Reply. I could get it with this. Thanks for help, but Still not getting a file to download.

My database output looks like this: Filename Type Size Description putty. What am I missing? Is the case of the field-name OK? Because I think php is case-sensitive for getting variables from a database, and I can't think anything else that can cause an error like this Maybe for debugging try to change header to echo to see if it's right. This discussion thread is closed Start new discussion. Similar topics PHP. Sign up using Facebook. Sign up using Email and Password.

Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer?

Who owns this outage? Building intelligent escalation chains for modern SRE. Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Visit chat. Related Hot Network Questions. Question feed. Active Oldest Votes. Thanks for sharing. This might be useful one day :o — Dan Soap. Thanks for your solution. How does it improve over the accepted solution from 7 years ago?

Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name.

Email Required, but never shown. The Overflow Blog. Podcast what if you could invest in your favorite developer?



0コメント

  • 1000 / 1000