Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 184
Registered: ‎09-03-2012
My Device: Blackberry 10

Determine mimetype of a file automatically?

Is there a way to automatically detemine the mimetype using filepicker, without having to run through conditional statement base on extension of the file?

Developer
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)

Re: Determine mimetype of a file automatically?

You can't do it automatically, but Google might help you (link and link, I can't open them since I am in China at the moment).

-------------------------------------------
BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
Developer
Posts: 184
Registered: ‎09-03-2012
My Device: Blackberry 10

Re: Determine mimetype of a file automatically?

Thanks zezke.

I just read through them. Looks like there's no easy way. File extensions, here I come!