Mime Type issue with .docx Files in Apex 4.0

We are having issues with windows 2007 .docx documents that are when they are viewed on windows 2007 machines with ie8. If I look in the storage table the mime type is not set correctly. It is being set as application/octet-stream. When we download the file one windows 7/IE8 either the browser thinks it is a zip file or it does not recognize it.
If I go into the back end and update the table with the correct mime type application/vnd.openxmlformats-officedocument.wordprocessingml.document it works fine.
We have tried to update mime types on the apache server but this does not help.
Apex seems to be deciding what mime type to populate the table with.
It seems like I need to update apex somehow to recognize that a .docx extension should be stored as type mime type application/vnd.openxmlformats-officedocument.wordprocessingml.document.
Does anyone know how I would do this?
We are running Apex 4 on 10g IAS with mod/plsql
are application is setup very similar to what is describe in this document by David Peak
http://www.oracle.com/technetwork/issue-archive/2009/09-jan/o19browser-087025.html
Edited by: user7660930 on Apr 18, 2011 7:40 AM

I thought about trying to do something similar to the code above but would prefer that apex would work properly.
I created a page with the sql region and added this code
owa_util.print_CGI_ENV
when I run it it shows the following environment variables. It look like the WebDB environment HTTP_ACCEPT value needs to be updated. Does any one know how to update this information on a 10gIAS server and were it is stored? I have some documenation on WebDB but none of it seems to point to the correct location of the files and there are no admin pages
PLSQL_GATEWAY = WebDb
GATEWAY_IVERSION = 2
SERVER_SOFTWARE = Oracle-Application-Server-10g/10.1.2.2.0 Oracle-HTTP-Server
GATEWAY_INTERFACE = CGI/1.1
SERVER_PORT = 4445
SERVER_NAME = admsunxapp04.ad.jocoks.com
REQUEST_METHOD = GET
QUERY_STRING = p=301:1:3167922978599440:::::
PATH_INFO = /f
SCRIPT_NAME = /pls/apex/sand
REMOTE_ADDR = 172.16.14.100
SERVER_PROTOCOL = HTTP/1.1
REQUEST_PROTOCOL = HTTPS
REMOTE_USER = APEX_PUBLIC_USER
HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; Tablet PC 2.0)
HTTP_HOST = admsunxapp04.ad.jocoks.com:4445
HTTP_ACCEPT = image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
HTTP_ACCEPT_ENCODING = gzip, deflate
HTTP_ACCEPT_LANGUAGE = en-US
HTTP_ORACLE_ECID = 1303315270:172.16.2.9:3032:0:2526,0
WEB_AUTHENT_PREFIX =
DAD_NAME = apex/sand
DOC_ACCESS_PATH = docs
DOCUMENT_TABLE = wwv_flow_file_objects$
PATH_ALIAS =
REQUEST_CHARSET = AL32UTF8
REQUEST_IANA_CHARSET = UTF-8
SCRIPT_PREFIX = /pls
HTTP_COOKIE = ORA_WWV_R1=%23ALL; ORA_WWV_R2=%23ALL; ORA_WWV_R3=%23ALL; ORA_WWV_ATTRIBUTE_PAGE=4651%2C%23ALL; ORA_WWV_REMEMBER_UN=ADMIN:apex_app; ORA_WWV_USER=8A32E6579024A4F4; oracle.uix=0^^GMT-5:00; DEVL=WaSkGBNfJ6-Vgpw-6HXpHvM8:S

