简体   繁体   中英

How to populate a JLabel with blobs from MySQL tables

I have tried all the solutions they have offered at stackoverflow and some other websites on how to show a blob from MySQL in a JLabel (I'm using eclipse IDE not that it matters), but it has been of no use. I'm using the "sakila" default/standard/built-in database in MySQL. I'm trying to get the blob in the field "picture" in the staff table into a JLabel on a form. Nothing is working. I have racked my brains.

Guess the blob file was corrupted after all. I tried to insert a new blob in MySQL and was able to retrieve it just fine and put it into a JLable.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM