File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes attachment to J2ME client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "attachment to J2ME client" Watch "attachment to J2ME client" New topic

attachment to J2ME client

lokesh jain
Ranch Hand

Joined: Feb 21, 2009
Posts: 58
hi all,
I am a newbie in J2ME. I successfully made J2me client for J2EE web service. However I am afraid if we can send any attachment like pdf or text file or any image to the J2me client. Can anyone help me please? Also do let me know what is the maximum size of the attachment we can send?

Thanks in advance
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

When you say "send to client", you're making a contradiction. You "send to" a server. And mobile devices aren't networked in ways that make them very usable as server.

On the other hand, using a J2ME app as a client, you can contact a server and upload files using protocols like HTTP. There's no real restriction here, as long as your device has the bandwidth to do the transfer (in a reasonable amount of time) and there's enough available storage on the device to hold it.

Of course, when you upload a PDF file, that usually implies you have a PDF reader program. But that's a completely different matter.

An IDE is no substitute for an Intelligent Developer.
carox kaur
Ranch Hand

Joined: Mar 19, 2009
Posts: 52
Hi all, I am also a newbie in j2me. I am making a mobile mail application. I want to give the clients a facility to send/recieve mails from mobile. I am also facing a similar situation: attachments with mail. Can I get hint as to how can we give the facility of attachments...I have made the screen of composing the mails...
I agree. Here's the link:
subject: attachment to J2ME client
jQuery in Action, 3rd edition