How to save word attachment?

I want to save attachment on disk but I don't know how.
Please help me.
Thanks
Agil Bull

[agilbull],
A mail message with an attachment is represented in MIME as a multipart message.
After using getContent() to get the content of a mail message, the attachment will be in the form of a MimeMultipart object.
To save the data in a body part e.g. an attachment into a file, use the getInputStream method to access the attachment content and copy the data to a FileOutputStream.
HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/

Similar Messages

  • How to save an attachment to Opportunity and BP

    How to save an attachment to Opportunity and BP.
    I want to know how to delete an attachment to Opportunity and client.For this I am using the FM  SDOK_LOIO_DELETE_WITH_PHIOS.
    Using this I am able to delete the attachment but not the corresponding Attachment Guid value from database table SKWG_BREL.
    Clarify me on this,why its not deleting from database table.
    Please tell me the code.
    Thanks
    Prema.

    Hi Prema
    Use the class CL_CRM_DOCUMENTS and method DELETE to delete your current attachments.
    Fill the structure BUSINESS OBJECT and IOS. you will be able to delete the document.
    Use method CREATE_WITH_TABLE or CREATE_WITH_FILE to save an attachment to opportunity or business partner.
    Hope this helps.
    Thanks
    Karthik

  • How to Save Word File In BLOB

    I am very new to above sujbect . i have to save on file in BLOB and reterv it
    any one have sample form any help from anyone...
    thanks

    What version of Forms ? what version of database ?
    do you want to do the job within Forms or with pl/sql stored functions ?
    Francois

  • How to save documents on my iPad

    How to save documents on my iPad

    If you are asking how you save Word or Excel files - or maybe even PDF files - you need to have an app on the Pad in which you can save them. Apps like Documents to Go and Quick Office Pro are compatible with the full suite of MS office Apps and Apple has Pages (Word) Numbers (Excel) and Keynote (Power Point) that will work with the office apps.
    Pdf files can be saved in apps like iBooks and Adobe Reader and others with even more functionality such as GoodReader and Save 2 PDF.
    I think that what Chris meant is that the files are saved automatically in the app after you create them or move them into the app from email attachments. You can tap on an attachment and use Open In and whatever compatible app you have on the iPad will appear in a window from which you can select to open and save that app.

  • Nokia e63 save email attachment as text file

    When I receive email with text document attached and select save, it is always saved in office notes. While this is probably  a reasonable thing to do, the problem is that I cannot find the saved file using file manager. So this text document becomes unavailable for other installed programs. Answers to following questions would help mightily:
    1. How to save email attachment to specified folder (any attachment)?
    2. How to save note from Menu->Office->Notes to some specified folder?
    3. Where Menu->Office->Notes stores the notes? (Active Notes stores them in folder called ActiveNotes in root folder)
    4. Is it possible to remove this program, since its features are completely covered by Active notes?

    The email client saves attachments to the folder Others if you choose 'save' from the menu. Notes cannot be individually accessed, they're a some kind of database hidden deep into your phone. To save your note to some folder the only thing you can do is copy and paste it to Quick Office and save it from there.
    You can't remove the Notes program. I've moved all my notes to Active Notes and use the memory card to store them. As you said, Active Notes does all that Notes does, and more. Notes just starts up a few milliseconds faster
    Message Edited by kvirtanen on 13-Mar-2009 01:57 PM
    kvirtanen.deviantart.com

  • Any way to save photos attached to emails on the phone

    If I receive an email with a photo(s) attached, I can view it in the body of the email which is very nice. But I cannot figure out how to save the attached photo onto the phone.

    If I receive an email with a photo(s) attached, I can
    view it in the body of the email which is very nice.
    But I cannot figure out how to save the attached
    photo onto the phone.
    There is no direct way.
    However, did it not also go to your "home computer?"
    Import it to iPhoto which you can sync to the iPhone.
    ajm

  • I just had my old operating system reinstalled, and i can't save pages documents, don't know how to install word

    i just had my old operating system reinstalled after a breakdown, and now i can't save pages documents. i don't know how to install word.

    What was your old system?
    What is your new System?
    What version of Pages?
    How did you install it?
    I don't know if you can see what's on my screen, but I definitely can't see what's on yours.
    To Install Word, buy it and follow the instructions.
    Peter

  • How can I use Automator to open and save Word docs with links?

    Hi-
    I'm having trouble building a Workflow to open and save Word docs with links.
    My Workflow so far:
    1. Get Finder items
    2. Copy Finder items (to new folder)
    3. Rename selected items
    4. Open selected items (Word docs)
    Three problems occur.
    The first is a Word 2004 problem -- I can't get the warning "This document has links in it; do you want to open it with/without updating the links" to go away (Unilke the Macro warning toggle capability, there is nothing in the Preferences for Word 2004 that addresses the links warning, as far as I can tell; any insight you can shed on this would be terrific.)
    The second problem happens with Automator: if I manually accept the update of the first document's links, Automator opens that document but then halts completely, even though I've instructed it to open multiple documents.
    The third problem I have is that there's no Finder action in Automator that allows me to save the document that's now open (as far as I can see).
    Any suggestions for how to fix? If I can get this to work, and scheduled in iCal, it will be an unbelievable time saver.
    Thanks,
    Jeremy
    PowerPC G5   Mac OS X (10.4.6)  

    Hi there Jeremy,
    to do this you are going to have to add in some Run AppleScript steps...
    These will rely on GUI Scripting. So first you need to activate GUI Scripting.
    Now we need to add in a Run AppleScript action to the end of your workflow...
    This will replace your current number 4 in the workflow (Open Selected...)
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    set allItems to every item of input
    repeat with currItem in allItems
    tell application "TextWrangler"
    open currItem
    end tell
    activate application "TextWrangler"
    tell application "System Events"
    tell process "TextWrangler"
    delay 2
    --when the Word document is opened I have told it to press okay !
    --I don't know what key you want it to press in the dialog box
    keystroke return
    delay 2
    --save the doc
    keystroke "s" using command down
    delay 5
    --close the doc
    keystroke "w" using command down
    end tell
    end tell
    end repeat
    return input
    end run</pre>
    The above script should open each Word Document, press a button in the dialog box then do a save and then close the doc...then loop through the rest of them.
    You need to replace the name Text Wrangler with Microsoft Word (or whatever it is called!), I don't have it on my Mac.
    You will have to let me know what button needs pressing in the first dialog, if it isn't the 'highlighted ' one then we will have to amend the script...
    regards
    Ric

  • How to save Charts to a word document using LabVIEW Report Genereration toolkit?

    I just started using the LabVIEW Report Genereration toolkit, but I can't figure out how to save Waveform Charts (one dimensional data versus time, instead of Graphs) to a Word document. Can somebody give a suggestion? Thanks!

    Nina,
    In MS Word, you have 2 options when you select Insert Object:
    Microsoft Excel Chart
    Microsoft Graph 2000 Graph
    If you select Insert Picture, you can choose Chart. This is the same chart as when you select Microsoft Excel Chart.
    To insert this chart, you will use Word Insert Graph.vi. This VI calls Word_Insert_Chart.vi, that uses ADO object Graph.Chart and its properties and methods.
    From the Microsoft Help:
    Create a chart by using Microsoft Graph
    When you create a chart by using Microsoft Graph, a chart and its associated data are displayed in a table called a "datasheet."
    Zvezdana S.
    National Instruments

  • How to save a invoice in Word Format

    Dear  Sd Gurus
    Please tell how to save a invoice in any format like word format other than the printed stationery .This saved document will be used for mailing to the customer.
    No interface with internet or EDI .
    Hope for a reply soon
    Satish Kullu

    Hi Satish,
    First, your SAP system must be configure by the basis people in order for you to send an external mail. 
    Whether it can send pdf or other file format will depends on the Mail Server you are using.
    The basis people must also maintain the conversion parameters so that SAP knows how to convert the billing documents to be send as a pdf file or other desired format specified by your company.
    Finally, you have define the IMG in Maintain Output Determination for Billing Documents (Output type MAIL) 
      Reward points if this helps.
    Regards
    Karan

  • Help:plzz tell me how to save template form without losing any attached lib

    Hell forum!
    plzz try to help me on how to save the template form to my desktop without losing any attached lib's to customize that form

    Hi,
    Copy all the library files from $AU_TOP/Resources and template.fmb and appstand.fmb from $AU_TOP/forms/US to same local directory.
    Set FORM60_PATH in the REGEDIT as C:\orant\TOOLS\OPEN60\PLSQLLIB;D:\Local Directory. Local Directory means where you copied lib files and template form.
    Open template in form6i and rename the template form. Do the customizations what ever you want.
    Regards,
    Venkanna.

  • How can I save an attachment file

    How can I save an attachment file To my iPad memory.

    An iPad doesn't have a file system like a 'normal' computer, everything has to be stored within apps. Do you have an app that supports the type of file that the attachment is ? If you do then you might be able to press and hold the attachment in the Mail app and get a popup with an option to save the attachment to the app.

  • How to save jpeg email attachment on ipad air

    how to save jpeg email attachment on ipad air

    Hello, tedrbebe. 
    Thank you for visiting Apple Support Communities. 
    Here are the steps on how to save image attachments from your email account to your camera roll. 
    Save a photo or video to your Camera Roll. Touch and hold the photo or video until a menu appears, then tap Save Image.
    Mail Attachments
    Cheers,
    Jason H. 

  • How to save jpeg email attachment to iphoto?

    i'm an iphoto (and mac os x) newbie, and i can't figure out how to save a jpeg attachment that someone has sent me so the image shows up in iphoto. what is the easiest way to do this? i'm using apple mail and iphoto 6 on a macbook pro running os 10.4.5. although occasionally i'd like to save jpegs from my web-based hotmail account too. thanks
    MacBook Pro   Mac OS X (10.4.5)  

    The easiest way to do this in Mail is; next to the attachment field in Mail, you'll see Save & Slideshow. Use the Save pull down menu to "add to iPhoto" & the Slideshow is just what it says, it will do a slideshow of the photos in your email attachment.
    I don't use Hotmail, but I'm sure all you do is click on the image, File>Save>Desktop. From there you can drag the image into iPhoto. Or simply drag the image from Hotmail to your Desktop or directly into iPhoto.
    I hope that was helpful.

  • How to save .pdf file using office word and excel

    Can someone help me how to save .pdf files using office word and excel?  I reinstalled my adobe 7.0 pro in my new pc and before I was able to do it but with my old pc.

    For anything after Office 2003, you have to print to the Adobe PDF printer. If you installed AA 7 on OS newer than XP, you may have to do a workaround to get it to work. With later versions of WORD you can always use the MS plugin for creating PDFs.

