×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Oct 2009
    Location
    Assam, India
    Posts
    93

    Connecting to server from J2ME

    I have written a program for capturing an image from a J2ME midlet. Now the problem is that I have to send the captured image to the server.

    Which will be the better idea to connect the server either http connection or the UDP connection? And can you tell me how to achieve that to send the captured image to the server?

  2. #2
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    159

    Re: Connecting to server from J2ME

    UDP connections as compared to HTTP connections are asynchronous and therefore lightweight. Since the consumer needs to pay for the GPRS usage charges based on the amount of data transferred from and to the phones, it is best to use UDP for many consumer based applications that are not too much critical in nature. so its depend upon your application and requirment.
    and i think below link is usefull to you for how to send data to server.
    http://java.sun.com/developer/J2METe...0820.html#tip2

  3. #3
    Regular Contributor
    Join Date
    Oct 2009
    Location
    Assam, India
    Posts
    93

    Re: Connecting to server from J2ME

    I have checked that link. But I have got stuck in one problem. I think we will have to send the captured image in http connection as byte array only. Can you tell me how we can convert an image into a byte array?

    Or we have to send with other format?

Similar Threads

  1. [Announce]SWFxME(open-source) extend Flash Lite Using J2ME (Http Server)
    By sajisoft in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2009-10-08, 08:53
  2. 404 error connecting to server through Emulator
    By KevinBoyd in forum Mobile Java General
    Replies: 3
    Last Post: 2009-09-29, 09:52
  3. Client Server Application J2ME and JDK
    By fsloke in forum Mobile Java General
    Replies: 2
    Last Post: 2008-04-07, 10:44
  4. Hiding access-point selection dialog while connecting to FTP server
    By SymbianSandy in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-11-17, 06:11
  5. client server programming in j2me
    By mottaisami in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-09-05, 14:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •