visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Databases :: SQL Compatibility issues :: Program to read .txt .doc .rtf .eml format and insert into database?


By: PHP newbee U.S.A.  Date: 04/11/2004 00:00:00  English  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 English  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

EContact
browser fav
page generated in 327.682020 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page