note 56218 deleted from function.move-uploaded-file by mazzanet

From: Date: Sat, 27 Aug 2005 21:43:00 +0000
Subject: note 56218 deleted from function.move-uploaded-file by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-94273@lists.php.net to get a copy of this message
Note Submitter: harlequin2ATgmxDOTde ---- It should be fairly simple to read an image file from an email, because the file has already been base64_encoded and thus can be processed through "imagecreatefromstring" or similar functions. These should be the neccessary steps for solving your problem: 1.) Read the email file 2.) Spilt it into parts 3.) determine the correct part 4.) Read the part and 5.) create the image 6.) save it in a webserver directory Take a look at the different image functions at www.php.net/images! And there is also an experimental PHP extension for splitting mails into part-documents, called "mailparse" - just give it a try! HTH!

« previous php.notes (#94273) next »