无法从网上完全下载字符串 [英] Can't download string completely from the web

查看:58
本文介绍了无法从网上完全下载字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个应用程序,需要从网上下载一个长字符串(实际上是一个json,大约200K-300K)。我使用了典型的webrequest(有一个流)以及webclient(有一个字符串)。在每种情况下,我只有部分字符串,大约前60%。这个地方
下载停止的位置不一样,所以我觉得这里有超时的东西吗?

I'm writing a app which need download a long string(a json actually, about 200K-300K) from the web. I used the typical webrequest(got a stream) as well as webclient(got a string). In each case I only got part of the string, about the first 60%. The place download stop is not the same position, so I guess there is something like timeout here?

任何帮助都会很棒

推荐答案

请分享您下载的代码和可能的URL,这将有助于您快速解决。
Please share code and if possible URL from where you are downloading, this will help you in quick resolution.


这篇关于无法从网上完全下载字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