It is stored at the end in the array. But maybe PDF is not yet transferred fully from the server to the client. Why we should wait for whole file to be transferred before starting to compute hash?