惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
H
Hacker News: Front Page
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Recent Announcements
Recent Announcements
P
Palo Alto Networks Blog
Webroot Blog
Webroot Blog
Hacker News: Ask HN
Hacker News: Ask HN
IT之家
IT之家
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
P
Privacy & Cybersecurity Law Blog
C
Cisco Blogs
罗磊的独立博客
The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
Y
Y Combinator Blog
AWS News Blog
AWS News Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
K
Kaspersky official blog
博客园 - 司徒正美
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Security Archives - TechRepublic
Security Archives - TechRepublic
The Last Watchdog
The Last Watchdog
Jina AI
Jina AI
MyScale Blog
MyScale Blog
TaoSecurity Blog
TaoSecurity Blog
大猫的无限游戏
大猫的无限游戏
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
美团技术团队
T
Tor Project blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 【当耐特】
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
I
Intezer
V
Visual Studio Blog
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - 自由程序员2006

股市赚钱就是这么简单 解决Android调用相机拍照,要报“打开相机失败”查看debug日志显示“setParameters failed”的问题 四角号码查询器手机版 解决 HttpWebResponse.GetResponse()一直提示超时 解决Oracle登录极慢的问题 分享 百度网盘,不用开会员也可以免费同步上传视频和照片的方法 广电的宽带网络真流氓,替换google的广告为百度的广告 Android下WPS打开Excel2007版也有问题 微软官方的Excel android 移动版的折腾 分享vs低版本开发的项目到VS高版本时遇到的4个小问题解决之记录 解决System.Runtime.CompilerServices.ExtensionAttribute..ctor 与 ‘ExtensionAttribute’ is ambiguous in the namespace ‘System.Runtime.CompilerServices’ 问题 解决微云登陆出现wns login error的问题 终于可以随意控制孩子玩手机的时间了 Android项目,从web上取下汉字,中文部分乱码 There is no ‘Animation’ attached to the “Player” game object Consider this problem again and again, resolve that AndEngine not run in AVD Finally <<Learning Android Game Programming>> need update 今天很兴奋。看到了2个激动人心的技术 编程难不难?
解决 在Android开发上使用KSOAP2上传大图片到服务器经常报错的问题
自由程序员2006 · 2017-04-27 · via 博客园 - 自由程序员2006

原文首发我的主力博客

http://anforen.com/wp/2017/04/android_ksoap2_unexpected_type_position_end_document_null_java_io_inputstreamreader/

jpg图片文件较小时,比如200KB左右,一般不会报错,可以上传成功。当照片比较大时,经常报 org.xmlpull.v1.XmlPullParserException unexpected type
kSoap2 unexpected type(position:END_DOCUMENT null@1:1 in java.io InputStreamReader@414fae00) 这类错误。

经过很多尝试,最后,发现,只需要把ksoap2的版本,更新一下,就OK了。

原来用的是
ksoap2-android-assembly-2.5.2-jar-with-dependencies.jar

现在更新为
ksoap2-android-assembly-3.1.1-jar-with-dependencies.jar
后,一切正常。