Mime Types : application/octet-stream

When using CFFILE, I am allowing "text/xml". Client is saving
MS Excel as XML. Many test done and has worked until today when the
error started occuring that the MIME type is not accepted. I do
understand that the "application/octet-stream" MIME type is
generated (sometimes) when a file is viewed or save in a word
process or spreadsheet application.
The question is ... are there security concerns if I allow
"application/octet-stream" MIME type to be uploaded to the server?
Any thoughts or conerns would be appreciated.
-jb

The MIME type is provided by the client browser. Is the
browser posting an XML file and sending the MIME type as
pplication/octet-stream instead of text/xml? In Windows/Internet
Explorer MIME types and extensions are associated by a registry
entry. If you have access to the client's PC you may wish to check
this.
If you allow application/octet-stream you are opening
yourself up. I also recommend you check file extensions and only
accept uploads from trusted sources.

Similar Messages

  • Inbound Email Attachments with MIME type of application/octet-stream

    I'm hoping someone can help me here. I'm trying to start a BPEL process via email. The email can consist of no attachments or multiple attachments. All the attachments should be text, e.g. XML, CSV, etc.
    Where I have got to is receiving the email and writing the attachments to variables. All is fine until I get an attachment that has a MIME type of application/octet-stream. I would only expect to see this for files that are not text based.
    Does anyon know how I can inturpret this type so I can extract the text? In this example both files are text based although only the first file is displayed.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <mailMessage xmlns="http://services.oracle.com/bpel/mail">
    - <from>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </from>
    - <to>
    - <address>
    <email>j@james</email>
    <displayName>James</displayName>
    </address>
    </to>
    - <replyTo>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </replyTo>
    <subject>RE: test</subject>
    <sentDate>2007-05-02T11:19:37.000+12:00</sentDate>
    <contentType>multipart/mixed; boundary="----_=_NextPart_001_01C78C47.6040C3F0"</contentType>
    - <content>
    - <multiPart>
    - <bodyPart>
    <contentType>text/plain; charset="iso-8859-1"</contentType>
    <content>________________________________ From: James [mailto:[email protected]] Sent: Tue 1/05/2007 3:05 PM To: James Subject: test</content>
    </bodyPart>
    - <bodyPart>
    <contentType>text/plain; name="create_MODS_schema.sql"</contentType>
    <content>CREATE USER TOLLBPEL IDENTIFIED BY VALUES 'TOLLBPEL' DEFAULT TABLESPACE APPS_TS_MODS_DATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; GRANT ANALYZE ANY TO MODS; GRANT CREATE TYPE TO MODS; GRANT CREATE TABLE TO MODS; GRANT ALTER SESSION TO MODS; GRANT QUERY REWRITE TO MODS; GRANT CREATE CLUSTER TO MODS; GRANT CREATE SESSION TO MODS; GRANT CREATE TRIGGER TO MODS; GRANT CREATE SEQUENCE TO MODS; GRANT CREATE SNAPSHOT TO MODS; GRANT DROP ANY OUTLINE TO MODS; GRANT ALTER ANY OUTLINE TO MODS; GRANT CREATE ANY OUTLINE TO MODS; GRANT CREATE DATABASE LINK TO MODS; GRANT CREATE PROCEDURE to MODS; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_DATA; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_IDX;</content>
    <bodyPartName>create_MODS_schema.sql</bodyPartName>
    </bodyPart>
    - <bodyPart>
    <contentType>application/octet-stream; name="citup.log"</contentType>
    <content>W0luc3RhbGxTaGllbGQgU2lsZW50XQ0KVmVyc2lvbj12NS4wMC4wMDANCkZpbGU9TG9nIEZpbGUNCltSZXNwb25zZVJlc3VsdF0NClJlc3VsdENvZGU9LTEyDQo=</content>
    </bodyPart>
    </multiPart>
    </content>
    </mailMessage>
    Any help will be appreciated.
    cheers
    James

    I'm hoping someone can help me here. I'm trying to start a BPEL process via email. The email can consist of no attachments or multiple attachments. All the attachments should be text, e.g. XML, CSV, etc.
    Where I have got to is receiving the email and writing the attachments to variables. All is fine until I get an attachment that has a MIME type of application/octet-stream. I would only expect to see this for files that are not text based.
    Does anyon know how I can inturpret this type so I can extract the text? In this example both files are text based although only the first file is displayed.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <mailMessage xmlns="http://services.oracle.com/bpel/mail">
    - <from>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </from>
    - <to>
    - <address>
    <email>j@james</email>
    <displayName>James</displayName>
    </address>
    </to>
    - <replyTo>
    <email>[email protected]</email>
    <displayName>James</displayName>
    </replyTo>
    <subject>RE: test</subject>
    <sentDate>2007-05-02T11:19:37.000+12:00</sentDate>
    <contentType>multipart/mixed; boundary="----_=_NextPart_001_01C78C47.6040C3F0"</contentType>
    - <content>
    - <multiPart>
    - <bodyPart>
    <contentType>text/plain; charset="iso-8859-1"</contentType>
    <content>________________________________ From: James [mailto:[email protected]] Sent: Tue 1/05/2007 3:05 PM To: James Subject: test</content>
    </bodyPart>
    - <bodyPart>
    <contentType>text/plain; name="create_MODS_schema.sql"</contentType>
    <content>CREATE USER TOLLBPEL IDENTIFIED BY VALUES 'TOLLBPEL' DEFAULT TABLESPACE APPS_TS_MODS_DATA TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK; GRANT ANALYZE ANY TO MODS; GRANT CREATE TYPE TO MODS; GRANT CREATE TABLE TO MODS; GRANT ALTER SESSION TO MODS; GRANT QUERY REWRITE TO MODS; GRANT CREATE CLUSTER TO MODS; GRANT CREATE SESSION TO MODS; GRANT CREATE TRIGGER TO MODS; GRANT CREATE SEQUENCE TO MODS; GRANT CREATE SNAPSHOT TO MODS; GRANT DROP ANY OUTLINE TO MODS; GRANT ALTER ANY OUTLINE TO MODS; GRANT CREATE ANY OUTLINE TO MODS; GRANT CREATE DATABASE LINK TO MODS; GRANT CREATE PROCEDURE to MODS; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_DATA; ALTER USER MODS QUOTA UNLIMITED ON APPS_TS_MODS_IDX;</content>
    <bodyPartName>create_MODS_schema.sql</bodyPartName>
    </bodyPart>
    - <bodyPart>
    <contentType>application/octet-stream; name="citup.log"</contentType>
    <content>W0luc3RhbGxTaGllbGQgU2lsZW50XQ0KVmVyc2lvbj12NS4wMC4wMDANCkZpbGU9TG9nIEZpbGUNCltSZXNwb25zZVJlc3VsdF0NClJlc3VsdENvZGU9LTEyDQo=</content>
    </bodyPart>
    </multiPart>
    </content>
    </mailMessage>
    Any help will be appreciated.
    cheers
    James

  • Get MIME type of file returns application/octet-stream for all but txt

    Eclipse 3.3.1.1, JRE 1.6.0_03, Tomcat 6.0, webwork 2.2.4
    I've created a test upload/view file page. I can successfully upload and return the file to view. However, the content type is always application/octet-stream except for txt.
    String contentType = new MimetypesFileTypeMap().getContentType(filename);
    System.out.println("contenttype for " + filename + ": "+contentType);I created mime.types in my META-INF for tomcat and populated it, but it doesn't change anything. Uploading an mp3 should return the audio/mpeg3 I have in mime.types:
    audio/mpeg3                         mp3
    I verified that it is in /wtpwebapps/MyApp/META-INF/
    My web.xml even has it:
        <mime-mapping>
            <extension>mp3</extension>
            <mime-type>audio/mpeg3</mime-type>
        </mime-mapping>Am I missing something?

    Darn it. The form gobbled up my mimeTypes.rdf code. Here it is again with the GT and LT symbols replaced with '+':
    +RDF:li RDF:resource="urn:mimetype:application/pdf2"/+
    +RDF:Description RDF:about="urn:mimetype:application/pdf2"
    NC:fileExtensions="pdf"
    NC:description="TonyTest PDF document"
    NC:value="application/pdf2"
    NC:editable="true"+
    +NC:handlerProp RDF:resource="urn:mimetype:handler:application/pdf2"/+
    +/RDF:Description+
    +RDF:Description RDF:about="urn:mimetype:handler:application/pdf2"
    NC:alwaysAsk="true"
    NC:saveToDisk="false"
    NC:useSystemDefault="false"
    NC:handleInternal="false"+
    +NC:externalApplication RDF:resource="urn:mimetype:externalApplication:application/pdf2"/+
    +/RDF:Description+
    +RDF:Description RDF:about="urn:mimetype:externalApplication:application/pdf2"
    NC:path="/usr/bin/acroread"
    NC:prettyName="acroread" /+

  • How to get at a mail of MIME type application/vnd.ms-excel?

    My java proggie has to deal with an email sent with Outlook '97 (don't ask me why it has to be that) and this email has the following header fields (see below). Now, my program works fine if the email has MIME type multipart/mixed. So, how do I have to do to handle an email of MIME type application/vnd.ms-excel (outline of logic or even some code snippet will be greatly appreciated)?
    Received: by chk_exchange6.whatever.local
         id <01C83718.A96E9AC0@chk_exchange6.whatever.local>; Wed, 5 Dec 2007 16:27:24 +0800
    Message-ID: <E839E45C64CF7E4D9E4E8A334B79363001F0DB62@chk_exchange6.whatever.local>
    From: "somebody" <[email protected]>
    To: "me" <[email protected]>
    Subject: excel attached
    Date: Wed, 5 Dec 2007 16:27:24 +0800
    MIME-Version: 1.0
    Content-Type: application/vnd.ms-excel;
         name="nevermind.xls"
    Content-Transfer-Encoding: base64
    Content-Disposition: attachment;
         filename="nevermind.xls"
    Edited by: dickensl on Dec 5, 2007 11:47 PM

    Depends on what you want to do with it.
    If you want to access the data in the Excel spreadsheet
    and make sense of it, you're going to need some
    Java classes to interpret an Excel spreadsheet.
    Good luck on that. :-)
    If you just want to save the content in a file, as if it
    were an attachment, use msg.getInputStream()
    and copy the data to a file, like this:
            OutputStream out = null;
            InputStream in = null;
            try {
                out = new BufferedOutputStream(new FileOutputStream(file));
                in = msg.getInputStream();
                byte[] buf = new byte[8192];
                int len;
                while ((len = in.read(buf)) > 0)
                    out.write(buf, 0, len);
            } finally {
                // close streams, but don't mask original exception, if any
                try {
                    if (in != null)
                        in.close();
                } catch (IOException ex) { }
                try {
                    if (out != null)
                        out.close();
                } catch (IOException ex) { }
            }

  • Attachments (word docs and PDFs) to emails can not be opened by the receivers. Are received as .dat files or application/octet-stream

    Attachments I add to emails (word doc or PDFs) can not be opened by the email receivers. Word documents attachments are received with ATT00427.dat (application/octet-stream) or .doc with (application/octet-stream). PDF attached files arrive with .pdf (application/octet-stream). My copy of my sent email has the same attachment extensions.
    == This happened ==
    Every time Firefox opened

    Firefox doesn't do email, it's a web browser.
    If you are using Firefox to access web mail, you need to seek support from your service provider or a forum for that service.
    If your problem is with Thunderbird, see this forum for support.
    [http://www.mozillamessaging.com/en-US/support/]
    or this one
    [http://forums.mozillazine.org/viewforum.php?f=39]

  • MIME TYPE ; application/vnd.ms-excel

    HI
    i have bsp page which i have declared mime type application/vnd.ms excel the idea is to download the entire contents in local machine . when i click generate excel i get 3 buttons open ,save ,cancel. how can i capture the event open in the page .a sample code will be very helpfull
    reagrds
    Prasun

    Hi
    This is sample code need to be declared in the OnInputProcessing an event for an ID:
    data:
      w_event type ref to cl_htmlb_event,
      w_obj type ref to object,
      w_mod type ref to cl_htmlb_inputfield,
      w_module type string.
      data:
       tv type ref to cl_htmlb_tableview,
       tv_data type ref to cl_htmlb_event_tableview.
      call method cl_htmlb_manager=>get_event
      exporting
        request = runtime->server->request
      receiving
        event   = w_event.
      case w_event->id.
      when 'open'.
        call method cl_htmlb_manager=>get_data
          exporting
            request = runtime->server->request
            name    = 'inputfield'
            id      = 'module'
          receiving
            data    = w_obj.
           w_mod ?= w_obj.
           w_module = w_mod->value.
    endcase.
    'open' this open you need to declare in HTMLB  Button Tag with Option ID...in this way as soon as you click the Button OPEN the Event will be triggered
    Regards,
    Rajani

  • MiMe type application plug in

    When i open the page i get this error:"The page “ONE - Israel's Sports Portal” has content of MIME type “application/x-oleobject”. Because you don’t have a plug-in installed for this MIME type, this content can’t be displayed."
    How do i get the plug in????

    They're using an ActiveX Control. This will only work with IE.

  • Trouble shooting- MIME type "application/x-shockwave-flash"

    I am experincing a problem with watching youtube videos. This problem is exactly like Subtitlemewrong's problem which stated...
    "I received only the December '07 update of Quicktime (7.4) and Security Update (2007-009 1.1). That's it. And then my life went to shambles and flash content no longer displays on the web!"...
    "A website with flash content won't load, instead I get a block icon with a question mark and a message saying, "The page "Page Title X" has content of MIME type "application/x-shockwave-flash". Because you don't have a plug-in installed for this MIME type, the content can't be displayed." Sometimes I get directed to the Adobe site for Flash, which I'll download. But that doesn't do anything either."
    I tried the solution that was given by Klaus1 and it didn't work. I uninstalled using http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14157&sliceId=2
    Then I tried to install using http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash. I clicked on powerpc -based mac and started to install and recieved taht same message that I didn't have the plug-in installed this MIME type.
    Thanks for you help.

    Yeah, I already tried it under a different account. Unfortunately the new account had the same problem. I appreciate the suggestion. My only logical guess is that the new update to quicktime doesn't mix with 10.3 Panther. I am planning on upgrading to Leopard next week after I get my paycheck. Who knows, maybe those guys will know how to fix it, but so far...no luck. Thanks.

  • Content of MIME type "application/x-shockwave-flash"

    Hey, im not that advanced with this stuff but I keep on getting this message recently and I cannot remember any recent major downloads/updates:
    This page has content of MIME type “application/x-shockwave-flash”, but you don’t have a plug-in installed for this MIME type.
    This happens on Youtube, facebook and stuff like that. Also, Ive noticed that apple trailers using quicktime isnt working. I have installed the new plugins for flashplayer and Quicktime but still no result.
    Any help PLEASE? I hate using firefox coz i love safari!
    Cheers!
    Pratik

    Have you by any chance moved Safari from its proper place in the Applications Folder to a sub-folder, or renamed it?
    Try this routine:
    Repairing permissions is an important part of regular maintenance, and should always be carried out both before and after any software installation or update.
    Go to Disk Utility (this is in your Utilities Folder in your Application folder) and click on the icon of your hard disk (not the one with all the numbers).
    In First Aid, click on Repair Permissions.
    This only takes a minute or two.
    Background information here:
    http://docs.info.apple.com/article.html?artnum=25751
    and here:
    http://docs.info.apple.com/article.html?artnum=302672
    If you were having any serious problems with your Mac you might as well complete the exercise by repairing your hard disk as well. You cannot do this from the same start-up disk. Reboot from your install disk (holding down the C key). Once it opens, select your language, and then go to Disk Utility from the Utilities menu. Select your hard disk as before and click Repair.
    Once that is complete reboot again from your usual start-up disk.
    More useful reading here:
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://support.apple.com/kb/TS1417

  • MIME type &#147;application/x-mplayer2&#148;

    One URL I visit pops up a warning that I don't have a "MIME type 'application/x-mplayer2' plug-in installed, so I can't use certain portions of the site. Where can I find such a plug-in? Is it a popular plug-in that is used by other sites?

    I've never come across this plugin before - doubt it's widely used - but it might refer to MPlayer OS X, MPlayer Plug-in or Windows Media, I'm not sure. Try out MPlayer Plug-in first.
    Yang

  • When I save a pages document as a pdf and then try to email the document, it loads as an application octet-stream dat file instead of a pdf. What's happening?

    When I save a Pages document as a pdf and then try to email the document, it loads as an application octet-stream dat file instead of a pdf and recipients can't open it. Some load correctly, but about half don't load as a pdf. What's happening?

    Hi mjmonck-
    Which email provider are you using? There are different solutions possible for different providers. Yahoo is having trouble with attachments, outside of any Firefox issue. I've seen a Google user fix this by manually adding the mail URL to their ad block program- which mistakenly perceived the webmail page as an advertisement.
    Hope this helps.

  • Safari and MIME type "application/x-mplayer2"

    When trying to listen to web pages conatining mp3 audio files (prior to purchasing them) , Safari comes up with a message saying that MIME type “application/x-mplayer2” is not installed and only downloads the html file and not the mp3 file. When we check on our installed plug-ins in Safari, MIME type “application/x-mplayer2” has been installed.
    How do we fix this? We are using Safari Version 2.0.2 (416.12) OSX 10.4.3. It works on one of our older machines running Safari Version 1.3.1 (v312.3.3) OSX 10.3.9
    Regards,
    Peter

    Nevermind. I answered my own question. Seek and you shall find. http://www.apple.com/safari/download/plugins.html I just had to DL the WMV plug in. All better.

  • When I automate my application using selenium on firefox, Firefox gives a pop-up of "application/octet-stream".

    I am automating a web application using Selenium. When I run my Selenium scripts through Selenium RC on firefox, Firefox does not invoke the application's URL and throws a pop-up:
    You have chosen to open
    which is a: application/octet-stream
    from: http://application url...
    what should firefox do with this file?
    Open
    Save.
    If I open the same URL manually, by entering the url in browser's url bar, it gets opened properly.
    Please suggest, if any setting needs to be changed in my browser.
    I am using:
    Win XP and FF 3.6.12

    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox
    Comcast online email is considered '''web mail''' so you need to scroll down that support page to the web mail section.

  • HT1338 I have Microsoft Word for Apple, and when I send an attachment to an email, it goes as  "application/octet-stream", and no one can open it. What can I do to send it as an ordinary word.doc

    I have Microsoft Word for Apple, and when I send an attachment to an email, it goes as  "application/octet-stream", and no one can open it. What can I do to send it as an ordinary word.doc>

    You could Zip it.
     Cheers, Tom

  • You have chosen to open which is a: application/octet-stream error

    I have been getting his error for a very long time now:
    you have chosen to open (web address here) which is a: application/octet-stream ehat should firefox do with this file? open - save
    i got this from firefox 3, i tried completely uninstalling it, and then reinstalling it
    and the same thing happens in firefox 4, which i just uninstalled firefox 3 and did a clean install of firefox 4
    it happens randomly and periodically, it seems each new session resets the warnings, and when i click on about 35% of the websites in my speeddial, it will load that warning and a blank tab, after i click the speeddial again, it will work for that site, for the rest of the session..
    it seems completely random, sometimes its google.com, sometimes mozilla.com, it could really be anything..
    it could be a website in my speeddial, but it also happens sometimes when typing from the address bar
    i have done extensive spyware sweeps, and antivirus sweeps for anything out of the ordinary, and i even repaired Windows XP SP2, and then I even upgraded to Windows XP SP3, i have all the updates, etc..
    I have 2 computers on this network, and they both do it.
    its really driving me crazy.. i even thoght about wiping my entire hard drive and reinstalling XP, but i dont want to do that
    i tried IE8, but i hated the lack of speedials and tab options
    and I tried Opera but i hated the fact that there were no multiple speedial tabs
    and im not fond of chrome or safari for similar reasons..
    i've tried a few things i've found online, but nothing really applies to this problem
    does anyone have any idea how to fix this so i can keep using firefox?
    thanks

    Show us the output of
    emctl status dbconsoleMost of the times, EM stops with DGCP being enabled on the system after the db's creation. I faced alot of it just 2 days ago when 2 of my boxes stopped EM. So show us the output of the above command and to have an idea of basic EM troubleshooting, read this,
    http://oracle-base.com/articles/misc/BasicEnterpriseManagerTroubleshooting.php
    HTH
    Aman....

Maybe you are looking for

  • Connecting Macbook to Sony Bravia 32" - Won't fill screen and not clear

    I just picked up a Mini-DVI > DVI and DVI > HDMI cord today from my local Apple Store and hooked up my Macbook to my new Sony Bravia 32" HDTV. Unfortunately, I having some problems setting it up. My issues are: - I'm not sure how to make my TV the MA

  • Dont want to allow user to confirm more hours than planned hours

    Hi, in the projects, we dont want to allow user to confirm more hours than planned hours. Pls suggest. Thanks

  • BP Details not coming properly in BP search results for editing

    Hi, Can anyone help me to solve the below issue. When i tried to search the BP for editing in IC WEB UI(7.0 ehp 1 version) by using the accounts & products, and a/c management work centers in IC AGENT business role  i am not getting the complete BP d

  • Demo doesn't work

    I tried the requisition demo but got a failure 3122: Duplicate item 'WFDEMO/1' could not be created. Error Stack: Wf_Engine.CreateProcess(WFDEMO, 1) WF_REQDEMO.StartProcess(1, 1900, CDOUGLAS, BLEWIS) wf_reqdemo.Submit_Req(1, test, 1900, CDOUGLAS, BLE

  • How to create editable .mov files from After Effects

    Hi, I am creating videos for my clients using after effects. The requirment is that they should be able to edit the .mov files e.g adding their company name, text or logo without using after effects without losing any effects. How can I accomplish th