Similar Messages

  • Ristretto or maybe generic mime.types issue: case of file extension?

    Good day.
    Ristretto (the XFCE image viewer) wouldn't recognize the .TIF files I copied over from a Windows partition until I renamed them to .tif. Lowercase .tiff and .tif are indeed the only two file extensions that are mentioned for image/tiff in /etc/mime.types but I thought this was somewhat unexpected (and unwanted).
    Is it a per-app decision whether or not to do case-sensitive extension compares? Is it a problem? And if so, in mime.types or in ristretto?
    Regards,
    Rene

    Hi,
    for some background information about the above changed behavior, have a look at 4.2 Before Header Processes and Browser Security HTTP Headers of the APEX 4.1. release notes.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Security Issues with uploading files into APEX - How is anti-virus handled?

    Hi APEXers!
    We have been using APEX 3 for some time and are now migrating to APEX 4. We have a request for a new application that will require uploading spreadsheets. From other developers, I know it can be done in a few ways. The only thing we have done before is limitied - storing them in BLOBs.
    With the Websheets in APEX 4, users could load them directly into the database.
    But the anti-virus issue has always been unclear. For the apps that we are allowing to upload to BLOBs, they are small user, internal apps so we hope that our enterprise desktop software will stop a bad file before it gets uploaded.
    We have gotten some questions about allowing outside-our-network people to upload spreadsheets or maybe even the public. So far, our security people have just said no - but I wondered what everyone else is doing?
    Are there any White Papers or articles on this? My general impression is that anti-virus software has to be installed at the server level to deal with this.
    If anyone can provide some guidance, I would appreciate it as I have to figure out what to tell the development team requesting to do this.

    Do you have to take excel format? CSV would be a lot safer.
    You might take inspiration from this:
    http://stackoverflow.com/questions/3363767/how-do-you-virus-scan-a-file-being-uploaded-to-your-java-webapp-as-it-streams

  • Having issues with docx files that contain images. I can only see the first page of a multipage docx (the docx only contain images)

    I'm trying to open a file for school on my ipad.  The file is a 14 page document that is text in the form of an image (i.e. someone scanned the document and pasted into micrsoft word).  When I open the file (docx format) in safari I only see one page.  If I save the file on my computer as a .doc I have the same problem.  If I save it as a pdf, I have no problem viewing it.  I was wondering if anyone else is having the same issue and if so, what they've done to solve it.  I use my ipad heavily for school, and do not always have access to a computer, so a solution that stays within the ipad would be best, although at this point i think my best option is to save it as a pdf on a computer to view on my ipad. 

    Hey all,
    I solved this problem. It was not a code-problem but a printer problem. This code do not work on a BrotherHL1660e-printer. On all other printer I tried it works fine.
    Greetings - netti

  • MIME type issue in version 4.1/4.2 Compatibility Mode

    Problem: when displaying a PDF file, it displays OK as PDF if APEX 'Compatability Mode' = 'Pre 4.1', but displays as HTML when in either '4.1' or '4.2' mode.
    Apex: 4.2.2.00.11
    DB: 11gr2
    Web server: Apache on Linux
    More detailed description... this seems to be a MIME type issue related to APEX (or maybe DB) versioning.  The following code works as expected when run in 'Pre 4.1' mode - ie. it displays an appropriate PDF document in the appropriate Acrobat/other plugin in several browsers (Firefox/Opera/Chrome/IE).  But just by changing 'Compatability Mode' to '4.2' (or even '4.1'), it then downloads the file but displays it as a bunch of random characters, and the web page header MIME type is 'text/HTML'.
    Note: this also happens with other file types such as xls/doc/etc, but I expect fixing PDF should also fix these.
    I'm at a bit of a loss as to where this is happening, it seems there is a difference in the 'Compatibility Modes' between either the creating of the HTML header using 'OWA_UTIL.mime_header' or the component path it traverses before reaching apache.
    The only other thing I could think of is that we do a bit of redirection to display the PDF, though this seems like it might be a red herring.  Basically we use page 560 as a container, and then display the PDF with page 561 within a frame embeded within page 560.  So, on the page 560, which is the one we reference throughout the application, we have  a region with a source of '&lt;iframe src=?p=&APP_ID.:561:&SESSION.height="500" width="700"&gt&lt;/iframe&gt</pre>'.  Then on page 561, in a 'On Load - Before Header' process, we make the call to the code 'DOWNLOAD_APPLICANT_PDF' (below).
    Note: I did try calling 'apex_application.stop_apex_engine' after 'DOWNLOAD_APPLICANT_PDF', as suggested in a couple threads, but it didn't fix the problem, and caused a couple low-level system errors.
    Code:
    <pre>
      CREATE OR REPLACE PROCEDURE DOWNLOAD_APPLICANT_PDF ( p_doc_id IN   NUMBER
       AS
          v_length      NUMBER;
          lob_loc       BLOB;
          l_display_inline   CHAR := '1';
       BEGIN
          SELECT pdf_data, DBMS_LOB.getlength (pdf_data)
            INTO lob_loc, v_length
            FROM pdf_dest
           WHERE pdf_dest_id = p_doc_id;
          OWA_UTIL.mime_header ('application/pdf', FALSE);
          HTP.p ('Content-length: ' || v_length);
          HTP.p ('Content-Disposition:inline;filename="mydoc.pdf"');
          OWA_UTIL.http_header_close;
          WPG_DOCLOAD.download_file (lob_loc);
    END;
    </pre>

    Hi,
    for some background information about the above changed behavior, have a look at 4.2 Before Header Processes and Browser Security HTTP Headers of the APEX 4.1. release notes.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Since changing our computer I have been unable to download ebooks to my Reader Library I get a message Some file types associated with EPUB files are not associated with Reader Library; Waterstones suggest that I may have accidentally created a new Adobe

    When I try to download them from the Waterstones website I get a message saying:
    ‘Some file types associated with EPUB files are not associated with Reader Library.  Do you want to associate them now?  When I reply yes I get another message; ‘Configuration error unable to update EPUB files check network firewall and try again’.
    The ‘books’ are saved in the Download directory and I can’t transfer them from there to my E-Reader. I have not had any problems before, it was very simple; I saved the download and it automatically went into the Reader Library.
    I contacted HP and they said it is a software error and suggested I contact Waterstones.  I contacted Waterstones Customer Support and got the following response:
    As the error message is specifically mentioning the firewall it does sound like something in the firewall settings is stopping the download from taking place correctly. However, the files should not be being saved to the Download folder. It would be worth trying again by going to your Digital Order History on your Waterstones.com account and pressing the download button, and then making sure to press "Open" not "Save". When you press Open rather than Save it should give the option to open the file with Adobe Digital Editions. If the firewall message still comes up then I'm afraid something is blocking it on your end.
    If the above "Open" download method works but you then still get an error message it could possibly be that you have accidentally created a new Adobe ID when setting up on the new computer, rather than signing in with your old Adobe ID. It would be worth trying the aforementioned download technique again first, but if problems did still persist it would be worth calling Adobe themselves on 0207 365 0735, as they should be able to sort out any account issue.
      In response to the first para of Waterstones email I already do what they suggest I do press ‘Open’ not ‘Save’ but I don’t get the open with Adobe Digital Editions (we have installed Adobe Digital Editions on the new computer. Waterstones say we may have ‘accidentally created a new Adobe ID when setting up the new computer’ does that mean that we shouldn’t have installed Adobe Digital Editions on the new computer as it would have already been there? How do I sign in with my old Adobe ID? 

    Hi all after attampting to get some supoport from adobe by phone.... nice people infurating policys as far as support for digital editions or DRM is conserned... However I got no where with support.
    I ended up instaling Digital editions on my desktop PC and going through the motions of registering and borrowing a book then returning it. Then I trying on my iPad, Bluefire worked, Over drive did not so I completely removed Overdrive and reinstalled and re registered. all working now.
    Maybe some one at adobe did something. Maybe the install of the adobe DE client on a PC corrected what ever was out of wack with my account. Mayby the server that my account lives on did a scan disk and corrected a bad clustrer.
    What ever happend My account is actiove and working again. hope this helps others.

  • Issue with Sender File FCC

    Hi Experts,
    I have an issue with Sender File FCC Adapter. The file being picked is of type TXT and it is tab seperated. The first line contains the field names and from next line onwards we have values for those fields.
    The field names and field values are tab seperated. Even inserting a single letter in some field value manually disrupts the whole setup & alignment of the TXT file and the Sender File CC is unable to pick up the file from the shared folder. If the first file is errorenous and after that a correct TXT file is posted, it fails to pick up the correct file as it is trying to pick the errorenous file first.
    The Error thrown is :
    "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'ABCD':java.lang.Exception: ERROR in configuration / structure 'ABCD.': More elements in file csv structure than field names specified!"
    I have two questions:
    1. Is there a way to handle such a scenario? For e.g., the errornous TXT file gets picked but throws error in PI.
    2. Is there an alternative that the sender FCC channel picks up the correct files and filter out the errorneous ones ? ?
    Thanks,
    Arkesh

    Hi Arkesh,
    I think you are passing more number of fields than expected. Please check paramters defined and send the data accordingly.
    In the processing parameters tab of sender file adapter, you have an option called Archive faulty source files, below to that you would have option to enter the " Directory for Archiving files with Errors".
    I hope this helps you....
    Thanks,

  • Issue with corrupted file when dragging to timeline

    Has anyone ever had an issue with a files audio becoming corrupted when moving the file from the editing window to the timeline.  I am also seeing the my camtasia mp4 becomes blurry on the timeline but plays fine in the editing screen.
    I had not problem with camtasia Mp4s previously and today I have had so many issues with premier pro

    Hi,
    Even i faced this issue before...the problem with file adapter is the attribute nxsd:quotedBy takes &quot; as default even if u dont mention it takes the same and now after the quotes it immediately expects | wch is not there in the data and it throws the error...now the fix for the problem is put some symbol for nxsd:quotedBy wch u never expect in the data some thing like less than or greater than symbol ....some thing like below
    <element name="FieldTwo" type="string" nxsd:style="terminated"
    nxsd:terminatedBy="|" nxsd:quotedBy="<"/>

  • A serious issue with excel file read in ODI

    hi gurus,
    Issue with excel file read is that we can read only one file by setting the path from ODBC Data Source Administrator-->System DNS -->Select Work book
    what i want to read the dynamic path(Every time I cant go back and set the Work book to select the excel file..
    So i came up with a solution to write a Vbscript that convert the excel to csv my problem got solved for dynamic paths the script is as follow:
    Set objArgs = WScript.Arguments
    For I = 0 to objArgs.Count - 1
    FullName = objArgs(I)
    FileName = Left(objArgs(I), InstrRev(objArgs(I), ".") )
    Set objExcel = CreateObject("Excel.application")
    set objExcelBook = objExcel.Workbooks.Open(FullName)
    objExcel.application.visible=false
    objExcel.application.displayalerts=false
    objExcelBook.SaveAs FileName & "csv",23
    objExcel.Application.Quit
    objExcel.Quit
    Set objExcel = Nothing
    set objExcelBook = Nothing
    Next
    Now this script convert the xls file to csv with comma seprated values
    e.g in excel sheet if data is ABC XYZ PQR
    csv will come with ABC,XYZ,PQR
    here the delimiter is , i want the delimiter as pipe | who's ascii code is 124
    but if i change 23 with 124 its not working i getting the error cannot save as...
    can anyone tell me that what should be the correct code for pipe
    so that the output is ABC|XYZ|PQR
    AS WE CAN USE THE SCRIPTS IN TOOLS
    Edited by: 789141 on Sep 14, 2010 11:33 PM

    I dont have the answer for your question but i have different approach in handling multiple Excel File.
    Step 1. Copy a sample source Excel File and Call it Final.xls .
    Step 2. Map this Final.xls to DSN and in Topology call this Final.xls
    Step 3. Do the Reversing and Map and test the Interface . Once its done.
    Step 4. Create a Package and using a http://odiexperts.com/?p=1426 get the list of all the Excel File
    Step 5 . Using this http://odiexperts.com/?p=273 create a Loop to Read the Excel File name
    Step 6 . Copy using OdiFileCopy to Final.xls and run your interface .
    Step 7. Increment the Loop and copy your next File for Final and run the interface
    Step 8 . Finally you will be able to read all the Excel File .
    Step 9 . Delete the source file [ Optional ]
    Hope this helps.

  • Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    Hi.  I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme.  Comes up with error 50.  I am using a Macbook Pro to copy from so not sure what I am doing wrong.  Can someone help? thanks Rory

    These links might provide some information that may be of help.
    http://support.apple.com/kb/TA20831
    https://discussions.apple.com/message/2035035?messageID=2035035
    I've encountered this error myself upon occasion.  If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying.

  • I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.

    I would first of all trash the preference file for InDesign, make sure the application is closed then find the prefs in
    /Users/USER NAME/Library/Preferences/Adobe InDesign and just throw the entire folder away, it will generate a new one after you launch InDesign again.
    Now launch InDesign and see if the problems are resolved.
    If not I would repair your permissions on your hard drive wih disk utility, and if that fails then di-install InDesign and re-install that single application.
    Let me know if any of these suggestions work for you
    I will be checking my email although you might have to wait for a response as I will be taking a microlight flight over the Victoria Falls tomorrow. Yay can hardly wait.

  • Issue with attachment file name

    Hi All,
    This is about an issue with attachment file name:
    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    Regards
    kiran

    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    - <SAP:Payload xlink:href="cid:payload-4CED452F17C601BDE10080000A492050---sap.com">
      <SAP:Name>1 .Header1.txt</SAP:Name>
    Error we are getting is
    Cannot cast 'Header' to boolean] in class com.sap.aii.mappingtool.flib7.NodeFunctions method createIf[Header, com.sap.aii.mappingtool.tf7.rt.Context---27a73bfa]
    So we have to change the File name Header1.txt to something which we can cast to creatif....(we cannot tell the sendr to change the file name as its is set already)
    Thanks for interste and assisting
    Regards
    Kiran

  • After adding MIME type in sharepoint server, file click opens a popup for file to open as readonly or edit, How to avoid this popup

    After adding MIME type in sharepoint server,
    File click opens a popup for file to open as readonly or edit, How to avoid this popup
    Popup Details:
    You are about to open --> File Details
    How would you like to open --> ReadOnly, Edit
    OS: Window 7
    Jagadish

    this is likely caused by the library requiring check-out/check-in. For a file to be editable, the file needs to be checked out.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Issues with RAW files from my 7D

    I have Aperture 1.5.6 on my computer and the software updater says that is the current version. I shoot with a 20D and a 7D. I upload my raw files to Aperture and edit them from there and then process for a jpeg. However, every time I upload a raw file from my 7D I get the following message when I click on it to edit it: Unsupported Image format.
    Any words of advice, other than just buy Aperture 3??

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

  • Sharpening issues with RAW files

    Hi,
    I have downloaded lightroom 5 as a one month trial and have been playing with the program. I am not an experienced user and are wondering if I am doing something wrong, have wrong settings applied or if it is the known sharpening bug that messes with my photos. I know that sharpening and noise reduction includes a bug that does not let you export pictures 1/3 of original size with sharpening/noise intact. However, in my case, this also happens with RAW files. I do not crop or change size/resolution to any of the photos, but the sharpening is still not working. Photos look great in develop mode, but when I click on library mode to export them, all sharpening disappears!
    Is this the same bug previously reportered "only for pictures 1/3 of original size", or do I have some strange settings applied?
    I was loving lightroom 5 up until I noticed this, and now I am reluctant to buy the product...
    I'd be greatful if anyone has any input on this!
    Thanks in advance

    I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......

Maybe you are looking for

  • Powerbook G4 - Please help!

    My fan is constantly running since I installed Leopard. I'm running 10.5.1. My computer is really really hot, much hotter than usual. I ran Disk Utility and it takes forever to complete and then I get the following msg. Can anyone help? Thanks - Dave

  • HT1198 Can I share my iPhoto library with other logons on the same computer

    My iMac has three separate logons for members of my family. However, it would be very useful if we call all access the same iPhoto library. Is this possible?

  • Can I install photoshop on more than one computer?

    I just purchased a new Mac and downloaded CS6, which I purchased in July of 2013 and installed on my old PC.  After the install when I tried to enter my serial #, it told me it was invalid.  Is this because I can only install it on one computer or am

  • IPhoto And Compression (and Aperture)

    Hello All... I recently imported an aperture project into iPhoto to create a book for a friend. In aperture, the the photos appears as 1536px x 1024px - i.e. perfectly big enough to create a 6" x 8" softback book. However, after the import, some pics

  • Base tables plsss

    hai Cananyone tell me wht are the base tables for 1) Opening , Closing Inventroy 2) Production (Material Group = Prime/Nonprime/Scrap) 3) Downstream Usage 4)Liftings 5) Shutdowns I think , these belong to PP/SD/LE/Inventory modules . Pls tell me urge