I have a BLOB field in my DB that I need to edit. I'm using PHPmyadmin which lets me download an unserlialized text version on the contents, and then upload it back again. The problem is that when I edit the file and upload it back I'm getting PHP errors (Invalid argument supplied for foreach()) that I guess indicate that I'm not saving the file properly (?).

Can anyone guide me through the process of doing it right?