Sending image programmatically, fallback using default email client?
Hi!
Using a J2ME midlet I need to capture and image on the N95 and send it programmatically to a location, either post it as data to a server or send it by email programmatically.
In case of a network issue, as a fallback option I'd like my midlet to use the default email client and place a prefabricated email with the image in the Outbox. How can I achieve this?
If this fallback scenario isn't possible, is there an alternative to temporarily store the image and resend it later, either programmatically or by the user using a default installed application?
Regards, Ted
Re: Sending image programmatically, fallback using default email client?
[QUOTE=tvinke;477429]
Using a J2ME midlet I need to capture and image on the N95 and send it programmatically to a location, either post it as data to a server or send it by email programmatically.
[/QUOTE]
I think these links might help:
[url]http://yanuperwira.wordpress.com/2008/02/18/capture-image-and-send-on-serverj2me/[/url]
[url]http://wiki.forum.nokia.com/index.php/HTTP_Post_multipart_file_upload_with_J2ME[/url]
Best Regards,
Croozeus
Re: Sending image programmatically, fallback using default email client?
Hi tvinke,
about your fallback scenario: you cannot create and place an email in device's default email client OutBox.
So, the alternative could be the one you describe, locally storing the captured image (using RMS or FileConnection) and then resending it when network connection is newly available.
To automatically check and retry to send the image you could use PushRegistry, to let your MIDlet automatically (and periodically) restart.
Pit
Re: Sending image programmatically, fallback using default email client?
Is this a limitation of J2ME's security model perhaps?
[QUOTE=jappit;477953]Hi tvinke,
about your fallback scenario: you cannot create and place an email in device's default email client OutBox.
Pit[/QUOTE]