Does anyone know how to write a Bytearray as attachment?

I try to put a file I have on my disk in a MimeMessage as it is. I have somme sp�cial characters inside and when I transform them to char or string to use the setText method, it gives me "3F" code. So I try to use the setContent methode with a byte array, but i can't find what kind of dataHandler I have to use. Someone can help please?

You'll have all the explainations you need (with source code) on this URL:
http://www.jguru.com/faq/view.jsp?EID=498439
It's a response about "how to store a BLOB into a mail message". It shows you how to create a "BufferedDataSource" and attach it to the mail.

Similar Messages

  • Does anyone know how to write on a NTFS drive?

    Re: question???
    How to write to a NTFS drive??
    Maybe native support???

    I got this working just yesterday. Read this link for instructions:
    http://www.offthehill.org/articles/2010/12/31/macfuse-for-64-bit-snow-leopard/
    Install tuxera's MacFUSE binary from here: http://www.tuxera.com/mac/macfuse-core-10.5-2.1.9.dmg
    Once you plug in your USB drive or an NTFS drive, the system will mount it read-only by default. You will need to "umount" it (as root, of course) and re-mount it with read-write permissions and a "noowners" option (I assume you're familiar with Unix commands and their options). I tried this today and it works, I can read/write to the NTFS drive on 64-bit snow leopard.

  • Does anyone know how to write an apple logo or the command symbol with the text tool?

    It is done by alt + shift + K with mail etc. on a mac but not in photoshop.  PS 3  macbook pro
    Thanks Chris

    while it does make an apple logo as the layer name it makes a square on the canvas.
    Then I suspect the problem is with the font.
    Have you tried using another one (preferably one of the default ones)?

  • My iphone dosen't doesn't make key tone sounds anymore when I write a text message or when I want to dial a phone number I don't know how to fix this problem, I don't hear the clicking noise anymore does anyone know how to fix this problem?

    My iphone dosen't doesn't make key tone sounds anymore when I write a text message or when I want to dial a phone number I don't know how to fix this problem, I don't hear the clicking noise anymore does anyone know how to fix this problem?And all the sounds on my phone are on, even the keyboard clicks.

    Try restarting your iPhone by holding down the on/off and the home buttons at the same time until you see the Apple logo, double check the volume button just in case.  If you still can't hear the tones go into your settings>sounds and make sure the options are on. 

  • I have an original iPad and downloaded the new operating system.  Now' I cannot write on my Contacts or Calendar apps, and my Pages app (purchased) has lost the ability to use the bold, underline, and italics functions.  Does anyone know how to fix these

    I have an original iPad and downloaded the new operating system.  Now, I cannot add to my contacts or calendar apps, and Pages ( which I purchased) is not allowing me to use the bold, underline, and italics functions.  Does anyone know how to solve this problem?

    No, it stays with the current OS (iOS5 in this case) - Apple doesn't allow downgrading iOS
    If you are syncing to a desktop, you shoudln't lose anything. If you aren't syncing, then that's the first thing you should do, to protect contacts etc.
    the other thing is, when the iPad is connected to iTunes, right-click its name in the Devices list and choose Back Up.
    That way, when yoiu do the restore, everything should come back as was.

  • Does anyone know how to upgrade from 4.1 to 4.3 ios?

    After being tricked by the fast talking smoothy helper at Apple store in London to buy a micky mouse ipodtouch (fourth generation) two years ago I am stuck at ios 4.1 and find that all the useful applications need 4.3 or more. So I went to the trouble of letting the macbook stay open all night to load yet another micky mouse version of itunes so that I can upload the more recent version of ios and now (since I don't want to continually have a lot of rubbish on the ipod I disabled the automatic sync "feature") I can only go round in circles  whereby the only real possibility left is to turn on the autosync feature. I have had messages like "your ipod will be completely erased if you proceed" and "do you wish to fiddle another few days with this nasty system, then click on continue" and so on.
    Does anyone know how to upgrade from 4.1 to 4.3 ios?
    That would be great (maybe) because otherwise I will toss this children's waste product on the floor and set up my HD camera to show how easy it is to smash the brightly lit screen into pieces and relieve myself of trash which Apple sell to unsuspecting gullible humans who believe that they are not being tricked by such a nice company who produce shiny colourful gadgets which only work for a month or two before becoming 100% obsolete.
    Great to hear from those who have wasted many months of their lives and discovered how to trick the system into doing a simple update operation!
    I am insulted by the tricks that fool many and that apple pretend are "necessary".
    Germany 2014 01 11 16 19 27

    Illaass, your help is amazing - miles better than anyone working in this part of the world who is paid - and you do this for free - because, like me, you LOVE to help people!
    BUT, as I said above -
    1. There is nothing "mobile" under Application Support. For whatever reason.
    2. Devious - that Apple has set up iPod to not show in Finder - a red herring and sign that corruption is visible.
    I will try iFunBox next and it sounds like they provide this for the more serious users but use a trivial name to excuse further strangeness.
    After
    There are purchased items on the iPod that have not been transferred to your iTunes library. You should transfer these items to your iTunes library before updating the iPod. Are you sure you want to continue?
    I get
    Updating to iOS 6.1.5 will backup and restore the apps, media, contacts, notes, and settings on your iPod touch.
    Please do not interrupt the update, which may take an hour or longer to complete.
    Cancel          Update
    And then I wait for hours to arrive at the above mentioned
    Backing up iPod   \\\\\\\\\\\\\\\\\\\\\\\\\ Stop
    and then as above
    An error occurred while backing up this iPod (0xE8000084). Would you like to continue to update this iPod?
    Continuing will result in the loss of all contents on this iPod.
    Cancel                Continue
    and so we are back to where we always land - the user is left in the Apple designed sabotage situation which annoyed me so much initially.
    "Most users will give up at this point, loose all the data or buy yet another disposable from Apple. Less than 3% will work their way to this site and 90% of the 3% will leave the iPod to gather dust in the hope that someone will help later. In all, Apple gains, since people blame themselves for "mistakes" which Apple programmed to throw out users who do not take the 100% Apple path. But Illaass and myself still play the game of "trying to fix" something which Apple don't allow."  was the comment which I was going to write but decided against it, adding no value to the conversation other than explaining one reality which we all hoped could be wrong but which I thought to have a very high chance of being closer to the truth.
    Apologies for my doubts towards the integrity of the creators.
    2014 01 13 12 11 58 17
    Recheck: Under Application Support "mobilesync" folder has appeared (MobileMeSyncClient has also appeared [while again trying to update iPod] with zero size) - Good news, a Backup file is there, but it is only 3GB while my iPod has 32GB and is close to full (800MB free space).
    Latest at
    2014 01 13 12 09 22
    The iPod could not be restored. An unknown error occurred (9).
    More Infomation    OK
    So it looks like I may have lost all the important pictures documenting various items all around Europe for the last two years - luckily I moved a year ago from the iPod toy camera to a Panasonic real camera with SD card which can be read on any computer. Hence important items lost may only be older than one year rather than the most recent items.
    Glad I have changed to Panasonic since they don't try to screw you when you don't use their system.
    I will now check the "more information" rather than just click on "OK" since I am of the 3% who "don't accept cr*p".
    For full information I quote that the iPod now shows a screen with a USB ikon, an upward arrow and an iTunes ikon (all micky mouse language which reduces transparant, clear and technical discussion and thus covers the trail of "where things went wrong").
    The iPod is still attached to the computer but the above MMTALK may mean that the iPod should be attached via USB to the mac. I record much of this activity on Video to be able to later prove EXACTLY what occurred, rather than having to rely on screenshots and opinions. We are after all dealing with important items which may later be required to be shown in court, as evidence against fraudsters.
    The "More Information" link leads to
    Resolve iOS update and restore errors in iTunes
    which I have already seen before.
    I clicked on OK and a help screen (unnamed as ever because no one like myself demanded that the help screens be named for later discussion) arrived:
    You can help Apple improve its products a
    while copying this into this message the computer began to start up Final Cut Pro and this was cancelled, then iTunes came up with a message:
    iTunes has detected an iPod in recovery mode. You must restore this iPod before it can be used with iTunes.
    ok
    And I presume the earlier message about helping Apple is gone because I keep getting interrupted by this message called
    iTunes has detected an iPod in recovery mode. You must restore this iPod before it can be used with iTunes.
    ok
    it has appeared now at least six times interferring with anything else I do. Each time I try to write, this message appears and blocks, but only when I write. I tried to do a carriage return and the message appeared taking the carriage return as acceptance of the OK in the
    iTunes has detected an iPod in recovery mode. You must restore this iPod before it can be used with iTunes.
    ok
    Message. But since I have not removed the USB and keep returning to this message I am able to write for a few seconds (now 30 seconds or more) and the message remains on the screen but not blocking this conversation. It appears to be random but in fact as you can later see from the video, it is not reappearing each periodic number of seconds but as I reach a new comment.
    I will try to close iTunes so that this can be stopped (I clicked on OK and it appeared another few times, each time I clicked on ok and now it has left me in peace to write here although iTunes is still not yet closed).
    Difficult to log down all the strange behaviour but I think you can get the gist of what is going on.
    2014 01 12 12 49 27
    Should I remove the iPod and stop iTunes? I have a nasty feeling turning to indifference since I have video footage which will verify all the above in a court of law if later required. The truth must always win over any devious attempts at forcing people to do things they don't want to ;-)
    2014 01 13 13 03 48

  • I keep getting the error message when trying to update iMovie There was an error in the App Store. Please try again later. (20)" Does anyone know how to fix it?

    I keep getting this error message when updating imovie "There was an error in the App Store. Please try again later. (20).  Does anyone know how to fix?

    If you're having problems with the App Store you might try this:
    1 - enable the Debug menu in App Store:
    open the Terminal application.
    copy the command below and paste into the Terminal window:
    defaults write com.apple.appstore ShowDebugMenu -bool true
    followed by Enter.
    launch App Store, login.
    2 - select the Debug ➙ Reset Application option:
    3 - try again.
    OT

  • Does anyone know how to change where incoming (via mail) calendar requests go on my MacBook? Mine insist on going to Entourage, which I don't use any more. I've tried setting the default calendar in iCal preferences. Doesn't help. Bugs me. Can you help?

    Does anyone know how to change where incoming (via mail) calendar requests go on my MacBook? Mine insist on going to Entourage, which I don't use any more. I've tried setting the default calendar in iCal preferences. Doesn't help. Bugs me. Can you help?

    Jneklason wrote:
    ~snip~
    I know this email is confusing and really hard to understand...perhaps now you will know how i've been feeling--lost and confused with all the mis-information, with a hit and miss phone, and out of time with all the 1 1/2 hr to 2 hrs EACH wasted on this issue.
    On top of all this, I can't even find out how to file a complaint with anyone higher up than Customer Service.
    I hate to tell you this, but you didn't write an email. You wrote a discussion post on the Verizon Wireless Community forum which is a public peer to peer forum. Unfortunately since you didn't mark your post as a question, the VZW reps that roam this community won't ever see your post. Before you re-post it, don't. Duplicate posts get removed from the community.
    I see there were several missteps both by the reps and yourself in your post. First you should have insisted on returning the phone within the 14 day return policy period. Second which Samsung Galaxy mini model did you purchase? The S3 mini or the S4 mini? Did you do any research prior to deciding on this device. The reps at that time deflected the easiest course of action, by trying to get you to replace the phone under insurance instead of returning the phone. The Early Edge payment option requires the current phone on the line using the early Edge must be returned to Verizon Wireless. Did you once considered going to a third party site like Swappa to purchase a gently used device for your daughter?

  • Does anyone know how I install Microsoft office onto an I Mac or if I even need it.

    Does anyone know how I install Microsoft office onto an I Mac or if I even need it.

    If you need to write or modify documents made with Word, Excel, or Powerpoint, then you need Office. Otherwise, you don't. If you already have it then installation just involves double-clicking on the Office Installer's icon.
    You may want to consider as well:
    These two suites are similar to Libre Office but not as current or as well-supported:
    NeoOffice
    Open Office
    And, then there is Apple's iWork suite:
    Pages - word processing and layout
    Keynote - presentation
    Numbers - spreadsheet
    Each can open and save Office compatible files. They may be purchased separately via the Mac App Store for $19.99 each.
    (Access to the Mac App Store requires Snow Leopard 10.6.6 or higher and an Apple ID.)

  • When I try to print a 4X6 photo using Elements 12 it prints out 2X3.  Does anyone know how you can get hold a live person at Adobe?

    When attempting to print a 4X6 photo using Elements 12 it prints out 2X3.  Does anyone know how you can get hold of a live person at Adobe?

    I've never done a forum and am not exactly sure what to do from here.   I
    know how to do a screen shot on my phone, but not on my computer. 
    I'm about ready to throw every adobe product I have out the window!   If
    you purchase a product you should be able to get support from the  company.
    In a message dated 4/6/2015 3:04:02 P.M. US Mountain Standard Time, 
    [email protected] writes:
    When  I try to print a 4X6 photo using Elements 12 it prints out 2X3.  
    Does anyone know how you can get hold a live person at Adobe?
    created by Peru Bob (https://forums.adobe.com/people/Peru+Bob)  in 
    Photoshop Elements - View the full  discussion
    (https://forums.adobe.com/message/7412463#7412463)

  • Does anyone know how iCloud resolves conflicts? (iOS save games)

    Hello all,
    We're having some users report an issue with our App that their save game is being nuked when they close the App, sing in to iCloud and then re-open. We have a number of leads we can follow, but first thing is first; Does anyone know how conflicts are resolved by the iCloud system? What it does internally?
    Scenario:
    Achieve some amount of progress through an App.
    Achieve some other amount of progress through an App from a different device.
    Sign into iCloud on both.
    iCloud obviously decides which data to use, but how? Is it literally just a "last write to file wins" case?
    Another question is, does anybody know if iCloud would act strangely/not at all on a device which was jailbroken? We have a very small number of users reporting this issue so that may be another likely situation.
    Many thanks

    Yes, we are fully supporting iCloud. It's a very rare case that we get this report from users and no solid repro steps have yet been given. Many users have successfully played on multiple devices with iCloud enabled and their save game is perfectly intact. There just seems to be an edge case where it's possible that a call to iClouds synchronize and what it actually does in that function is resolving an older save file. So knowing what the internals of how it resolves conflicts will allow us to add another layer with our own conflict resolution specific to our App.

  • Does anyone know how to edit your profile if you have more than one apple device but only 1 email address?

    Hi I am trying to update my email address since I quit work and left my work email address behind.  I now only have one email address, but an iphone and ipod classic and want both of them to use the same email address - but am having problems using the address for my iphone as it is already attached to the ipod classic.  Does anyone know how I fix this??
    thanks
    Jenny

    My profile: bookmarks - I added one of someone that did manage, it does take planning.
    take a look and good luck, it is not supported or standard but can be done.
    NTFS and HFS drivers to write back and forth may be easier and better though.
    or 2nd hard drive - and use NTFS along with HFS driver as needed.

  • Does anyone know how to fix an error in cc photoshop on Win8 that says puppet warp could not complete request due to program error?

    Does anyone know how to fix an error in cc photoshop on Win8 that says puppet warp could not complete request due to program error?

    Questions on using a specific program should go in that program forum
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • TS3899 I can't SEND email from Telus account in Alberta, Canada? Does anyone know how to set up the Outgoing server? Help! And thanks!

    Can't SEND email from Telus account in Alberta, Canada, unless I go to web mail. Does anyone know how to set up the Outgoing server? Incoming is fine. Outgoing used to work. We changed it when we went to another location, and can't get it back. Telus support can't fix it. Neither smtp.telus.net NOR mail.telus.net works for Outgoing server to send mail. Please help! Thanks.

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    Server does not allow relaying email error, fix
    http://appletoolbox.com/2012/01/server-does-not-allow-relaying-email-error-fix/
    Why Does My iPad Say "Cannot Connect to Server"?
    http://www.ehow.co.uk/info_8693415_ipad-say-cannot-connect-server.html
    iOS: 'Mailbox Locked', account is in use on another device, or prompt to re-enter POP3 password
    http://support.apple.com/kb/ts2621
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Adobe Creative Cloud (Desktop) does not work properly. The application is blocked : it could not be launch neither stopped. I'm on MAC Yosemite OS, does anyone know how to remove it properly or to force its stop. It does not appear in the launched applica

    Adobe Creative Cloud (Desktop) does not work properly. The application is blocked : it could not be launch neither stopped. I'm on MAC Yosemite OS, does anyone know how to remove it properly or to force its stop. It does not appear in the launched applications.

    I received no error message. The application was just trying to find applications unsuccessfully.
    I am using MAC OS 10.10.1
    I tried to uninstall the application  but it seems that a kind of deamon is still installed thus providing me to reinstall properly. Do you know where are the elements to remove in order to get my machine just like before ?
    Otherwise I would have to reinstall everything and this would be a pain.
    Thanks for your help.

Maybe you are looking for

  • Mac Mini to Samsung LE37R87BDX 37" VGA to Pc Input - No Display

    I have a mac mini 1.66 Intel running 10.4.11, into which I've got the VGA adapter plugged, this is cabled with a VGA cable into my nice new Samsung LE37R8 flat panel LCD on the pc port. The image flicks up briefly, but then it goes black and it won't

  • Color Issues with Mini - DVI to DVI connection

    Hello, I just bought Samsung 2232BW. I thought it would be perfect for my both desktop pc and macbook (early 2006 version). In windows i could find the colors ok. But when i connect my mac to monitor with the dvi cable the colors are terrible. The co

  • ODI 11.1.1.5 with the 10.1.3.6.8 odihapp_essbase.jar & odihapp_common.jar

    I've got an installation of ODI 11.1.1.5 on 64 bit Windows 2008 R2 server. Both ODI client and server are on the same box. I have been able to successfully extract ASOSamp's dimensions to a SQL Server 2008 Express table. Wonderful, very nice, etc. Ho

  • Does the priority queue always work?

    Hi  I have a 8Mbp of wan link which sometime gets saturated and I have shaped average this to 8Mbps but i am running vocie on this WAN link and have defined priority for voice with 850kbps under voice class. My question is when the link is not fully

  • Lotus Notes LDAP Queries

    According to the manual, Ironport has a problem resolving some variations of Lotus Notes email addresses. It seems if the email address isn't specifically listed in the Name and Address Book, then the LDAP query will fail. Is there anyway to workarou