Heres the problem:
open (IMAGE, "image.jpg"
or die "Cannot open file image.jpg: $!";
binmode IMAGE;
read( IMAGE, $doc, 10000 );
close IMAGE;
it seems to read in okay. Now I try to create that image in a new directory:
open(IMAGE, ">D:\Earth\unique\newimage.jpg"
|| die"newimage.jpg: $!";
binmode IMAGE;
print IMAGE $doc;
close IMAGE;
The code doesn't die, but it doesn't create any images either. Any ideas?
Celia
open (IMAGE, "image.jpg"
binmode IMAGE;
read( IMAGE, $doc, 10000 );
close IMAGE;
it seems to read in okay. Now I try to create that image in a new directory:
open(IMAGE, ">D:\Earth\unique\newimage.jpg"
binmode IMAGE;
print IMAGE $doc;
close IMAGE;
The code doesn't die, but it doesn't create any images either. Any ideas?
Celia