How can I set body part with byte[]?

Dear all,
I stored image in database (BLOB TYPE).
And I need to send it via e-mail, Can JavaMail set a body part with byte[] that I get it from my database?
If it can be done, how to do that?

...I just wonder if the other receive your mail, they cannot know what the mail exactly for....
you should-
1. get the BLOB from database
2. change it to a image file
3. add the file as attachment of your mail with valid content type and Content-Transfer-Encoding

Similar Messages

  • How can I set up iCloud with my Apple ID

    i bought an Ipad on an rummage sale.  The iCloud is still registered under the previous owner.  I do not know their password (nor them) and an "find my ipad" is turned on.  How can I set up iCloud with my Apple ID?

    Restore it through iTunes
    Regards,

  • How can i set ring tone with flash light?

    Dear All,
    How can i set old phone ring tone with flash light?
    Thanks & Regards,
    Jafar Sadhik.K

    Hi Friend,
    Go to Settings>>General>>Acessibility>> Flash Light, then turn it on.
    Hope it helps

  • How can I set up itunes with one ipod and two laptops?

    My boyfriend gave me an ipod a few months ago and he let me set up itunes on his laptop so everything is there. now that i have my own laptop i want everything thats on his laptop on mine. The itunes part i mean. but i don't know how can anyone help me?

    Do as this article says:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities
    That will make your iPod the syncing computer.
    You can only have one syncing computer/iTunes library for apps. and photos. You can however, manually sync music and vides from multiple computer/library if you sync manually. See that topic of:
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad

  • How can I set family sharing with my mom living in Europe?

    hi, i just bought new iphone for my mom who is living in Europe and I wanted to set family sharing with her to share pictures but I can't because I live in USA ... is there any way how to set it? Thanx

    Seeing how itunes store is not international, cause every locale has to comply with different set of laws - you probably can't use family sharing feature, but you can use photosharing.
    http://support.apple.com/en-us/HT202786

  • How can i set up emails with header and signature

    HI all
    I have an email account that is work only, all emails sent have a graphic header on the top, and finish with my name and company contact details.
    I would like this done automatically, Currently I drag the header in, which is a pain when I send a lot. I have set up the signature but when I reply to an email, it puts the signature at the bottom of the whole email and not just the reply. Is there a way of making my life easier.
    Russ

    For Apple Mail, you can set this up using what is called "stationery"; it's off to the top right of the message composition window when you're sending a message. Click that, and select the stationery you want to fill in. See the mail documentation and see the "Save As Stationery..." options in the menu.
    Mac OS X Server doesn't AFAIK have a mechanism for automatically inserting this sort of stationery stuff at the mail server; the message contents are largely determined locally at the Apple Mail or other mail client.
    Here's [Apple Mail Stationery Pro Tip|http://www.apple.com/pro/tips/mail_templates.html]. As for selecting this by default, I don't know that that's available without some local customizations. There are ways to cause a particular template to open by adding it into the dock or the Finder sidebar, but I don't know of an integrated way to automatically and always select a default stationery for your messages.
    See if the folks over in the [Apple Mail forums|http://discussions.apple.com/forum.jspa?forumID=1338] might know more about that.
    And here are [more details than you probably want|http://developer.apple.com/Mac/library/documentation/AppleApplications/Con ceptual/MailArticles/Articles/stationery.html] on how this stuff is constructed.

  • How can I set up APN with B2G 2.0 on Geeksphone Revolution with Consumer Cellular (AT&T) in U.S?

    Tried multiple settings and worked with Consumer Cellular staff. (Consumer Cellular is an MVNO using AT&T.) I had this working with ZTE Open C (FFOS 1.3) after some experimentation. (I should have written down all of the settings before switching!)
    Right now I get a voice connection and Wi-Fi, but no data connection. Network shows as AT&T.
    Here are some suggested settings from Consumer Cellular:
    Name: Consumer Cellular
    APN: ccdata
    Proxy: Not Set
    Port: Not Set
    Username: Not Set
    Password: Not Set
    Server (If Available): http://mmsc.mobile.att.net
    MMSC: http://mmsc. mobile.att.net
    MMS Proxy: proxy.mobile.att.net
    MMS Port: 80
    MCC: 310
    MNC: 410
    Authentication Type: PAP
    APN Type: default,mms,supl
    Bearer (If Available): Unspecified
    Another was CC LTE for Identifier
    My wife's Android Samsung Galaxy Nexus only has ccdata for APN and IPv4 set for data and roaming protocols. None of the other stuff.
    Thanks in advance for any help you can give me!

    After loading B2G 1.3 (using adb sideload, lots of fun), then getting an automatic update to B2G 2.0, I went to the Consumer Cellular web page, where I found up-to-date settings that the tech support guy didn't give me the previous night.
    For anyone else who might encounter this, here they are for B2G 2.0:
    '''Data settings'''
    ''(Custom settings)''
    APN - att.mvno
    HTTP proxy host - 66.209.11.32
    HTTP proxy port - 80
    Authentication, Protocol, and Roaming protocol - Not Defined
    all others blank
    '''Message settings'''
    ''(Custom settings)''
    APN - att.mvno
    MMS proxy - 66.209.11.32
    MMS port - 80
    MMSC - http://mmsc.cingular.com
    Authentication, Protocol, and Roaming protocol - Not Defined
    all others blank

  • How can I set up imessage with a different email

    I  needed to change my email and Apple ID. Now my daughter's imessaging won't work b/c it  it was associated with my old account. 

    It sounds like you're trying to set your daughter her own account? Create one at https://appleid.apple.com/ and set it up on her iPad Mini. Now - if you want to transfer over the email address she was using on your account, to her new one, so her friends can still get in touch/don't need to learn a new email...
    Disassociate the email from your old account...
    Log into your old apple id https://appleid.apple.com/
    Then, under alternate email addresses, remove the one she uses.
    Associate with the new account...
    Log in to her account https://appleid.apple.com/
    Press +email address and enter it
    After verifying it, go to the iMessage settings on the iPad (settings > iMessage)
    Then, make sure you tick the new email address to receive messages, and ensure that 'start new conversations from' matches the new address.
    All being well, your daughter shouldn't notice a difference. This also future proofs it, she won't be forever tied to your Apple ID when she leaves home etc...
    However, now she's on a new account - you won't be able to share purchases - I don't know if you want to? If so.... you can setup Family Sharing! It's super easy and means you can access each others content. Enjoy!
    Family Sharing - Apple Support

  • How can I set service preferences with Safari 5.0.5 and os 10.6.8?  Was working fine until combined update install.

    My service preferences won't set after installing combined update earlier this week and the security 2012-4 update that caused so much problem with mail. Is there a list of changes that was  made in safari with this latest update, because the bookmarking isn't working the same and the readling list page is  gone?

    because the bookmarking isn't working and the same and the reading list page is gone?
    Your profile indicates you have v10.7.2 installed yet your topic refers to v10.6.8 (Snow Leopard).
    Try this...
    Open System Preferences > iCloud
    Deselect the box next to Safari then reselect it.
    Give iCloud a few minutes to re sync your bookmarks and reading list.
    Safari 5.0.5 is an outdated version. You need to update Safari.
    Click your Apple menu icon top left in your screen. From the drop down menu click Software Update...
    Restart your Mac after the updates are installed.

  • How can I set 50 variables with the values that are inside an array?

    Hello,
    I have and array of numbers and an array of strings ( the name of the variables) These values are acquired every time from hardware.
    Now I created a graphical interface with 53 of these variables, and I need to create a link to update them with the correct value.
    Thanks
    Dario
    Attachments:
    Example_insert_53_values_in_53_varialbes.vi ‏23 KB

    Dario,
    you have posted your question to the Profibus forum. As your question is not directly related to Profibus, but to LabVIEW programming, your better should post it to the LabVIEW forum.
    Thanks
    Jochen

  • How can I set Firefox up with previously saved profiles? I had to erase my hard drive but saved my Firefox profiles to another drive first and copied them back but I don't know how to set up the browser to reload/recognize them.

    Mac OS X 10.5.8 G5 PPC 2.5GHz Dual Processor -
    Firefox 3.6.24

    Never mind, I got it. I found the page on "Manage Profiles" that explained everything. Thank you for your time if you were considering responding.

  • How can i set  "Createdby" attribute  When using Custom JheadStart Security

    Hello
    We do not use JASS for Authentication , please help us how can i set createtby attributes with jhs.username in application for any entity object?
    thanks

    See a similar question at History Attributes when using Custom Authentication Type

  • How can I make a part of the body of my content full width of the screen with a fluid grid layout in CSS? (In dreamweaver program)

    How can I make a part of the body of my content full width of the screen with a fluid grid layout in CSS? (In dreamweaver program)
    and I know it is being over-ridden by
    .gridContainer {
      width: 88.5%;
      max-width: 1232px;
      padding-left: 0.75%;
      padding-right: 0.75%;
      margin: auto;
      clear: none;
      float: none;

    Abdelqader Alnobani wrote:
    How can I make a part of the body of my content full width of the screen with a fluid grid layout in CSS? (In dreamweaver program)
    and I know it is being over-ridden by
    .gridContainer {
      width: 88.5%;
      max-width: 1232px;
      padding-left: 0.75%;
      padding-right: 0.75%;
      margin: auto;
      clear: none;
      float: none;
    Logically a structure something like below should work BUT whether or not it will upset the FG I don't know as I wouldn't ever use it.
    <div class="gridContainer">
    Top Code Section Goes Here
    </div>
    <!-- close gridContainer -->
    <div id="fullWidth">
    Full width section goes here
    </div>
    <!-- close fullWidth -->
    <div class="gridContainer">
    Bottom Code Section Goes Here
    </div>
    <!-- close gridContainer -->

  • HT201060 How can I set up a new iPad with my 5 year old daughters iCloud address when it won't let me because I've allowed her to be part of my family on my iPad.?

    How can I set up a new iPad with my 5 year old daughters icloud address when the new iPad won't let me cause I've made her part of my family group?

    If you want to migrate your phone to a new iCloud account, start by saving any photo stream photos you wish to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tap the photos, tap the share icon (box with upward pointing arrow), then tap Save to Camera Roll.  If you are syncing notes with iCloud that you want to keep, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Delete Account, choose Keep on My iPhone and provide the password to turn off Find My iPhone.  Then sign back in with a different Apple ID to create your new account and choose Merge to upload your data.

  • I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?

    I think I have it working on my iPhone 5. But, I do not see how I can control the exit point that I would like for the VPN. Are all the exit points shown in the VPN setting now going to work with Open VPN, or do they remain PPTP? If I am reading correctly, they look like they remain PPTP. If I cannot control the exit point for open VPN, which exit point is the default in the profile you provided me?I note that Open VPN Connect does not work with any of the new 64 bit devices like the iPhone 5S, the iPad Air, and the new iPad MIni. Is there any chance that you guys will come up with an update for your app so that open VPN can be made to work on all iOS devices? That would be nice, particularly if the Open VPN Connect app does not give me a choice of exit points.Thanks,
    I do not see where to enter IP addresses in the Open VPN setup. Also, how can I set it up so that I can choose different servers in the same way as I can currently choose them with my VPN app but for PPTP?
    Just a quick note to tell you that Open VPN has updated their app so that it is compatible with 64 bit ARM devices like the iPhone 5S, the iPad Air, and the iPad Mini Retina.That does not resolve the problem of how to easily choose among the various possibilities for the exit server. We need to find an easy way to choose.

    Thank you for trying the new Firefox. I'm sorry that you’re unhappy with the new design.
    I understand your frustration and surprise at the removal of these features but I can't undo these changes. I'm just a support volunteer and I do not work for Mozilla. But you can send any feedback about these changes to http://input.mozilla.org/feedback. Firefox developers collect data submitted through there then present it at the weekly Firefox meeting
    I recommend you try to adjust to 29 and see if you can't make it work for you before you downgrade to a less secure and soon outdated version of Firefox.
    Here are a few suggestions for restoring the old design. I hope you’ll find one that works for you:
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/classicthemerestorer/ Classic Theme Restorer] to bring back the old design. Learn more here: [[How to make the new Firefox look like the old Firefox]]
    *Use the [https://addons.mozilla.org/en-US/firefox/addon/the-addon-bar/ Add-on Bar Restored] to bring back the add-on bar. Learn more here: [[What happened to the Add-on Bar?]]

Maybe you are looking for

  • Windows 7 DVD Drive Issues

    Hello, I have installed windows 7 64bit (the full release) onto my macbook pro. Im new to mac and love it, but as to what model it is I think its an early 2009. The model is A1286. I had it running 32bit xp fine and Windows 7 64 bit runs fine and it

  • Multi channel record in STP v3

    has any done any multi channel recording in STP3. what were your results.

  • DB Adapter is not polling

    Hi All, I implemented DB Adapter polling in one of my services. It was working fine for last 3 months. Today I tested service, it is not polling to DB table, so it is not picking any data from table. Can Any one tell me, what could be possible reason

  • How do I remove or change my billing information

    If I want to remove my billing information, what should I do?

  • Does anyone here use Asian (Chinese/Korean) inputs & outputs with sharing?

    Hello. Does anyone in here read, write/type, and print Chinese and Korean documents, e-mails, and Web pages and use software that use asian characters in datas)? In Windows, one can use MS IME -- http://www.microsoft.com/windows/ie/downloads/recommen