Discussion Board

Results 1 to 4 of 4
  1. #1
    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 arielbt's Avatar
    Join Date
    Nov 2006
    Location
    Buenos Aires, Argentina
    Posts
    37
    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
    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 peterblazejewicz's Avatar
    Join Date
    Dec 2005
    Location
    Europe/Poland/Warsaw
    Posts
    1,699
    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. [moved] Theme Studio Error
    By TalJ in forum Themes/Carbide.ui
    Replies: 2
    Last Post: 2009-09-06, 03:39
  2. 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
  3. File upload through Wap 2.0 XHTML
    By binarymax in forum Browsing and Mark-ups
    Replies: 8
    Last Post: 2006-09-05, 11:03
  4. S60 theme questions
    By Nokian_Spb in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2006-08-17, 06:11
  5. 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
  •  
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