Maybe you are looking for

  • How can I remove Photoshop/lightroom/bridge from my old mac to my new mac?

    I bought from Adobe the package with ps/lr/br and payed already for a year. Now I bought a new mac and would like to remove the programs from my old mac to my new mac. So, how can I do? They are connected with watch other now and I deinstalled the Cr

  • Attaching pdf to demo_mail

    I know this has been asked before but I'm having issues getting a pdf attached to an email using the demo_mail package. Perhaps someone could point me in the right direction or suggest an better alternative. I have been using the demo_mail package to

  • Online Tutorials?

    I'm familiar with motion but would like to get better. Has anyone tried any of the online training courses or purchased DVD packages that are project based. Any recommendations would be appreciated. Thank U, Tim iMac   Mac OS X (10.4.7)  

  • Firefox is not showing certain informations on Facebook wall

    On my wall on facebook I don't see posts about pages I liked, pictures I commented and new friendships, just like only links and statuses are viewable. This is not happening in other browsers, I checked Opera and Chrome. == URL of affected sites == h

  • I am using Windows XP and Elements 4. May change to Windows 7

    I am using Windows XP and Elements 4. If I choose to install Windows 7, how can I make sure that I am not loosing a lot of data and links when I install the new system? Which files shoudl I back-up? to be able to use the same structure to identify an