SocketConnection / DataInputStream - 1 MB limit?

Is there any type of restriction on the amount of data that can handle a DataInputStream?

Use any type of connection (wifi, tcp, wap2) - and even on the Simulator - I appear to be limited to receive slightly more than 1 MB of data on a connection.    Note that the flow of connection / works great in all other ways.

If I use readData (byte []...) or char c = readData() the result is the same: shortly after I hit the 1 MB mark, he starts blocking as if there is no data to receive (every indication so far is that it is - for example, this may occur when you view a long log file.

Someone saw something similar, or have any suggestions?  A forum search showed a possible match (large file transfer does not complete) but no solution.

Edit: Oops - almost forgot to add.  In the debugger, I see that just before the start of the block, I get less data that may contain buffer memory.  Even if there should be enough incoming to fill.

Looks like responses - Telnet Protocol worked, I could receive 10 + MB without any problem.

Given that both use the same types of socket connection in the client, the default should be something done (or not done) in the implementation of the SSH client.

Thank you for the responses, anyway – has helped keep me thinking two

Tags: BlackBerry Developers

Similar Questions

  • SocketConnection sends only little data. (Works in the Simulator)

    Hi guys,.

    I am writing an app that some works on the phone and then sends a block of reasonable size of data to a server (about 1.5Meg to 20Meg).

    The problem is that the phone seems to only send about 16 KB of data before it stops and does nothing until the connection times out and closes.

    I use Wifi via a VPN to send this data.

    It works very well in the Simulator, but just does not work when I deploy on a phone.

    Any ideas?

    Here is the code:

    DataBuffer buffer = new DataBuffer();
    buffer.writeInt (sizeOfData);
    buffer.writeShort (Constants.SAVE_SITE_AUDIT);
    byte[] data = getProcessedData(); // Returns about 1.5 to 20 Megs of data
    buffer.write(data);
    
    SocketConnection sc;
    sc = (SocketConnection) Connector.open ("socket://10.0.1.5:2000";interface=wifi;deviceside=true", Connector.READ_WRITE);
    
    DataOutputStream out = sc.openDataOutputStream();
    DataInputStream in = sc.openDataInputStream();
    
    out.write(buffer.getArray()); // Hangs here only sending about 16k of data
    out.flush();
    
    if (in.readShort() == Constants.FAIL){
    etc....
    }else
    

    Thank you

    MOF.

    First thing is to make sure that you expand on the appropriate level of the operating system.  So for the 4.6.1 peripheral, you have developed using 4.6.1/4.6 and 4.7 or 5.0.

  • Need to limit the number of columns

    When a tab in the last cell of the row, I want the cursor to the next line down. Instead, it creates a new useless column. Can't seem to find a setting that allows me to limit the number of columns in a page - someone ' one knows how to do this?

    Thanks for your wisdom shared, Oh wise Ones.

    I'm not aware of do what you want.  You can post your comments directly to Apple using the menu item "numbers > provide Feedback numbers.

    You can still use the key combinations:

    < command > + < right arrow > to access at the end of a line

    < command > + < left arrow > to move to the beginning of a line

    < command > + < down > to pass at the end of a column

    < command > + < arrow > to move to the beginning of a column

  • Cannot disable ad followed limit

    I try to use an application called FeaturePoints, which requires monitoring limit announcement is disabled. When I go into the settings, it is impossible to turn off and on. I tried to change the restrictions. Any ideas?

    Hello. You use a profile which may limit your flexibility? If so, it will be located in the settings > general > profile. What happens if you disable restrictions completely?

    Note that "limit followed ad" is a property of your Apple ID, as described here

    "If you chose to activate limit Ad Tracking, advertising platform from Apple will choose your Apple to receive targeted ads on your areas of interest regardless of what device you are using ID." Apps or advertisers who do not use any Apple ad platform are required to check the parameter Ad limit and are not allowed by the guidelines from Apple to serve you targeted ads if you limit active follow-up Ad." (from comments advertising & Privacy - Apple Support)

    Thus, it can be activated on another device so that you cannot turn off the coast.

  • Is there a limit of downloads of music on my iPhone?

    I don't seem to be able to download more than a certain amount of music to my new iphone 7.

    No, there is no limit.

  • "You have reached the limit for the reservations authorized by customer.

    I got this error, whatever i use different apple ID. and also another telephone number of her present on ireserve. But if I try to use another type of government identification. This works. I don't know why the apple system can keep to see my id personal Government reach the limit and it should be fine clear every day. I try to call hong kong apple support. but they said they don't have solution and any part can help with my problem. It is quite interesting that they suggested me to use the information for other people to do the ireserve. can anyone help?

    I'm really confused by your question

    You have reached too much supply of iPhone on iReserve and get an error when you try to use a different number of phone or Apple ID, telling you that you have booked too much. So you try to book using a most other Hong Kong Government issued IDS, and it works

    I'm confused on what you need help with

  • Limit mail messages

    IPad has the latest updates to iOS. Is there a way to limit the number of messages downloaded from my Verizon account. for example, download only the last 30 days?

    What is the message? E-mail? Check your e-mail configuration settings.

  • Turn off the power limit Ad Tracking?

    Hello! I have a problem with the feature "search ad limit. The cursor is gray and will not let me turn off, saying that I have less than 18 years when I'm not. I've already changed to 'allow changes' restrictions and I don't know if I have apps which force advertising, tracking, and I don't know how to fix this, if this is the case. Help, please! I need this setting off to access certain applications of mine! I am also on a personal Apple ID.

    Turn off wifi and cellular data, then click on the button of advertising in privacy and turn off the announcement of limit button

  • Limit position reached

    I am an active user of this forum, and I love helping people. I was wondering if there was a way around the limit of post, as I help people fairly quickly, often jumping from one position to another so it's difficult to help people with what is happening. Any fix?

    The post limit is in place to prevent ' bots from spamming the forum. Although I've never seen any specific criteria published, over time, you earn more points, the limits are relaxed. Be patient.

  • Send an email to iCloud - should not exceed the sending limit.

    When sending email * address, receive the message I'm over issuing limit the size without worrying about the content of the e-mail.

    Occurs when on iPhone, iPad and MacBook.

    < personal information under the direction of the host >

    edit your message if you do not want your email address harvested for spam by a web bot.

    have you tried directly from iCloud.com?

  • Limit Mail Server 5.1.5 attachments

    Hi all

    Does anyone know the terminal command to increase the limit of the attachment on Mac OS Server?

    It seems it has been removed the app server settings.

    Thank you

    ebrind

    Try this:

    OS X Server: setting limits of size of message for the e-mail service - Apple support

    The document is a bit long in the tooth, but as far as I know, the method still works.

    C.

  • Can I limit only usable with wifi safari?

    I'm trying to limit my child phone only access Safari when wifi is available.  Is this possible without having to buy a parent program safe?

    You can create a managed account for your child and Parental control allows you to limit the time. But you can't restrict Safari to use a particular protocol. Which is limited to the network itself via the network preferences.

  • I can't turn off the tracking ad limit

    I have try to disable ad followed limit but cannot, I turned on the restrictions and allow the changes but still greyed out I think I saw a popout, but can't remember what he said.

    Hello, this link may be useful > https://support.apple.com/en-us/HT202074

  • Is the iPad limit data usage via personal hotspot from my iPhone?

    I have unlimited use of data in the Netherlands, but in France the use of the data is limited. I don't want my iPad to consume all the data because of unwanted downloads.

    The iPad is aware that he uses a personal hotspot from my iPhone. It modifies the behavior of data then use?

    Using an iPad with an iPhone 5s mini3. Both running latest version of the OS.

    Bolderbast wrote:

    The iPad is aware that he uses a personal hotspot from my iPhone. It modifies the behavior of data then use?

    No, the iPad doesn't "know" that you have a limit on your data. It does not change the behavior of use based on the type of connection (other that it will not download files more 100 mg on cell phone).

  • What is the limit of the number of emails that can be sent in an email list?

    Just a simple question! Requested because a friend is having problems with MS Outlook by limiting the number of e-mails it can sent at the same time and both its ISP & MS say that the other is responsible for the problem. Before that I suggest using Mozilla Thunderbird for emails that I want to know the limit. Simple as that.

    Just a simple answer. There is none.

    A more complex answer is that Thunderbird has no limits, nor does Outlook if I remember correctly. However, email providers have almost universally limits, but what they are is fully defined by the supplier in question. I am aware of the limits as little as 5 and as high as 200.

    Certain limits are really complex, a provider of account of all addresses in a list, and CC ' ed and Bcc'ed and you are limited to only so an hour. If someday a list will work, the next day, after you meet some other emails it's not because you have exceeded their limit to make it on time. Google has a daily limit. But it depends if you are a business customer or a free client. It is also different in business accounting, if the emails are processed internally to your domain or outside the Internet in general.

    Maybe your friend you need to use a service like mailchimp to avoid spam ISP limiting rules.

Maybe you are looking for

  • Bootcamp update fails after El capitan (please help me alone!)

    Hello I think I have the same problem postedBootcamp update fails after Yosemite (please help me alone!) But like the other user, I'm a little scared, and I don't want to lose my Bootcamp partition. That's why I ask you to help for solitaire (thank y

  • New website after repair of xp.

    I managed to lose a file(don't ask) system so I ran an XP download using the repair mode. It has not worked that now when I try to call to the top of my site, I get a 'new' warning and can't seem to him to republish. Any thoughts?

  • NMH300 - maximum LINEAR 2

    Hello I have a very simple question, but in this forum at the moment, I have not found an answer. I just want to know the maximum capacity in LINEAR 2 of the Media Hub NMH300 mode. For example: with 2 hard drives WD 2 TB, I use 4 TB within the LINEAR

  • Update graphics drivers dv6 3322el switchable map

    Hello I ' am looking for new pilots of win8 to graphics ATI mobility radeon HD 6550, the only advice that does not work after the upgrade to pro Win8. I already checked on the HP support but unfortunally I couldn't find them. I tried several disks of

  • Need Windows 7 drivers for my system... I tried and does not work

    Hey there, I have a HP Pavilion dv6700 Notebook PCSN: {removed privacy}REF: KN843UA #ABA I just installed Windows 7 Ultimate 32 - Bit on it and it works fine. I can't find a compatible video driver... The driver available from hp website is only Vist