Need A Way To Store Binary Data In Sql Db Via Php

DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
<div class="IPBDescription">PHP and/or SQL gurus, please give advice</div>Wednesday at work I'm supposed to put a few hours looking into storing a file (any file, could be excel, could be word, could be an avi) into a SQL database (I assume I'll be using BLOB type) and while the PHP uploading part looks really easy, I'm not exactly sure on how to get the data from a file into the database. If anybody has done this before, any pointers would be greatly appreciated. :)

Comments

  • DOOManiacDOOManiac Worst. Critic. Ever. Join Date: 2002-04-17 Member: 462Members, NS1 Playtester
    *bump* I'll only do this once. :P
  • TenSixTenSix Join Date: 2002-11-09 Member: 7932Members
    Might be better to first ask why they would need to do such a thing, then perhaps look at less complex alternatives... like um... just putting the file on the FTP? <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
Sign In or Register to comment.