On Sun, Jun 15, 2008 at 1:01 AM, Manu0310 <[EMAIL PROTECTED]> wrote: > > Hi, > > I am building an application that checks a pop3 email box and if there > are new messages, it then checks what messages have attachments, and > parses the attachments that are images(jpg,png,gif only). So in > essence it is an application that allows users to send images via > email and then they get saved to my server and processed as necessary. > > My problem is when I read in the attachment I get the contents of the > image file, it looks something like this: > > /9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAZAAA/ > +4ADkFkb2JlAGTAAAAAAf/b >
You need to understand how email attachments work - what you are seeing is in most cases base64encoded data I would suggest get an email parser class and use it in vendors HTH Tarique -- ============================================================= Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com ============================================================= --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
