GridFSBucketReadStream `doRead` does not honor chunk size

XMLWordPrintableJSON

    • None
    • None
    • None
    • None
    • None
    • None
    • None

      gridfs-stream\download.js
      When using the GridFSBucket.openDownloadStream to read the data of the specified segment,for example, there is a file size of 2547447 bytes in the gridfs,the chunksize is 1024*1024,I use openDownloadStream(fileid,

      {start:1732608,end:1733632}

      ) want get 1024 bytes,but return 364544 bytes.I find the error came from function doRead,I fix it then it's ok.

        1. download.js
          11 kB
          sunsummit

              Assignee:
              Katherine Walker (Inactive)
              Reporter:
              sunsummit
              None
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: