App engine 1.4.0 urlfetch() data over 1M

南笙酒味 提交于 2019-12-13 20:22:37

问题


the version of my app engine is 1.4.0.the data dem.bil is under the /war/dem.bil directory.and these are my codes to fetch the data dem.bil that is 3M: try{ URLConnection a = url.openConnection(); InputStream b = a.getInputStream(); int len = a.getContentLength(); if (len < 0) { return null; } //System.out.println("Total: "+len); byte[] c = new byte[len]; b.read(c,0,len); return c; }catch (Exception e) { e.printStackTrace(); return null; } }

i know the version 1.4.0 increased the URLFetch response limit to 32MB,but when it goes to InputStream b = a.getInputStream(); it's debug is "com.google.appengine.api.urlfetch.ResponseTooLargeException: The response from url localhost:8888/dem.bil was too large. ".so can someone can tell me why?or some wrong with my codes?


回答1:


Since the 1.4.0 version was released, the limit was raised to 32mb.

See: http://googleappengine.blogspot.com/2010/12/happy-holidays-from-app-engine-team-140.html



来源:https://stackoverflow.com/questions/4421322/app-engine-1-4-0-urlfetch-data-over-1m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!