This content has been marked as final. Show 9 replies
Jorge, I'm using a Blob field and is its MIME TYPE: application / vnd.openxmlformats-officedocument.wordprocessingml.document
To better exmplicar. In the application I created a template page Print Friendly.
When I click the download link, the file is opened or downloaded in PDF format but the report fields appear blank in PDF.
I had manually changed the MIME Type to msword and it worked, but I need this to be done dynamically every time a new record is made an update should be done.
I'll try to do it in the process.
A trigger or PL / SQL with an if .... then ... else.
I'll test it today and post the result.
Thank you for your attention.
Before you go through that trouble, if you control the glassfish server you may be able to change the mime type mapping there.
You see it's the webserver's job to determine the mine type not APEX. But in the past, I've had to override the mime types when the webserver cannot be configured.
I would appreciate it if you flag my answer as useful or correct. :)
I will create a process to verify that the apex MIME TYPE is docx, if so, change to doc.
That was the quickest solution, because where I work there is a sepação sectors and industry that cares pain is another server. Will take longer to change glassfish.
From what I've realized what is happening is: there is no setting in GlassFish to the MIME type TYPE DOCX, so when the error occurs it cites GlashFish the URL.
I went to the team that takes care of the server and they asked me where should change this in GlassFish. I do not know, I'm now studying the GF.
Do you know where does this in GlassFish?
Thank you again for your attention. :)