我是靠谱客的博主 阔达荔枝,最近开发中收集的这篇文章主要介绍How to get TDataType (Mime type) of a file(转),觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

Hi,
Is there a simple way to get the hidden mime type of a media file. Say, I download a file file.mp3 renamed as myfile over bluetooth and save it as a local file. later i want to know if CDocumentHandler can handle the file by calling the function myDocHandler.CanHandle(TDataType type).
To do this, i need to know the MIME type of "myfile".
Is there a simple function lile TDataType GetMimeType(TDes &filename) ?
I would appreciate anyone who can help me..
regards & thanks
murali

 

Hi
Check RApaLsSession and its RecognizeData()-function.
yucca

转载于:https://www.cnblogs.com/yaoliang11/archive/2010/08/05/1793155.html

最后

以上就是阔达荔枝为你收集整理的How to get TDataType (Mime type) of a file(转)的全部内容,希望文章能够帮你解决How to get TDataType (Mime type) of a file(转)所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(70)

评论列表共有 0 条评论

立即
投稿
返回
顶部