×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    124

    file upload with httpconnection

    Hi Experts,
    I have an HttpConnection object and I want to upload a file (stream object) from my handset to the web server. I did a search and came across a few threads, but I'm still not clear. Can anyone point me to a sample code ?

    Also does this feature has any model/jsr dependency ? Or is it comes standard with midp2 ?

    many thanks

  2. #2
    Registered User
    Join Date
    Nov 2006
    Location
    Buenos Aires, Argentina
    Posts
    37

    Re: file upload with httpconnection

    If you use HttpConnection you ensure that it will work even on MIDP1.

    What you are trying to upload is a file on a memory card for instance? or just data from memory.

    If it is the first case, you have to read that file using the fileconnection api JSR-75 that it is not present on every phone.

  3. #3
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    124

    Re: file upload with httpconnection

    arielbt,
    Thank you, I'm aware that i need jsr 75 for fileconnection. I have an in-mem file (like a bytearrayinputstream). I just need to know how to setup the httpconnection parameters for uploading it.

    thanks

  4. #4
    Super Contributor
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,697

    Re: file upload with httpconnection

    hi,

    basic POST upload sample comes with MIDP docs:
    http://java.sun.com/javame/reference...onnection.html,
    another:
    http://developers.sun.com/techtopics...tips/HTTPPost/


    hth,
    regards,
    Peter

Similar Threads

  1. Do u think Nokia 3G phone support File Upload???
    By DancingWave in forum Browsing and Mark-ups
    Replies: 9
    Last Post: 2007-03-15, 09:30
  2. File upload through Wap 2.0 XHTML
    By binarymax in forum Browsing and Mark-ups
    Replies: 8
    Last Post: 2006-09-05, 11:03
  3. S60 theme questions
    By Nokian_Spb in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-08-17, 06:11
  4. Series 60 SDK Appwizard on windows xp
    By moonjoor in forum Symbian Tools & SDKs
    Replies: 15
    Last Post: 2003-12-24, 10:22

Posting Permissions

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