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

Similar Messages

  • Need Java Coding to sent File in a Mail Attachment with MIME Type with SMTP

    Hi Experts,
      I need java code to sent a file in an email attachment with MIME type.
      Please provide me.
    TYhanks
    Bhaskar

    Hi Stefan,
      Thanks for your Blog.
    The same java mapping is been used in my current system, but the legacy system cannot read
    some emails as they are asking us to send the email in MIME format.
    Already i am sending in MIME format itself.
    They can read some Emails and they cannot ream some Emails.
    I think the problem could be their exchange server.
    Can you please suggest on this.
    Regards,
    Bhaskar

  • 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.

  • Resource interpreted as Document but transferred with MIME type application/postscript.

    Hi,
    we are running framed web pages showing preview (PNG or JPEG) of postscript files. These previews are simply linked to the postscript files. Following this links one gets the postscript source shown and not the graphics!? The error console says:
    Resource interpreted as Document but transferred with MIME type application/postscript.  
    When one chooses to:
    Open link in new tab
    the postscript is correctly shown!
    The rough layout of the pages is:
    Start page:
      and frame2.htm (frame1.htm is not of importance):
    When one sets the target to open up a new page the postscript is shown correctly, but we want the postscript to be shown in the 'content' frame!
    If I remember correctly, did this work as wanted in the past and changed the behavior the last year. We experience this behavior in snow leopard and lion (all running the up to date Safari - and yes we are upgrading constantly).
    Any help to get the wanted behavior (back), would be very appreciated!!
    Cheers,
    Raimund

    same thing for me, anyone have any info on this?

  • Problem with mime type in web.xml file

    Hi everybody,
    I actually got a problem with mime types on Weblogic 6.0 under Linux.
    I read the documentation so I added the next lines in the web.xml file in
    the WEB-INF directory of my server :
    <mime-mapping>
    <extension>
    doc
    </extension>
    <mime-type>
    application/msword
    </mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>
    ppt
    </extension>
    <mime-type>
    application/vnd.ms-powerpoint
    </mime-type>
    </mime-mapping>
    Why can't I retrieve a .doc or .ppt files with an internet browser correctly
    ? I get only text/plain ...
    Can someone help me ?
    Regards,
    Alexis Berger

    I am having the same problem with doc and xsl. I have added this
    <mime-mapping>
    <extension>xls</extension>
    <mime-type>application/vnd.ms-excel</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    to my web.xml. I even restarted the server. I still see doc and xsl in binary.
    Is there some other setting that needs to take place?
    I am using WL6.1 with fixpack 1.
    I can see the doc and excel files in the browser if I don't go through the weblogic
    server. That just confirms it's not my browser.
    Kumar Allamraju <[email protected]> wrote:
    <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
    <html>
    It works fine for me in 6.1 SP1.
    <br><br>
    If the following doesn't work , can you
    <br>try application/winword instead of application/msword?
    <p>--
    <br>Kumar
    <p>Siming Mu wrote:
    <blockquote TYPE=CITE>Hi,
    <p>I setup in my web.xml a mime mapping as follows,
    <p><mime-mapping>
    <br><extension>doc</extension><mime-type>application/msword</mime-type>
    <br></mime-mapping>
    <p>When I specify a test.doc url, the doc file appears in my browser
    as
    binary data
    <br>instead of download.
    <p>Please reference change request 055002, which decribes this problem. 
    According
    <br>to edocs, it has been fixed in wls6.1sp1.
    <p>But I am seeing it fixed.  Am I doing anything wrong? Thanks.
    <p>Siming</blockquote>
    </html>

  • 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]

  • 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" /+

  • Opening email attachments with Docs to go

    I can't figure out how to open and view email attachments with Docs to go. Hep!

    save them on your media card
    then open Docs to go
    and select the file.
    The search box on top-right of this page is your true friend, and the public Knowledge Base too:

  • Outbound delivery with Inbound IDOC DELVRY06 with Message type SHPCON

    Hi Friends
    I am trying to pack outbound delivery with Inbound IDOC DELVRY06 with Message type SHPCON.
    But IDOC has error Specification of destination HU missing.
    Could you please help us to resolve the issue to Pack the outbound delivery with the  IDOC.
    Thanks
    SR

    HI Ian Kehoe
    Sorry for delay in reply
    Thanks you very much
    I solved that problem .
    Could you please advice  test data for IDOC  DELVRY06 packing hierarchy (multi level packing) to pack SAP outbound delivery.
    Thanks
    Ravi

  • 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.

  • 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

  • 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.

  • 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....

  • Every time I log onto a new site i get the following popup:Content [application/octet-stream] found Do you want to download it to C:\Users\kathy\ ? ... Can someone please tell me what this is and how do I stop this!

    Content [application/octet-stream] found
    Do you want to download it to C:\Users\kathy\ ?
    '''bold text'''

    Back up all data.
    Check the Mail, Contacts & Calendar preference pane to make sure you're not synchronizing Notes in more than one account.
    If you're not, disable Notes synchronization temporarily.
    Quit Notes, if it's running.
    Triple-click the line below to select it:
    ~/Library/Containers/com.apple.Notes
    Copy the whole line of text to the Clipboard (command-C).
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar. Paste into the box that opens (command-V), then press return. A Finder window should open with a folder selected. If it does, move the selected folder — not just its contents — to the Desktop.
    The folder you're moving is named "com.apple.Notes" It is not the subfolder named "Data" or anything else.
    Re-enable Notes synchronization.
    Relaunch Notes and test. If it works now, delete the folder you moved. Otherwise, quit again, and put the folder back where it was, overwriting the one that may have been created in its place.
    Caution: If you delete some or all of the contents of the selected folder, but leave the folder itself in place, the application may not launch. Deleting the folder will cause it to be rebuilt automatically.

  • Open email attachments with Pages?

    Have just recently purchased 2 iMacs and am having a problem with email attachments. iWorks is installed on both machines. In one machine, when an email attachment comes through I can "Command-click" and get an option menu to select the application that will open the attachment- in other words choose Pages rather than TextEdit or Word (if I had it installed).
    On the second computer, all "Word-type" documents are automatically opend by TextEdit. If I "Command-click"

    You are probably not doing anything wrong but sending to persons not having Macs with Pages of the same version. If you are sending to person on PCs or Macs without the right Pages you have to export to Word or Pdf so they can read it.

