×

Discussion Board

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

    Checking the server connection from the device for uploading

    I have to upload a video file to the server from the device. But before that I am getting problem for establishing the connection to the server from the device for uploading.

    Can you tell me how to establish the connection to the server for uploading a file?

  2. #2
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    88

    Re: Checking the server connection from the device for uploading

    Hello,
    you can use sockets, http connections, or web services. How the server is providing the conection interface?!!?

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    4

    Re: Checking the server connection from the device for uploading

    before that..can i know how you connect to a database with j2me...please help me dhiraj.deka,thiagobrunoms ..we can share about it..i think we have a same problem..help me ya..

  4. #4
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    88

    Re: Checking the server connection from the device for uploading

    Hello rageboy,
    there are other threads related to persistence in JavaME in Forum Nokia Discussion Boards and articles in Forum Nokia Wiki. Take a look at them (such as Floggy Framework).

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    4

    Re: Checking the server connection from the device for uploading

    ok thanks...hello thiagobrunoms ...i have search many tutorial in internet about howto connect j2me application with mysql...for example Login..
    password and username are kept in database(mySQL) and we use j2me to get the password and username from database..how?anybody can help me..please thiagobrunoms ...:-)

  6. #6
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    88

    Re: Checking the server connection from the device for uploading

    Hello rageboy,
    Are u planning to get data that are stored in a remote machine (server)?. If it is your goal, it depends how the server is providing the required service (eg. login). If it is available through web service, you can use JSR 172 (Web Service Specification), by using WTK to build your stub (Stub Generator Tool). If it is available as http connection, you can use the HttpConnection class, like this example.

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

    Re: Checking the server connection from the device for uploading

    Thanx thiagobrunoms for your reply. I am trying to do that with HttpConnection only. I am getting problem in connecting the server means I am not getting any response from it, I don't know whether the connection is established or not? Can you tell me what is the proper way to establish the connection for uploading a file(video)to the server?

  8. #8
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    88

    Re: Checking the server connection from the device for uploading

    Hello,
    When u send the request, does it throw any exception?!!? If so, past the exception result here. Otherwise, the server is not sending u a response. Try to get the response code through the HttpConnection object, such as httpConnectionObj.getResponseCode(), and check which code it is getting back, such as 200, 404, etc. U can see the meaning of each code here.

    []'s

Similar Threads

  1. Replies: 2
    Last Post: 2009-05-29, 10:15
  2. UDP connection to server working on emulator but not on device !
    By symbian2006 in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2008-10-21, 14:29
  3. Error in packaging process :(
    By a-eqla3 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2008-07-24, 20:33
  4. Using ConnAPI.dll to create a mobile phone<->Funambol server connection
    By hhppp in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2008-03-15, 09:16

Posting Permissions

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