Call resource.forceBinaryWrite to write binary #26