mikeg542 Posted January 16, 2009 Share Posted January 16, 2009 So I use the tutorial from here: http://www.php-mysql-tutorial.com/wikis/mysql-tutorials/uploading-files-to-mysql-database.aspx And when I run the page (I uploaded a jpeg) I just get a page full of �����JFIF���������C� etc. (there's a lot more but I don't want to spam you). Thanks for any help. Link to comment https://forums.phpfreaks.com/topic/141127-downloading-files-from-a-mediumblob-in-a-mysql-db/ Share on other sites More sharing options...
RussellReal Posted January 16, 2009 Share Posted January 16, 2009 header("content-type: image/jpeg"); Link to comment https://forums.phpfreaks.com/topic/141127-downloading-files-from-a-mediumblob-in-a-mysql-db/#findComment-738660 Share on other sites More sharing options...
mikeg542 Posted January 19, 2009 Author Share Posted January 19, 2009 Well, that would work but I wasn't clear on my goals with this, sorry. It should work on all the supported file types. (pdf, jpeg, gif, txt etc.) Thanks for a response, but now I've fixed my question! Link to comment https://forums.phpfreaks.com/topic/141127-downloading-files-from-a-mediumblob-in-a-mysql-db/#findComment-740398 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.