アプリ エンジンのバージョンは 1.4.0 です。データ dem.bil は /war/dem.bil ディレクトリの下にあります。これらは、3M であるデータ dem.bil を取得するコードです。 openConnection(); 入力ストリーム b = a.getInputStream(); int len = a.getContentLength(); if (len < 0) { null を返します。} //System.out.println("Total: "+len); byte[] c = 新しい byte[len]; b.read(c,0,len); cを返します。}キャッチ(例外e){e.printStackTrace(); null を返します。} }
バージョン 1.4.0 では URLFetch の応答制限が 32MB に増加したことは知っていますが、InputStream b = a.getInputStream(); になると、デバッグは「com.google.appengine.api.urlfetch.ResponseTooLargeException: The response from url localhost:8888/dem.bil was too large.」です。誰かが理由を教えてもらえますか?またはコードに問題がありますか?