PDA

View Full Version : mime type detection



Nyda
08-25-2004, 02:27 PM
I need to detect a file's mimetype for a Gnome VFS module (a multiuser file transfer protocoll...).
I know gnome-vfs offers mimetype detection functions but I'd like to keep my project's core server/client-code free of any desktop specific bindings.
Is there any other standard way to detect mime-types?

rotis23
08-29-2004, 11:16 PM
This may help:

http://www.freedesktop.org/bin/view/Standards/shared-mime-info-spec

Nyda
09-01-2004, 11:15 AM
It seems this is just a spec which is implemented by gnome-vfs and it's KDE equivalent, but doesn't provide a library on it's own. Anyway, I've decided to use the gnome-vfs code in a wrapper file which can be compiled for either gnome or kde.
Thanks for your reply :)

hiverli
08-19-2009, 05:33 PM
Hi

I know forensictool.net 's mime detection program. You can use this