Reputation: 1015
I get the blob data from mysql. And how to check the blob data is existing or not using php.
if (image exists)
{
#Do some operation
}
else
{
#Do some operation
}
Upvotes: 0
Views: 6040
Reputation: 152266
Maybe just compare if fetched blob column is not null ?
if ( !empty( $row['blob_column'] ) ) {
}
Upvotes: 3