|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper Build Web 2.0 Applications Without Hand-Coding Download now! |
|
#1
|
|||
|
|||
|
Does any know where I can get an image
into a blob type column from a perl dbi script? tried the following substitutions with no success. $var=~s/'/'/g; $var=~s///g; $var is where the image is located the insert always barfs any suggestions how to get it in? Thanks in advance, Rick rick@erealestateforyou.com |
|
#2
|
|||
|
|||
|
[QUOTE]Originally posted by dis:
[B]Does any know where I can get an image into a blob type column from a perl dbi script? tried the following substitutions with no success. $var=~s/'/'/g; $var=~s///g; $var is where the image is located the insert always barfs any suggestions how to get it in? Thanks in advance, Rick rick@erealestateforyou.com Here is my way to solve this problem, by using an filehandler $ICONFILE my $icon; my $filesize; if ($ICONFILE ne '') { $filesize = -s $ICONFILE; my $in = read($ICONFILE, $icon, $filesize,0); if ($in != $filesize) { error("Error reading the file $ICONFILE"); } $icon =~ s///g; # first do this $icon =~ s/ ! ّXܑ scrollbars I ԑ0 (ܑn 4̑postusername , H ! ۑ(ޑ resizable =@ B date() [<a href='function.date'>function.date</a>]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. We selected 'America/New_York' for 'EDT/-4.0/DST' instead HB y @ޑHB false a @ޑHB ; I @ޑHB 1 @ޑHB rel @ޑHB = Xܑޑ nofollow A 0(̑- ~ը `ޑ<4̑< timespent B 9 h`̑ޑHB class ޑHB = 8 (ޑ* inlineimg xB_ HB src HB = y HB http a HB :// |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > images in mysql through perl dbi interface |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|