Fixed setBlob with large blob from Tore Halset

Use long instead of int for numRead and bytesRemaining