Databases :: SQL Compatibility issues :: Program to read .txt .doc .rtf .eml format and insert into database? |
|||
| By: PHP newbee |
Date: 04/11/2004 00:00:00 |
Points: 125 | Status: Answered Quality : Excellent |
|
How can program read the attachment files in different format like .txt .doc .eml .rtf and insert it into the database. |
|||
| By: VGR | Date: 04/11/2004 20:57:00 | Type : Answer |
|
| 1) decode the MIME encoding format : easy (uses base64() amongst others) 2) get binary data 3) get file name(s) (in the "disposition" and "filename" header fields) 4) write the files back, or insert into DB 5) bad idea to insert them into a DB. Unmaintainable, and backups will become longer and longer, if ever possible at the end |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








