As a \"look under the covers\" tutorial for myself I am building a PHP script to gather emails from a POP3 mailbox. While attempting to make use of binary attachments I am
Pass the data to base64_decode() to get the binary data, write it out to a file with file_put_contents()