Well interestingly in case of blackberry devices the header is Content-Type: application/octet-stream; name="=?utf-8?B?UFVSQ0hBU0UgT1JERVJfUmVsaWFuY2UuZG9j?=" Content-Disposition: attachment so obviously thats not how it is happening