Help for this page

Select Code to Download


  1. or download this
    open IMG, "foo.gif"
           or die "Couldn't open image: $!\n";
    ...
    while ($txt = substr($hex,0,32,'')) {
           print "'$txt'\n";
           }
    
  2. or download this
    use strict;
    use DBI qw(:sql_types);
    ...
    $sth->bind_param( 1, 'pic1');
    $sth->bind_param( 2, $hex, SQL_LONGVARCHAR);
    $sth->execute();
    
  3. or download this
    print "Content-type: image/gif\n\n";
    print Image();
    ...
    
      return(pack("H*",$image));
    }
    
  4. or download this
    use DBI;
    use strict;
    ...
    undef $/;
    print FH pack("H*",$image);
    close FH;