my $IMG = $this->{DB}->SelectImage; my $InternFH; open $InternFH, "<", \$IMG; my $Image = Wx::Image->new( ); $Image->LoadStreamType( $InternFH, wxBITMAP_TYPE_JPEG ); close $InternFH;