Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor dhiraj.deka's Avatar
    Join Date
    Oct 2009
    Location
    Assam, India
    Posts
    93
    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 thiagobrunoms's Avatar
    Join Date
    Jan 2008
    Posts
    88
    Hello,
    you can use sockets, http connections, or web services. How the server is providing the conection interface?!!?

  3. #3
    Registered User rageboy's Avatar
    Join Date
    May 2009
    Posts
    4
    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 thiagobrunoms's Avatar
    Join Date
    Jan 2008
    Posts
    88
    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 rageboy's Avatar
    Join Date
    May 2009
    Posts
    4
    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 thiagobrunoms's Avatar
    Join Date
    Jan 2008
    Posts
    88
    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 dhiraj.deka's Avatar
    Join Date
    Oct 2009
    Location
    Assam, India
    Posts
    93
    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 thiagobrunoms's Avatar
    Join Date
    Jan 2008
    Posts
    88
    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 Themes/Carbide.ui
    Replies: 2
    Last Post: 2008-07-30, 22:03
  4. 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
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved