Copy the query buffer to the allocated buffer, and read only the remaining data.
Attach a file by drag & drop or click to upload