solve download outofmemory problem