Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8118255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:25:36+00:00 2026-06-06T04:25:36+00:00

I need to integrate mail service in my application. My application should send the

  • 0

I need to integrate mail service in my application. My application should send the email, which has to attach a .pdf file (detailed report). PDF file is now at remote server.

Can anyone help me to understand how to send mail with pdf attachment in blackberry? If, it is feasible to implement then how would i go with this?

Below are the links, I have got from Blackberry knowledge base forum for sending mail in blackberry

How To – Create an attachment

How To – Create and send messages

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:25:38+00:00Added an answer on June 6, 2026 at 4:25 am

    I believe this is the updated version of the first link in your question.

    In your case, you want to send a PDF document, so you would replace the content-type with application/pdf, and the filename could be DetailedReport.pdf, or whatever you like. This filename is not a full path. Just a name that will be seen by the recipient of the email.

    SupportedAttachmentPart attach = new SupportedAttachmentPart(multipart,
        "application/pdf", "DetailedReport.pdf", data);
    

    The byte[] is something you have to read in yourself, opening the local pdf file (wherever you stored it). It’s just the binary data from the file, so I’d use a DataInputStream:

    String fileUrl = "file:///SDCard/BlackBerry/SomePath/DetailedReport.pdf";
    FileConnection fileConn = (FileConnection)Connector.open(fileUrl, Connector.READ);
    int fileSize = fileConn.fileSize();
    byte[] data = new byte[fileSize];
    DataInputStream input = fileConn.openDataInputStream();
    input.read(data);
    

    And of course, I would recommend doing this work on a background thread to avoid freezing your UI.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application which I need to integrate with WinForms. As suggested
I need to integrate some legacy 32-bit code - for which I don't have
In my asp.net application i need to integrate a jquery content slider with next,
I am working on an application where I need to integrate the search engine.
I have recently taken on a project in which I need to integrate with
I have developed a window application in VS2005 using C#. I need to integrate
Need a Math Editor to integrate to my application written on C# to be
What do I need to do to integrate an existing ASP.NET application into SharePoint?
I need to integrate the Web cam to the application. I need to take
I need to integrate an external SOAP Service into my system. I have only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.