If size < readChunkSize then the read will fail

Change the buffer to be big enough to hold all the data