App engine 1.4.0 urlfetch() data over 1M

2019-08-28 17:24发布

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条回答
SAY GOODBYE
2楼-- · 2019-08-28 17:38

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

查看更多
登录 后发表回答