can i change mimetype of filename.

Login to reply to this topic.
Fri, 2005-08-26 13:43
Joined: 2005-01-22
Forum posts: 112
how can i change mimetype of filename.

with regards

Sat, 2005-08-27 21:05
Joined: 2005-06-13
Forum posts: 68
Re: can i change mimetype of filename.
To change the mime type of a file you need to write a special recognizer dll.  It has the mdl extension and lives in the \system\recogs folder.  Try googling around for some examples of recognizers.  I know Nokia has one.

If we fall down it's so we can learn to pick ourselves up.

Sun, 2005-08-28 03:22
Forum Nokia Champion
Joined: 2003-10-01
Forum posts: 723
Re: can i change mimetype of filename.
Hey guys, stop for a minute! First of all, I don't understand the question: "change mime type of a filename?" I guess you're talking about mime type of a file.

Second, you cannot change it! You can influent the recognition mechanism by writing a recognizer that recognizes a file in a different way than others do. But that's the only thing you can do! It may happen that there will be more than one recognizer on the device that is capable of recognizing the same data as yours and your recog will be only one of them. So you can't even rely on that the data will always be recognized "properly".

Gabor Torok
Software architect, Agil Eight (http://www.agileight.com/)
Blog: http://mobile-thoughts.blogspot.com/

Sun, 2005-08-28 11:36
Joined: 2005-06-13
Forum posts: 68
Re: can i change mimetype of filename.
Agreed.

The recognizer makes an educated guess of what the mime type of your file is (as a result of calling DoRecgnize).  The way the DoRecognize method works is by setting a flag indicating the certainty with which this file might be of a given mime type.  Hence conflicts between mime types may arise if the certainty level assigned by recognizers are of the same priority.

Nikolas.


If we fall down it's so we can learn to pick ourselves up.

  • Login to reply to this topic.