Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    3,815

    [SOLVED] Re: Downloading files efficiently

    Yep, more or less that's how a buffer works.

    Yes, basically there's some fixed cost associated with performing an operation, plus some dynamic cost depending on the amount of data being requested...
  2. Replies
    8
    Views
    3,815

    [SOLVED] Re: Downloading files efficiently

    The reason for Buffered streams (and buffers in general) is to mediate slow access operations, for example reading from a hard drive or across the network. The time it takes to read a byte from these...
  3. Replies
    8
    Views
    3,815

    [SOLVED] Re: Downloading files efficiently

    Why not do something like this:


    // java.net.URL imageUrl initialization here
    URLConnection connection = imageURL.openConnection();
    InputStream is = connection.getInputStream();
    int size =...
  4. Replies
    8
    Views
    3,815

    [SOLVED] Re: Downloading files efficiently

    Are you sure your code works? I can't get it to produce an actual output image.
Results 1 to 4 of 4