graciano
17th February 2010, 11:17
Hello all,
In the picture i send it is possible to manage a table containing 3 flields:
mysql> describe foto;
+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| id | int(11) | NO | PRI | NULL | |
| name | varchar(45) | NO | | NULL | |
| image | blob | YES | | NULL | |
+-------+-------------+------+-----+---------+-------+
3 rows in set (0.00 sec)
4299
The load button allows me to load an image form disk into a QLabel.
Now, if i press the add button a key is generated for the id, the name comes from the opened filname and ... the question is:
How can i manage the data for the hidden column (image) if i want to insert the loaded image into that BLOB?
Thanks for any tips on this subject
In the picture i send it is possible to manage a table containing 3 flields:
mysql> describe foto;
+-------+-------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| id | int(11) | NO | PRI | NULL | |
| name | varchar(45) | NO | | NULL | |
| image | blob | YES | | NULL | |
+-------+-------------+------+-----+---------+-------+
3 rows in set (0.00 sec)
4299
The load button allows me to load an image form disk into a QLabel.
Now, if i press the add button a key is generated for the id, the name comes from the opened filname and ... the question is:
How can i manage the data for the hidden column (image) if i want to insert the loaded image into that BLOB?
Thanks for any tips on this subject