Reports with BLOBS

Discussion of open issues, suggestions and bugs regarding database management and administration tools for MySQL
Post Reply
benjax911
Posts: 2
Joined: Tue 10 Dec 2013 04:20

Reports with BLOBS

Post by benjax911 » Tue 17 Dec 2013 21:12

I am not the best with SQL, but I learn fast. I have been working on a report to generate a printable report with a contact's information as well as their picture.
I have two tables:
_contact
_contact_img

I have a query in my report to generate the contact's name concatenated, dates, serial bar code, etc.

The image table contains it's own PK and a field for the _contact PK, and two images - before and after, stored as a long blob.

I have sweated feverishly to solve getting the image to display in the picture box from the toolbox of the report editor. I have the image return as expr1 due to ifnull(after_pic, before_pic). Many thanks for anyone willing to shed some light on this.

Thanks

benjax911
Posts: 2
Joined: Tue 10 Dec 2013 04:20

Re: Reports with BLOBS

Post by benjax911 » Wed 18 Dec 2013 15:46

UPDATE...
My mistake. I used and auto cropping batch utility for my pics which showed fine in the windows system and imaging software but was corrupt in dbforge studio. I simply re-exported each image from gimp and viola; blob returns wonderfully into a report.

This software is amazing!!
Thanks

alexa

Re: Reports with BLOBS

Post by alexa » Thu 19 Dec 2013 09:19

Please let us know if any questions arise.

Post Reply