Try this:
firefoxProfile.setPreference("pdfjs.disabled", true);
try to set MIME type to:
application/octet-stream