How to send photos by mms from the server?

Hello

I am currently working on mms app.what I do is first download the image of the server and then send.

but there is a string currentLocation (location of the file we want to fix) parameter to MessagePart.

so I use it directly from server how can I achieve that.

pls help...

thankx.

Hello

My problem was solved by using

Bitmap image=imageObj.originalImage[0];
            PNGEncodedImage encodedImage=PNGEncodedImage.encode(image);
            byte[] contents=encodedImage.getData();

Tags: BlackBerry Developers

Similar Questions

  • How do send you multiple attachments from the mobile application?

    How do send you multiple attachments with the mobile app? I guess you don't have, yet?

    Hi Mike,.

    Thank you for your response. The steps I provided in my previous post are for Android not iOS. This functionality is not there for iOS.

    Thank you

    Abhishek

  • How to remove attachments to email from the server

    Hello
    I created a CF model for sending electronic mail that includes attachments. It has been tested on my dev machine and works fine as long as the download of attachments to a directory on the server. I wish that the spare part to be served once as the e-mail message has been sent to the recipient.

    Macromedia ColdFuision 7MX web application construction book page 913 "interacting with Email" we a CFC that will remove the file when the user ends their session.

    I don't know how to write it to adapt the code that I use.

    Here's the e-mail form

    <! - Mail_Form.cfm - >
    < html >
    < head >
    < title > please enter your message < /title >
    < / head >

    < body >
    < do action = "Send_Email.cfm" method = "post" enctype = "multipart/form-data" > "
    < table width = '500' border = "0" align = "center" >
    < b >
    < td width = "500" colspan = "2" > please enter your e-mail address: < table >
    < /tr >
    < b >
    < td width = "250" > to: < table >
    < td width = "250" > < input type = "text" name = "to_addr" value = "" > < table >
    < /tr >
    < b >
    < td > subject: < table >
    < td > < input type = "text" name = "subject" value = "" > < table >
    < /tr >
    < b >
    < Td > message: < table >
    < td > < input name = "message" rows text box = "5" cols = "35" > < / textarea > < table >
    < /tr >
    < b >
    < td width = "250" > annex #1: < table >
    < td width = "250" > < input type = "file" name = "attachment_1" value = "" > < table >
    < /tr >
    < b >
    < td width = "250" > #2 Attachment: < table >
    < td width = "250" > < input type = "file" name = "attachment_2" value = "" > < table >
    < /tr >
    < b >
    < td width = "250" > #3 Attachment: < table >
    < td width = "250" > < input type = "file" name = "attachment_3" value = "" > < table >
    < /tr >
    < b >
    < td width = "250" > < table >
    < td width = "250" > < input type = "submit" name = 'Send_Email' value = "SendEmail" > < table >
    < /tr >
    < /table >
    < / make >

    Here is the form to send the attachment.

    <! - Send_Email.cfm - >
    <!-first of all, make sure that the attachments downloaded the user->
    < cfif FORM.attachment_1 NEQ "" > "".
    <!-firstly actually-> download file
    < cffile action = "upload".
    destination = "D:\uploadsTEST\".
    FileField = "attachment_1."
    nameconflict = "makeunique" >
    <! - now create a temporary support for the attachment then - >
    < cfset attachment_local_file_1 = "d:\uploadsTEST\#file.serverfile#" >
    < / cfif >

    <!-now repeat the process for the setting of the second and third: - >

    < cfif FORM.attachment_2 NEQ "" > "".
    <!-firstly actually-> download file
    < cffile action = "upload".
    destination = "D:\uploadsTEST\".
    FileField = "attachment_2."
    nameconflict = "makeunique" >
    <! - now create a temporary support for the attachment then - >
    < cfset attachment_local_file_2 = "d\uploadsTEST\#file.serverfile#" >
    < / cfif >

    < cfif FORM.attachment_3 NEQ "" > "".
    <!--forst actually download the file - >
    < cffile action = "upload".
    destination = "D:\uploadsTEST\".
    FileField = "attachment_3."
    nameconflict = "makeunique" >
    <!-now to create a temporary support for late fixing on->
    < cfset attachment_local_file_3 = "d:\uploadsTEST\#file.serverfile#" >
    < / cfif >

    <!-OK, now you have downloaded the file from the server, now we will send
    email with attachments: - >

    "< intrusion via cfmail to =" #form.to_addr # "[email protected]" = "subject =" #subject #
    Server = "an001so - dby1c.pbi.global.pvt" port = "25" >
    #message #.

    < cfsilent >
    <!-< cfsilent > tag used to kill the white space in this area
    If your email is not cluttered with white spaces-->

    < cfif FORM.attachment_1 NEQ "" > "".
    < cfmailparam file = "#attachment_local_file_1 #" >
    < / cfif >
    < cfif FORM.attachment_2 NEQ "" > "".
    < cfmailparam file = "#attachment_local_file_2 #" >
    < / cfif >
    < cfif FORM.attachment_3 NEQ "" > "".
    < cfmailparam file = "#attachment_local_file_3 #" >
    < / cfif >

    < / cfsilent >
    < / intrusion via cfmail >

    Here's the session request to delete the file to download

    <!--
    File name: Application.cfc
    Runs for each page request
    ->

    < cfproperty output = "false" >

    <!-name of the application. ->
    < cfset this.name = "attachmentPurge" >
    <!-enable session management. ->
    < cfset this.sessionManagement = true >
    < cfset this.clientMangment = true >

    < name cffunction output = 'onSessionEnd' = "false" returnType = "Cancel" >
    <!--> look for attachments to remove

    < cfset var attachDir = expandPath ("Attach") >
    < cfset = var getFiles "" > "".
    < cfset var thisFile = "" > "".

    <! - get a list of all files in the directory - >
    < cfdirectory directory = "" #attachDir # "name ="getFiles">"

    <! - for each file in the directory - >
    < cfloop query = "getFiles" >
    <!-if it's a file (rather than a directory)-->
    < cfif getFiles.type NEQ "Dir" >
    <! - get the full name of this file - >
    < cfset thisFile = expandPath("Attach\#getFiles.Name#") >
    < / cfif >
    < / cfloop >

    < / cffunction >

    < / cfproperty >

    The tutorial doesn't explain how to delete the attachment when the recipient audits post
    in the pop server.

    Assuming that the sender is in a session would be writing code to remove the attachment from the directory on
    the server, a message is sent.

    Can someone explain how to remove attachments from a designated directory or provide me the code that would deal with that once an email is sent with an attachment automatically.



    Thank you

    Tony

    That's how I do it.



    ThisDir = "d:\dw\dwweb\work";
    ThisDate = DateAdd ("d",-90, now());




    Select the name of AllFiles
    where datelastmodified<>






  • Cannot send an email "response from the server: Message contains spam...»

    One of my email accounts cannot send an email... And the message came

    "Response from the server: Message contains spam or virus or the sender is blocked: field32_1e2afb1a2cd02.

    It is said to select another off from server...

    I did something wrong, or is there a setting I need to change?

    Thank you

    Yes it has been fixed, thanks

  • How to send other linguistic data to the server using Http

    Hello

    How can I send data to the server except English other languages how to send to the server. Please someone help me it's urgent.

    Thank you

    Kind regards

    Bharath kumar

    Peter cool.

    problem fixed

    I use postdata String = new String (textField.getText (.getBytes("UTF-8")));

    Thank you

  • How to upload photos on Facebook from the Surface RT?

    When I try to create a new album on my FB page and download pictures from my library on my Surface, nothing happens. Once simple on my laptop.

    Hello

    Windows RT/8 has a people Hub that integrates contacts and accounts. Go in the Hub and add your Facebook, LinkedIn, Twitter, Google, Outlook, accounts etc.

    Now, when you go to the Photos and type part in charms, you will share it in the people app. You will see a dropdown menu with your social accounts that you have connected. You choose who you want to share and send.

    Please report if you are still having the problem. I will be happy to provide you with the additional options that you can use to get the problem resolved.

  • How to send photos for printing outside the 12 elements.

    He is said to use file > order, but there is no tab order to select.   I've updated the preferences > Partner Services, but the order is not an option that I can find anywhere.

    herplaw wrote:

    He is said to use the file > shut down, but there is no tab order to select.   I've updated the preferences > Partner Services, but the order is not an option that I can find anywhere.

    All external print services must have a service to transfer your files to selected image from your computer, without needing to use another software.

    You just create a temporary folder on the desktop where you store the batch of files to download.

    To prepare for this lot, the smart way is to use the Organizer.

    You select your files (perhaps in an album)

    You "export" your files in the folder in the temporary office, after selecting the right size, compression, image format. Your change of name if you wish. This way, you have the right size for optimal quality and without excess weight for the upload.

    Your service outside, you download the content of your temporary desktop folder.

  • How to remove a web page from the server web host via dreamweaver


    We have made significant changes to our Web site and need to delete a number of web pages that have been published on our web server.  While these retired web pages cannot be publicly accessed via links in the Web site, that have been deleted, web pages remain on the site and can be accessed if their specific URL is directly indexed.

    1. In the files Panel, select the remote server in the drop-down next to the site name and click the icon to connect to the remote server.
    2. Browse for the files you want to delete and press delete.
    3. Confirm that you want to delete the selected files.
  • How to migrate a virtual machine from the server with DAS to another server

    Hi guys,.

    questions. 'More' essential Kit. VMotion is available

    I have 2 physical servers, two of them have DAS (not SAN Central). SO I want to migrate a virtual machine on server A to server B. is it possible in this situation?

    Or should I have versions of more expensive VMWare do?

    Thank you
    Dmitry

    You can use clone. I would close first to the bottom of the virtual machine, but a VM slowed would be very nice clone. You can also use the VMware conveter. VMware converter can make a hot clone, including synchronization of last-minute changes, stop the source machine and put under tension the clone.

  • How to copy and paste text from the page of the book one photo to another.

    Hello, I downloaded this software 2 days ago, and I had so much fun with it. pls I need help on how to copy and paste text from the page of the book one photo to another. Second, how to copy my photo book completed pages project to another laptop computer for printing. Thank you

    Wow! I solved the first problem, I clicked on 'ctrl c' to copy and "ctrl v" to paste. yipppppeee! now am loving this software d most just need help with the second question now

  • How to send photos taken by webcam dell to the email address

    Im having two problems (if you exclude being computer delayed!) I know not how to send photos and videos by email that ive taken via my dell webcam, in addition, after using the webcam, ive fidddled with assistance or something because the screen is now almost completely black when I click on the webcam icon and try the video or taking pictures, pls help

    Hey Martina 1982,
    To attach files to your email, simply click on the play icon attached once you have the message at the top (the icon is generally that of a paper clip).
    This will open a window that allows you to browse (look around) for the file that you want to send.
    Find this location of file on your computer and click it to add it to the window and select OK.
    Depending on the size of the file, it loads a few seconds and then you will see the file attached to your email.
    Finish the email as usual and send.
    Here's a quick link:
    http://www.ehow.com/how_6356960_attach-audio-video-files-email.html

    You can also do a search on 'How to attach files to send' for more information.
    Now regarding the display options or absence of Cam you, I would say communicating with the dell printer.
    It should be on their website troubleshooting steps:
    http://support.Dell.com/support/topics/global.aspx/support/KCS/document?docid=266612

    Eddie B.

  • How to send large video files from my iPad

    How to send large video files from my iPad

    The restriction for large files to mailing in general is defined by your email provider. Most of the suppliers imposed restrictions on the size of attachments. You can contact your e-mail for more information provider, but in general, consider a large video file too large to email.

  • How to upload photos on facebook from my computer?

    How to upload photos on facebook from my computer?  How to install Windows live essentials.  Every time I try it tells me that a different version is installed and cancel.  Do not know how to do this.

    Hello

    1. to know how to post pictures on facebook facebook contact support

    http://www.Facebook.com/help/

    2. for windows live essentils help repost in the forums of live help windows to the link below

    http://windowslivehelp.com/

  • How can I remove an application from the App Store in the section update application?

    How can I remove an application from the App Store in the section update application?

    You can not delete Apps from the update tab. It's just a list

    The list is just for information purposes. Finally, they are deleted from the list on their own.

  • How can I get thunderbird to delete messages from the server

    When Thunderbird gets mail from the server, I want that he deleted from the server. How can I do this?

    The Menu bar, select Settings Server Tools-account settings

    Check the boxes that work for you.

    No menu bar display? Press the ALT key.

Maybe you are looking for