Maybe you are looking for

  • UCCX 10.1 - Linked Server - Copying HR data to external SQL Server for reporting

    I have a customer that is migrating from UCCX 7 to UCCX 10.  They currently have a 2008 SQL Server R2 that they use for custom reports.  They have a package that runs nightly to copy relevant data from UCCX 7 to the their server and then run reports

  • Aperture 3 save PDF to folder as JPEG option missing from PDF services?

    I have Aperture 3 downloaded from the App store in a MAC OSX 10.6.7 but the save PDF to folder as jPEG option is missing from the print menu? I do not have discs to re-install Aperture so can I add a workflow directly to the PDF services library and

  • Flex 2:  Drag and Drop

    Hi, I need help or maybe I can get some advice. I have a TileList that gets populated by buttons. I am using HTTPService as my WebService. I have a component called Buttons.mxml, to use as itemRenderer for my TileListEx.mxml. Everything is good as fa

  • Velocity Template that contains XML

    I have found an annoying issue with .vm velocity template files that contain XML within JDeveloper 10.1.3.0.4 (SU3). The .vm file is being picked up as an XML file and XML validation is failing due to the velocity commands. This is stopping me buildi

  • How to detect remote (client) host name or remote host address?

    Hello! I need to receive remote host name or remote IP address in the BSP controller DO_REQUEST method. How to do it? In Java I can use getRemoteAddr() or getRemoteHost() methods of HttpServletRequest class. But in the BSP I can not find analogues of