faban
  1. faban
  2. FABAN-12

Need a way to retrieve binary data

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Labels:
      None

      Description

      For some benchmarks, it is useful to get the binary data back from the server, something like this:

      byte[] buf = new byte[8192];
      int nBytes = httpTransport.readURL(url, buf);

      which would place the first 8192 bytes of the response into the provided buffer (and return the number of bytes, which could of course be <8192). The benchmark writer would be responsible for the buffer management in this case, including providing a large enough buffer for the data – which may not sound ideal, but is common in load generators like LoadRunner.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            yaominchen
            Reporter:
            Scott Oaks
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: