I'm guessing from the category that you might be trying to place a picture, and there may be no picture for some records. In cases like this it's often a good idea to create a placeholder picture e.g. .BMP that simply says "No Picture Available" and use that in your SQL database where necessary.
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up