Insert the attachment with possibility to display

Hello

I am inserting an attachment in new message using this

Several multipart part = new Multipart();

SupportedAttachmentPart attach = new SupportedAttachmentPart (multipart, ' application/octet-stream', 'name.doc"AttachmentData);

multipart.addBodyPart (attach);

msg.setContent (multipart);

But I can't open it using DocumentsToGo. He tells me: "this type of attachment cannot be seen on the device.

When I do it manually, IE. create new mail and multimedia card insert accessory, it works very well, the attachment icon is also different.

Where is the problem? The application/octet-stream must be something else? The name of the attachment?

I use BB 8300, OS 4.5.052, build 75.

Thanks for the tips

The MIME of a Microsoft Office Word (doc) file type is "application/msword".  Try to use when creating the attachment instead of application/octet-stream.

Tags: BlackBerry Developers

Similar Questions

  • SQL statement error INSERT The conflicted with the FOREIGN KEY constraint

    I recently installed a reporting for vmware vsphere software, but I get a SQL error. I opened a request for assistance with vmware, but so far they have not come up with a solution. The error is caused by: com.microsoft.sqlserver.jdbc.SQLServerException: instruction INSERT The conflicted with the FOREIGN KEY constraint 'FK_CB_VSM_NETWORK_VC_ID '. The conflict occurred in database 'VCChargebackVCC02', table "dbo." " CB_VSM_SERVER', column 'VC_ID '. I don't know a lot about SQL, so I'm lost in the extent of troubleshooting is concerned. If anyone has any ideas I'd love to hear them.

    SQL questions are better posed on Technet.  They are better equipped to manage the

    http://social.technet.Microsoft.com/forums/en-us/categories/

  • can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    can anyone provide a link to insert the image with the text on the button in the apex 4.2.6

    ReemaPuri wrote:

    in the workspace image:-resign.jpeg

    As a button? Seriously?

    Ok. First of all, because the image already contains text, there no point in including the same wording in the form of text on the button. Accessibility requirements can be met using re-sign as alternative text. 4.2, create an image button:

    Tag/Alt text: Re-sign

    Static ID: re - sign

    Style button: Image

    Button Image: & WORKSPACE_IMAGES.resign.jpeg

    To make the image looks more like a button, add the following CSS to Inline CSS property page:

    #re-sign img {
      margin: 0 2px 2px 0;
      border: 2px outset;
      border-radius: 4px;
    }
    #re-sign img:active {
      margin: 2px 0 0 2px;
      border: 2px inset;
      border-radius: 4px;
    }
    

    Finally, there is a bug in 4.2 that generates the incorrect URL for the button images, which requires dynamic action of Page Load to fix.

    Event: Loading the page

    Action: Run the JavaScript Code

    Code

    var resignImg = $("#re-sign img");
    resignImg.attr("src", resignImg.attr("src").replace("/i/", ""));
    
  • -Pop-up message: insert the CDROM with the virtual truck program

    When I start my computer, a message is displayed as below;
    Please insert the CD-ROM with the virtual truck program. Looking for file: D:\installs\PaceEth\VTruck.exe
    Can someone please guide me to get rid of him.

    This application did not work for me but I google and found out that the virtual truck Installer is a program that enhances the Internet connection on a point to point protocol over Ethernet (PPPoE) line.
    This problem may occur if the virtual truck program that is installed on your computer is damaged or missing files.

    To resolve this problem, use the following methods: http://support.microsoft.com/default.aspx?scid=kb; EN-US; 829714

    I hope this helps.

  • Insert the hyperlink with &

    Hi I have query that inserts not sure it gives following error...
    Enter the docid value:
    Enter the value of nsf:
    Enter display value:
    Enter the value of ESG:


    This is the query
    INSERT INTO homepage_productlist (product_id, product_desc, product_link, is_enabled, created_by, creation_date, last_updated_by, last_update_date)
    VALUES (2, 'Manager', 'https://www-abc.com/esm_65/license_types.jsp?Open & docid = 200 & nsf = custserv - ent.nsf & view = docid & seg = ent', 'Y','s / n, sysdate,'s / n, sysdate);


    This gives the following error...

    Enter the docid value:
    Enter the value of nsf:
    Enter display value:
    Enter the value of ESG:
    Please let me know what is the cause, and sometimes it works without error mesaage some sysstem it works sometimes it fails with the above error...


    I appreciate your response.

    TOGETHER SET OFF THE COAST.

  • The attachment popup is not displayed for webmail like Yahoo or Google after Firefox updated to version 30

    I use Firefox on Windows XP. After Firefox has been updated to version 30.0, the attachments in Gmail and Yahoo mail popup are not displayed to the top. By clicking on the attach icon shows no response. Its working perfectly fine in Chrome. I removed the extensions and tried again, but the problem persists.

    It works fine now. Add-ons are enabled, but the hardware acceleration is disabled. That seems to have done the trick. Thanks for your help.

  • Insert the disk with games error

    Im having a problem with call of duty 4 and call of duty: modern warfare, they worked fine on windows xp but im runnig vista pro now and when I try to play solo it always says to insert the right disk and try again. There is only 1 disc for these games please help. I called activision and they said to update my firmware I belive it is up-to-date. If not I don't not how update * address email is removed from the privacy *.

    docdrabs,
    If this PC has been updated from XP to Vista, check if that you update all your hardware and software drivers.  The firmware of your CD player will be available by the manufacturer of the computer or the manufacturer of the real CD player.  I'd start by checking with the manufacturer of PC for updates for most of the material.  You can get your videocard directly updated from the chipset manufacturer (nVidia, ATI, Intel, etc...) Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Insert the problem with the statement

    case 1:

    declare
    Start
    Insert into t4 values (1);
    commit;
    Insert into t4 values ('test');
    commit;
    end;

    invalid value 1 of 1 line inserted with no identifier;

    case 2:

    declare
    Start
    Insert into t4 values (1);
    commit;
    Insert into t4 valuess ('test');
    commit;
    end;

    any line not inserted value 1 with invalid identifier;

    question is why difference between over case

    Hello

    Jhon says:

    Thnaks for the previous comment.

    Update Q4 set c1 = c1 * 2;   Why this statement fail while we and rename c32 column c1-exceute immediate statement

    If, at the time of compilation, the single column of the table is c3, the UPDATE statement will not compile.  So really, you must change the name of column in PL/SQL, then use EXECUTE IMMEDIATE to do the UPDATE.

    This is an example of why create or modify tables in PL/SQL is a bad idea.

  • Cannot insert the value with: in BLOB field

    I use Oracle 10 g Express Edition.
    Attempt to run this page of SQL commands insert:

    INSERT INTO table1 (col1, col2)
    VALUES ('one', '\"2.001:2372.002:002.005:Y2.018:G')


    News of table1:
    col1 = VARCHAR2 (25)
    col2 = BLOB

    When I click on run a tab enter the Variables is displayed?

    Why can't I insert the value directly in col2 without bind variable?

    Ah, just read your message.

    I'm guessing that because your on 10g Express Edition, you must be using the Application Express?

    Edit: Here's the forum to request:

    Oracle Application Express (APEX)

    Published by: BluShadow on September 3, 2009 14:05

  • Insert the record with the decimal string?

    I want to insert a record with commas, as the below:
    INSERT INTO TABLEA(CITY) VALUES('ALBANY,NEWYORK,TROY')
    Is there a way we can insert commas in the table?

    This statement has been inserted

    What is your question.

    SQL> INSERT INTO TABLEA(CITY) VALUES('ALBANY,NEWYORK,TROY') ;
    
    1 row created.
    
  • How to label the tabs with number of displayed REB?

    Hello
    I have 4 legs which are filled when you click on the links in my "home" tab How is - a to fill the number of records displayed in the tab next to the tab name?
    Is this possible?
    Thank you.

    Go into the Application Builder, select your application, and then click shared components. First on the left is Application parts. Create your Application (global) object here. Once you have these defined, you can select the counties of table in them and use them in your tabs.

    As I said earlier, my application has a single page, all users have to see after that what they select a record to edit (the main table), so on this page, I have a process before header that crosses all tables and assigns the number of records to the appropriate Application element. Then, I refer to the Application element in the tab name, such as "Names - (& F_NAMES_COUNT)", where F_NAMES_COUNT represents the number of all the records in my table of NAMES with an entry for the primary key. On each of my monitors data, whenever the user changes (update, insert, or delete) data, at the end of the treatment, I also tell only table and store the new value in the Application element, so it remains to day.

    Bill Ferguson

  • How to insert the date with timestamp in the table values

    Jin
    I have a table

    create the table abc1 (dob date);

    insert into abc1 values (to_date (sysdate, "HH24:MI:SS RRRR/MM/DD))

    but when I see in the database, it shows that the normal date without time stamp.

    Is it possible to insert in the back-end with time stamp.

    Thank you...

    Firstly, SYSDATE is a DATE already, no need to convert a DATE using the TO_DATE() function.

    The date ALWAYS was a component "hour", if it is displayed until your NLS settings. for example:

    SQL> CREATE TABLE ABC1(DOB DATE);
    
    Table created.
    
    SQL> ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY';
    
    Session altered.
    
    SQL> INSERT INTO ABC1 VALUES(SYSDATE);
    
    1 row created.
    
    SQL> SELECT * FROM ABC1;
    
    DOB
    ----------
    02/04/2010
    
    SQL> ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY HH24:MI:SS';
    
    Session altered.
    
    SQL> SELECT * FROM ABC1;
    
    DOB
    -------------------
    02/04/2010 12:54:57
    
    SQL> DROP TABLE ABC1;
    
    Table dropped.
    
  • Reading the PDF with Adobe Reader: display size

    Hello

    I have a PDFque documentation I read with Adobe Reader. It appears by default at 58% with the left column of the bookmarks that size it is good for. I wish that the body of the text (right-hand side) appears at 100% or full size. I display the speaker on en the page zoom 100%. If I sweep sequentially pages with the arrows I remains at 100%. However if I aux.1 another page I go to 58%. I would like to display constantly at 100% and if possible open it directly by default 100%

    Friendly.

    Mr. Jean-Pierre.

    No free software from Adobe.

  • During the insert, the program monitor does not display the adjacent images

    On page 207 of the manual, it says:

    The program monitor can help you determine where to place a clip you add to a sequence. During a change of crush it, it displays the images

    in the adjacent sequence for the new clip head and tail. During a montage of the insert, it displays the adjacent images at the insertion point.

    When I drag a clip in the project Panel in a sequence, everything works as indicated in the manual. And when I drag the same clip with the program monitor, everything works still fine - but I don't see any adjacent items displayed. How to view?

    This works when you drag the movie, not the program monitor.

  • Insert the key with word 2007 problem

    My insert key does not work with Word 2007.  This has been verified at Best Buy with various other keyboards to test the problem.  This can be corrected

    Hi Nitu,.

    There is an option in Word 2007 that controls that:

    Click on the Office button > Word options > Advanced > editing options > use the Insert to overtype mode control key.

    I hope this helps.

    Dave Dave D D
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for