Image data from MySQL into TreeView
- From: "Dirk van der Walt" <vrygesel highveldmail co za>
- To: <gtk-perl-list gnome org>
- Subject: Image data from MySQL into TreeView
- Date: Wed, 09 Feb 2005 20:47:16 +0200
Hi,
I'm using MySQL to store my icons and some other graphics
in.
I plan to create a web as well as a perl-Gtk front end to
the DB. (Thus I have to store the graphics in the DB
itself)
Q: The mysql cookbook showed my how to obtain the image as
a scalar from the DB. Now I can print that to a file and
have an exact replica of the graphic.
I want to use these icons in my treeview.
I've thought of dumping these icons into temp files and
then create them by
print TEMP_FILE ($icon_from_db)
pix => Gtk2::Gdk::Pixbuf->new_from_file(<temp_file_name>)
Is there a quicker and more proper way?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]