Hi g21cincy,
I suppose you could write code to do this, and I have heard that SQL has some support for images (maybe in more recent versions), but we don't recommend adding code to your InfoPath form because it increases your IT maintenance cost. Most people end up with hundreds of form templates and maintaining code throughout each becomes a nightmare.
We use Web Services to submit XML to databases and save the XML separately. If the XML contains a base64 encoding for the file or image attachment, those are roundtripped fine as XML. Sometimes we save files to Document Libraries and replace them with links - this reduces size of the XML and also provides out-of-band editing. Make sure you use the "file://" protocol when you do this so that you can open the file from InfoPath and edit (http:// links will result in read-only opens).
To convert file attachments or images to links, check out the free trial download of qRules. It uses a rule to save images to a SharePoint site. If you don't have a SharePoint site, you can store the files to a DAV Web Server but you need to configure it to be open to writes.
Sorry for not being so helpful,