That's an easy one. Do something like this:
//select the data i want
$query = "SELECT `myblob` FROM `mytable`";
//get the result from the above query
$result = $mysql_query($query);
//first filename will be 1.txt
$filename = 0;
//keep looping through the result to get all the data
while($array = mysql_fetch_array($result))
{
//set the next filename
$filename++;
//create the file and open for writing
$handle = fopen($filename.".txt", 'x');
//write the blob to the file
fwrite($handle, $array['myblob']);
//close the file handle
fclose($handle);
}
Something like that :p. Hope this helps