Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User onlymengmei's Avatar
    Join Date
    May 2006
    Posts
    14
    I have a httpconnection. Client need a file(13K) from Server

    In servlet, it is correct to get the data to DataInputStream and then OutputStream.write(data) to Client;

    But when receive data in Client, DataInputStream.available() only get 8192Byte

    Is it mean that with httpconnection transporting the 8192byte data once?
    If I need large file,I must connect with http many times?

    I will apreciate your replies
    Thank you

  2. #2
    Regular Contributor pillar's Avatar
    Join Date
    Feb 2006
    Posts
    112
    If I understand correctly, you don't have to connect multiple times, you just have to read multiple times. I would go about trying a while loop that reads until there is no data left. Remember to do dis.flush(); inside that loop.

  3. #3
    Registered User onlymengmei's Avatar
    Join Date
    May 2006
    Posts
    14
    I just made it!!!

    Thank you so so so much!!!!!

Similar Threads

  1. strange behavior on sending jar file via WAP for different mobile network
    By thone in forum Digital Rights Management & Content Downloading
    Replies: 2
    Last Post: 2005-10-28, 07:53
  2. Replies: 1
    Last Post: 2005-05-26, 14:22
  3. Maximum JAR file size on Nokia 3105
    By capitaoterminal in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2004-06-16, 21:09
  4. Replies: 0
    Last Post: 2002-06-10, 12:24
  5. Control The File Size
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-14, 11:36

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