PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Mon Jul 22, 2019 7:36 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: error with imagecopy!!!
PostPosted: Sat Jun 07, 2008 2:37 pm 
Offline
Forum Newbie

Joined: Thu May 15, 2008 10:01 am
Posts: 11
hi friends
a question:
i want to fetch an image(type:blob) from sql database and then copy it to another image with imagecopy().i use this :
....$row=mysql_fetch_query($query);
$content=$row['image'];

imagecopy($image,$content,0,0,0,0,$w,$h);
imagejpeg($image);
(header is sent and $image made by imagecreate())
but the error says:imagecopy():supplied argument is not a valid image resource
why here is this error
is it nessasary that i first stor the image in a binary temprary file and then send it to the function???
regards


Top
 Profile  
 
PostPosted: Sat Jun 07, 2008 3:23 pm 
Offline
Jedi Mod
User avatar

Joined: Tue Dec 21, 2004 6:03 pm
Posts: 5263
Location: usrlab.com


Top
 Profile  
 
PostPosted: Sat Jun 07, 2008 3:45 pm 
Offline
Forum Newbie

Joined: Thu May 15, 2008 10:01 am
Posts: 11
thank u very much onion2k it works :D :D :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group