Urgent - download attachment like hotmail does?!

in javamail how to download a attachment?
i plan to
first: get the multipart from the message, and get the inputstream instance of it
sencond: make a new file,get the outputstream of it then wirte to the new file.
but i think in most mail services, people can rename the attachment file and then save it in the local disk as hotmail does.
how to implement that: a link which show the attachment's name( i can do this) then click to the link, a file dialog will pop up and user can save the file by whatever name.( i have no idea about it) then make the new file and save it( i can do this)
so any suggestion will be welcome. and thanks your help first.
best regards

How to download attachment file from server to the user's client ?
I mean what i want to do is -
i show file name as hyperlink . Now when user clicks on the filename's link , the save file dialog should open and when user clicks on save button in file-dialog, the file should be saved on local disk.
Thank you.
chirag0A
Thank you.
chirag

Similar Messages

  • Links on my desktop have the firefox .ico and not the web link .ico Can this be automaticly attached like IE does

    When I place an internet link on the desktop using Firefox 3.6.13 the link (.ico) icon is replaced with the Firefox (.ico) icon instead.
    IE transfers this icon to the desktop with the link text.
    Can someone fix this?

    You have to assign the favicon yourself to the desktop shortcut (right-click the shortcut: Properties) after you have dragged the link to the desktop.
    You can usually find the favicon in Tools >Page Info > Media and save the icon there. <br />
    Otherwise use the main domain of the website and add favicon.ico (e.g. mozilla.com/favicon.ico) to display the favicon in a tab and save that image to a folder.
    getFavicon: https://addons.mozilla.org/en-US/firefox/addon/9548

  • Mail.app osx lion receive from hotmail does not display attachment

    mail.app 5.2 (1257) osx lion 10.7.3 receiving mail from people sending with hotmail do not display attachment
    the attachment counter says 2, in the message overview
    but I only see one, not the one I want to see, when I click that message, and try to save as
    the one I do see was mine, that returned because of reply to my message
    the attachment attached in hotmail by the other person is not viewable or downloadable
    in the message source the attachment is there...
    --_98d1a076-fcb8-4b8d-93de-5fa8b8e59460_
    Content-Type: multipart/alternative;
        boundary=_1ae32142-6165-4e42-b930-818ef81314da_
    and
    --_98d1a076-fcb8-4b8d-93de-5fa8b8e59460_
    Content-Disposition: attachment;
        filename=some.pdf
    Content-Type: application/pdf;
        name=some.pdf
    Content-Transfer-Encoding: base64
    JVBERi0xLjMKJcTl8uXrp/Og0MTGCjQgMCBvYmoKPDwgL0xlbmd0aCA1IDAgUiAvRmlsdGVyIC9G
    bGF0ZURlY29kZSA+PgpzdHJlYW0KeAG1WNtu20YQfddXTIGiSABjsxcuyU2emqAuegXSCOgzLa2k
    TSRS5pK2la/vWd5kq4q8BlobMGl7PGfmzNmZWd/SR7olkbKURM60MUaSznKWU6YTfK0t/U0lvfng
    BS088e7TL/A3nMmEh4/+h9N3iqeMK2MozTXLZ4sdvZ+T0L3Z+Jzv6M21YIIEzVf06rvXNP9MP827
    YL7lWCrFcgm/ijMhLzmWjA+Of3frTUPX29ZvYiAUMpea
    and so on

    how do you log into hotmail at work? via webmail interface? hotmail provides POP email access only when using an email clienet and you probably have Mail set to remove messages from server after downloading them. go to Mail preferences->account->advanced and check those settings. you can change them to leave messages on server or to remove them from server only when they are moved from the inbox.

  • Why doesn't iPhone store audio clips that you download from say whatapp like it does with photos and videos?

    Why doesn't iPhone store audio clips that you download from say whatapp like it does with pictures and video?

    Because you can't add content, to any iPhone, that way. Done by design.

  • What do I need to change on My iPad to download to ipod applic on ipad? It states it won't sync but seems like it does except for iTunes music.

    What do I need to change on My iPad to download to ipod applic on ipad? It states it won't sync but seems like it does except for iTunes music.

    Is this an iPod Touch app?

  • Filed messages issue, could not download attachment

    My Z10 seems to be having major issues downloading attachment from my Exchange account when there's a rule (client-side rule) that files this away.  My Z10 is set to show filed messages and to sync this folder so it does come through, but I can't download the attachments (txt files).
    If I forward the email to me to bypass the rule (via WebApp), I have no issues downloading the attachment.
    In general, it seems as though I'm getting iffy support for filed messages (Gmail, via IMAP, doesn't alert on emails that bypass Inbox and are filed, but that folder/label is set to sync too).
    Anyone have any ideas or am I just running into some bugs?

    Hey jj619,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    To better investigate why the attachment is not downloading, we will need to gather some logs.  Please contact your network service provider and ask to be transferred to BlackBerry.
    Thanks for your patience.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • N8 can´t download attached files

    Hi everyone,
    I hope you can help me out. I have configured my 2 mail accounts (gmail and hotmail) on my new N8. I can properly read mails, but i can´t download most of the attached files to mails. I get an error  "error downloading attached file nameoffile  ".
    As i said, some files do download while others do not.
    Please, i need a hand as attached files are very important for my job.
    Thanks in advance.

    Hi you need to add the settings manually - no matter what you specify whilst you use the email set up wizard it will not download attachments unless you are within your home wlan
    and each time you try to re run the wizard it will always use the same settings
    I found the only way was to back up the phone using ovi suite
    then *#7370#
    onc eht ephone has reset you have to re enter the email info - when it asks you to accept the terms and conditions - say no
    you will now get the option to enter the settings manaully
    there are quite a few sub menus to navigate through but i f you are patient you will find them all
    if you find the one about down loading 50 mails limit - you can back space out the 50 and enter 999
    another menu alllows you to download attachments-- default is none lol
    another menu allows you to check for mails fromevery  2 minutes to 5 days
    once i had set up one account doing the others was easy and i get all my mail with attachements very nicely now
    regards
    Steve
    Steve 

  • With the new actualization of my ipod, app store wont let me download apps like kik, tumblr and more, i really need kik cause theres were i text my friends, what is happening?

    With the new actualization of my ipod, app store wont let me download apps like kik, tumblr and more, i really need kik cause theres were i text my friends, what is happening?

    What does "new actualization" mean?
    Do you have Restrictions set that world prevent installing those apps? Settings>General>Restrictions

  • How can I save a page and all its component parts in a single file, like IE does as an MHT - it's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)

    how can I save a page and all its component parts in a single file, like IE does as an MHT?
    It's much easier for mailing to people where page address not available?? (as in output from an airline booking site, for example)
    It is simply too painful to have to zip everything up into a single file to send. MHT format has been available for years now from IE, and with every new FF release it's the first thing I look for. I have been using FF for years, and hate having to come out of it, over into IE |(which I even took out of startup) and key everything in again, in order to send somebody something in a convenient format that they can open with a single click.
    I can't believe this hasn't been asked before, so have you looked at it and rejected it? Have MS kept the file format secret?
    Thanks
    MG

    This is not really an answer just my comments on your question.
    I am sure I recollect efforts being made to get mhtml to work with FF.
    Probably the important thing to remember about .mhtml is that if other browsers do support it they may need addons, and may not necessarily render the content correctly/consistently.
    There are FF addons designed for archiving webpages, you could try them, but that then assumes the recipient has the same software.
    You could simply save the page from FF to your XP pc; then offline open it with and save it using IE, before then emailing using FF, and attaching the .mht or mhtml file that you have now created on your PC.
    As an alternative method, in some cases it could be worth considering taking a screen grab of the required page, then sending that to the recipient as a single email attatchment using either a bitmap or jpeg file format for instance.
    Something such as an airline booking may be designed with a print option, possibly it could be worthwile looking at sending the print file itself as an email attachment.

  • Download attachment in Mail application is super slow

    Whenever I download attachment from an email in Mail application, it super slow. It's 10 times slower than when I download the same attachment from Safari. So it means not because of the internet speed.
    I don't know you guys have the same problem like me.
    And another quesion, can we configure Mail app to automatically download attachment. Now everytime I receive an email, I have to open email and click on attachment to download it. It waste time to sit there and wait.

    I have the exact same problem.  10 times slower download of attachements than if I simply login to webmail and download that way.
    Anyone know a solution?

  • When I download an app I had to put in payment settings cause it was expiring,after that it was downloading but then said 'cannot download because your ipad does not enough space' but I actually have 3.3 gb while the game is 1.4 .pls tell what to do

    When I download an app I had to put in payment settings cause it was expiring,after that i paid and it was downloading but then said 'cannot download because your ipad does not enough space' but I actually have 3.3 gb while the game is 1.4 . I tried rebooting and powering off but still it didnt work even when I clicked the app( which still hasn't downloaded yet). What do I do now?

    The GB size of the download file is the compressed size (like .zip or .dmg). When the file is installed/uncompressed it can be 2-3 times larger.
    How much space is used by your Other? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
     Cheers, Tom

  • IPhone and Hotmail - does it work well?

    Im trying to talk my father into getting an iPhone, he travels a lot, runs an ebay store, and would be a prime candidate for the iPhones functionality. The only thing is he uses hotmail as his main email. I dont have a hotmail account, and dont want one, so I cant test it. Ive heard that hotmail doesnt play nice with the iPhone, and that you have to get to your hotmail account by browsing it in Safari on the iPhone. Is this true? Or does hotmail work well just like my gmail and Yahoo account do on my iPhone?
    Thanks!

    Hotmail can be accessed via Safari, but it's not ideal. Hotmail does not work with the iPhone Mail app unless you're subscribed to the paid Hotmail Plus (which allows POP access) - that's true in the US at least, although in the UK POP access to Hotmail is free.
    However, there's a $10 3rd party app for Hotmail access that works quite well - mBox Mail.
    http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=292591480&mt=8

  • Opening a downloaded attachment

    suddenly I am unable to open a downloaded attachment: must have done something to cause it, maybe changed the way they are opened? I did 'command + i', selected 'preview', and it still doesn't open. What did I do wrong, and can u suggest how to fix this?

    Are we talking about a mail attachment? Something in a browser window? If so, which browser? Something through Apple Mail? What does the file say at the end (kind of file)?

  • Lion Mail Downloadable Attachment

    Hello,
    My son set up my e-mail through Apple Mail on Lion.
    I am attempting to send an image as a Downloadable Attachment. 
    I have it set to "windows friendly mode".
    I changed my preferences from rich text to plain text.
    I have right clicked the image and hit "view as icon".
    It is still not a downloadable attachment.
    Any ideas???

    They are being sent to the All Mail folder.  The inbox is pretty much unaffected.
    I don't want to hide the All Mail folder and forget about it.  I am after the messages gone forever.  Especially from the All Mail folder.
    I'm the kind of person who uses email like sms.  I use it to contact people annd delete 95% of the messages after reading.  I don't want them archived.  I don't want them stored in the All Mail folder.  I want them totally gone.
    And yes it seems Mail is downloading all my messages over and over.  So my question is how to stop the messages being stored/archived and to instead be totally deleted.
    In the gmail settings I found:
    Auto-Expunge off - Wait for the client to update the server.
    When a message is marked as deleted and expunged from the last visible IMAP folder:  Immediately delete the message forever.  Instead of archiving it like I had set before.  I'm not 100% sure if that'll fix the issue I am having.  I'm sure you'll be able to tell me if I am on the right track.
    And thanks for the quick reply.

  • Adobe photoshop cs2 download on adobe website does not work-  the serial number does not work?

    photoshop cs2 download on adobe website does not work - the serial number given isn't recognised when you enter it when trying to install. the live chat at adobe cannot help and suggested that I may find the answer here. Can anyone help with this?

    Adobe has decommissioned the CS2 activation servers, so your old serial number is no longer usable.
    If you download the special non-activating version of CS2 that Adobe has made available to licensed CS2 users, you MUST also use the new serial number provided by Adobe on that download page:
    https://www.adobe.com/cfusion/entitlement/index.cfm?e=cs2_downloads
    That S/N does work.  I double checked.

Maybe you are looking for

  • How does one change a "rollover" value in a text field of a fillable PDF?

    I have a fillable PDF, and the values displayed when rolling the pointer over a fillable text field are showing some strange values.  I inherited this form from someone who is no longer with the company.  I need to be able to change the values but ca

  • Display key and text in dropdown box & suppress leading zeros in material #

    Hi Everyone, I have some questions on how to ....  Can anyone help me?  Here they are: How to show material # and description (key and text) both in dropdown box list?  How to suppress leading zeros in material #, i.e. 0000000012345678 only show 1234

  • DBMS_LOB Question

    I have a problem I hope someone can help with. I am reading CSV files and storing as a BLOB. Later I want to interpret the contents of the BLOB so I am using the DBMS_LOB.convertToCLOB procedure. How should I use the blob_csid and lang_context parame

  • Running interactive command with Runtime.exec

    I'm trying to run a command via the Runtime.exec interface. Occasionally, the command needs to prompt for additional information. The response depends on the specific configuration, however, the command returns a list of options and then waits for a

  • Iweb problems and idisk problems are they related?

    I have not been able to publish siince upgrading to iweb1.1 two days ago I get the same message everytime "Publish failed due to a network error. Check your Internet connection and try again." Also I can't get into "idisk" on the web or the finder ba