On Mon, Sep 06, 2004 at 09:17:42PM +0800, Vincent Gulinao wrote: > I need to create a setup that extracts MIME contents, dump them to > directories (classified per content-type), then pass control to > another application.
Just tried creating a mime with binary encoded jpeg in the cli: perl -MMIME::Entity -e 'MIME::Entity->build(Type=>"image/jpeg",Path=>"/path/to/jpg",Encoding=>"binary")->print(\*STDOUT)' Its content was successfully dumped into a directory by this program: http://search.cpan.org/src/ERYQ/MIME-tools-6.200_02/examples/mimeexplode > > Anyone knows any free open-source MIME library (preferably C) that, > among other usual encoding, also supports binary content type (say, a > jpeg directly embedded within MIME data as content). I think It's > uncommon since most commercial decoders I tried, even WinZip, don't > support it. Try libripmime. HTH -- $_=q:; # SHERWIN # 70;72;69;6e;74;20; 27;4a;75;73;74;20; 61;6e;6f;74;68;65; 72;20;50;65;72;6c; 20;6e;6f;76;69;63; 65;27;:;;s=~?(..); ?=pack q$C$,hex$1; ;;;=egg;;;;eval;;; -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
