Results 1 to 4 of 4
  1. #1
    wbangroup is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default upload file from java application on mobile to web server

    Hi,
    i would like to know if it is possible for me to upload say a text file on the web server of my webhost (000webhost.com) directly from my mobile phone java application. Actually i want this java application me and my college friends are developing to send a text file to the web server that would be plotted by this applet on the website. I somehow need to get the text file from java (mobile phone) to the webserver . Now the url the java application should access is net2ftp.com which asks for a few details like username, password, FTP server etc that should be auto entered by the java code (like these details are provided in the java script and it logins me in automatically) the next page after login is net2ftp.com/index.php which has an upload tab ...this tab should also be auto clicked by the java script and then it asks me to choose the file to upload and then click the upload button.....does any one has any idea if
    a) this approach is practical?
    b) any scripts you have ever come across that could help in achieving this ?

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,581
    Rep Power
    25

    Default

    Would your app work the same way if run from a PC? There will be more people that could help if you developed the prototype on a PC and then ported it later to the mobile phone.
    Does the server use the FTP protocol?
    Your description sounds like you are using HTTP to talk to the server.

  3. #3
    wbangroup is offline Member
    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0

    Default

    we are working on android ...so yes on computer we can run the same java application on the emulator eclipse of android ....and we want to upload via ftp not http.

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,581
    Rep Power
    25

    Default

    I'd suggest that you work out the coding techniques on a PC using Java SE and then convert the code to the mobile device. There are FTP packages that will do most of the work. I have no idea if they would work on a mobile.

Similar Threads

  1. Replies: 4
    Last Post: 10-30-2010, 10:16 AM
  2. Upload war file on server
    By sandeeprao.techno in forum Advanced Java
    Replies: 2
    Last Post: 12-16-2009, 10:55 AM
  3. :large file upload to server(chunk upload)
    By tommy_725 in forum Networking
    Replies: 0
    Last Post: 10-16-2009, 12:21 AM
  4. UPload a file to server?
    By makpandian in forum JavaServer Pages (JSP) and JSTL
    Replies: 10
    Last Post: 07-21-2009, 01:35 PM
  5. Replies: 0
    Last Post: 08-25-2008, 02:13 PM

Posting Permissions

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