I need to automatically extract attachments to the file system from incoming emails. Is there any available functionality to do this - either functional or through coding using APIs. I have tried using DBMS_LOB.read and UTL_FILE.put_raw to dump the contents of a blob field to a flat file but that doesn't result in a file I can then open - e.g. I've tried this on an Excel spreadsheet file. Any ideas on how to progress?