PHP Function to validate setting

As I said,

First, for the images which weight is less than 2 megabytes, it’s ok to send them as strings.

Second, personally I’d never store big images in database at all, as for the web development it’s just insane.

And third, I already agreed, that for the blobs of more than 2 megs in size separate binding is the only way, so I would usr it, if it ever happens.