lmarsxiu
lmarsxiu

Reputation: 73

App engine 1.4.0 urlfetch() data over 1M

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?

Upvotes: 0

Views: 363

Answers (1)

sje397
sje397

Reputation: 41822

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

Upvotes: 1

Related Questions