Can't Uncompress Data Stored to MySQL? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Can't Uncompress Data Stored to MySQL? (/showthread.php?tid=36480) |
Can't Uncompress Data Stored to MySQL? - El Forum - 12-03-2010 [eluser]Vik[/eluser] I'm storing a large text file to a MySQL blob field like so: Code: $theFile = fopen($thespssDATAfileName, "r+"); All appears to go well, and data which appears to be properly compressed is stored in the correct field. When I try to uncompress it like this: Code: $mysql_query = "SELECT UNCOMPRESS(spssDATAfile) FROM jobs "; ...I get a NULL result. What am I missing? Thanks in advance to all for any info. Can't Uncompress Data Stored to MySQL? - El Forum - 12-03-2010 [eluser]Vik[/eluser] I got the answer - I had to use a field of type longblob rather than of blob. |