N Nathan Sokalski Sep 3, 2007 #1 I am having trouble determining the MIME type of a file. Does anybody know how to do this for a file programmatically? Thanks.
I am having trouble determining the MIME type of a file. Does anybody know how to do this for a file programmatically? Thanks.
P Patrick Steele Sep 5, 2007 #2 I am having trouble determining the MIME type of a file. Does anybody know how to do this for a file programmatically? Thanks. Click to expand... You could look up the extension in the registry and see if it has a "ContentType" key. For example, HKEY_CLASSES_ROOT\.gif has a "ContentType" of "images/gif".
I am having trouble determining the MIME type of a file. Does anybody know how to do this for a file programmatically? Thanks. Click to expand... You could look up the extension in the registry and see if it has a "ContentType" key. For example, HKEY_CLASSES_ROOT\.gif has a "ContentType" of "images/gif".