{"id":264,"date":"2011-02-23T12:09:59","date_gmt":"2011-02-23T03:09:59","guid":{"rendered":"http:\/\/www.prime-architect.co.jp\/myblog\/?p=264"},"modified":"2013-02-24T12:12:33","modified_gmt":"2013-02-24T03:12:33","slug":"google-app-engine%e3%81%a7%e7%94%bb%e5%83%8f%e3%82%a2%e3%83%83%e3%83%97%e3%83%ad%e3%83%bc%e3%83%89%e3%81%a8%e4%b8%80%e7%b7%92%e3%81%ab%e6%96%87%e5%ad%97%e5%88%97%e3%83%91%e3%83%a9%e3%83%a1%e3%83%bc","status":"publish","type":"post","link":"https:\/\/www.prime-architect.co.jp\/myblog\/google-app-engine-264","title":{"rendered":"Google App Engine\u3067\u753b\u50cf\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3068\u4e00\u7dd2\u306b\u6587\u5b57\u5217\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3002"},"content":{"rendered":"<p>Google App Engine\u3067\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001BigTable\u3078\u767b\u9332\u3059\u308b\u51e6\u7406\u3092\u5148\u65e5\u3001\u4f5c\u6210\u3057\u516c\u958b\u3057\u305f\u304c\u3001\u3053\u3053\u3067\u82e6\u52b4\u3057\u305f\u3053\u3068\u304c\uff12\u3064\u3042\u308b\u3002<\/p>\n<p>\u5185\u5bb9\u306f\u4ee5\u4e0b\u3067\u3042\u308b\u3002<\/p>\n<p>\uff11\uff0e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3068\u4e00\u7dd2\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u306a\u3069\u306e\u6587\u5b57\u5217\u3092\u4e00\u7dd2\u306b\u30b5\u30fc\u30d0\u3078\u9001\u4fe1\u3057\u3066\u3082\u3001\u30b5\u30fc\u30d0\u5074\u3067\u6587\u5b57\u5217\u304c\u53d6\u5f97\u3067\u304d\u306a\u3044\u3002<\/p>\n<p>\uff12\uff0e\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u304c\u3001\u65e5\u672c\u8a9e\u306a\u3069\u306e\u30de\u30eb\u30c1\u30d0\u30a4\u30c8\u6587\u5b57\u306f\u6587\u5b57\u5316\u3051\u3057\u3066\u3057\u307e\u3046\u3002<\/p>\n<p>\u3053\u308c\u3089\u306e\u554f\u984c\u3092\u8272\u3005\u8abf\u3079\u3066\u89e3\u6c7a\u3057\u305f\u306e\u3060\u304c\u3001\u89e3\u6c7a\u65b9\u6cd5\u3092\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u5099\u5fd8\u9332\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304f\u3002<br \/>\n\u307e\u305f\u3001\u540c\u3058\u3088\u3046\u306a\u3053\u3068\u3067\u56f0\u3063\u3066\u3044\u308b\u4eba\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3042\u308b\u3002<\/p>\n<p>\uff11\u3064\u76ee\u306e\u554f\u984c\u306e\u73fe\u8c61\u306f\u4ee5\u4e0b\u3067\u3042\u308b\u3002\u4eca\u56de\u306f1\u3064\u76ee\u306e\u89e3\u6c7a\u65b9\u6cd5\u3092\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<p>\u753b\u50cf\u306a\u3069\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b5\u30fc\u30d0\u3078POST\u3059\u308b\u969b\u3001\u30d5\u30a1\u30a4\u30eb\u30b5\u30a4\u30ba\u304c\u5927\u304d\u3059\u304e\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u5f93\u6765\u306eURL\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u306f\u7121\u7406\u304c\u3042\u308b\u3002<br \/>\n\u305d\u3053\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3001MIME\u306e\u30de\u30eb\u30c1\u30d1\u30fc\u30c8\u30c7\u30fc\u30bf\u3068\u3057\u3066\u9001\u4fe1\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3002<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n&lt;form method=&quot;POST&quot; enctype=&quot;multipart\/form-data&quot; action=&quot;\/imageup&quot;&gt;\r\n&lt;input type=&quot;text&quot; name=&quot;filetitle&quot; \/&gt;\u3000\u2190\u30bf\u30a4\u30c8\u30eb\u540d\u306a\u3069\u306e\u6587\u5b57\u5217\r\n&lt;input type=&quot;file&quot; size=&quot;30&quot; name=&quot;imgfile&quot; \/&gt;\u3000\u2190\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\r\n&lt;\/form&gt;\r\n<\/pre>\n<p>\u3053\u3053\u3067\u3001\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3068\u4e00\u7dd2\u306b\u9001\u4fe1\u3059\u308b\u30d1\u30e9\u30e1\u30fc\u30bf&#8221;filetitle&#8221;\u306eServlet\u5074\u3067\u306e\u53d6\u5f97\u65b9\u6cd5\u304c\u5206\u304b\u3089\u306a\u304b\u3063\u305f\u3002<\/p>\n<p>URL\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3067\u9001\u3089\u308c\u3066\u304f\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u305f\u3081\u3001\u5f93\u6765\u306e\u3088\u3046\u306a<br \/>\nString title_name = request.getParameter(&#8220;filetitle&#8221;)<br \/>\n\u3068\u3044\u3063\u305f\u65b9\u6cd5\u3067\u53d6\u5f97\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u306a\u3044\u306e\u3067\u3042\u308b\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u306e\u53d6\u5f97\u65b9\u6cd5\u306f\u4ee5\u4e0b\u3067\u3042\u3063\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u629c\u7c8b<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n\/\/\u30ea\u30af\u30a8\u30b9\u30c8\u30c7\u30fc\u30bf\u3092FileItem\u578b\u306e\u30ea\u30b9\u30c8\u306b\u683c\u7d0d\r\nList&lt;FileItem&gt; list = upload.parseRequest(req);\r\n\r\n\/\/\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u30c7\u30fc\u30bf\u3092\u9806\u306b\u51e6\u7406\uff08\u3053\u3053\u306fiterator\u3092\u4f7f\u3046\u3079\u304d\u306a\u306e\u304b\u3082\u3002\u3002\u3002\uff09\r\nfor(FileItem item : list){\r\n \u3000\/\/\u753b\u50cf\u306e\u5834\u5408\u3001isFormFild\u304cFalse\u3068\u306a\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u753b\u50cf\u306a\u306e\u304b\u3001\u901a\u5e38\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304b\u3092\u5224\u5225\u3059\u308b\u3002\r\n \u3000if(!(item.isFormField())){\r\n \u3000\/\/\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u3059\u308b\u51e6\u7406\r\n   fileName = item.getName();\r\n\u3000\u3000\u3000\uff1a\r\n\u3000\u3000\u3000\uff1a\r\n\u3000\u3000\r\n \u3000}else { \/\/\u901a\u5e38\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u5834\u5408\u3001isFormFild\u304cTrue\u3068\u306a\u308b\u3002\r\n  \u3000\/\/\u3053\u3053\u3067\u3001\u30bf\u30a4\u30c8\u30eb\u540d\u3092\u53d6\u5f97\u3059\u308b\u3002getString\u30e1\u30bd\u30c3\u30c9\u3067\u7c21\u5358\u306b\u53d6\u5f97\u3067\u304d\u308b\u3002\r\n  \u3000filetitle = item.getString();\r\n\u3000\u3000  \uff1a\r\n  \u3000\r\n \u3000}\r\n}\r\n<\/pre>\n<p>\u3067\u3001\u3053\u308c\u3067\u306f\u3001\u53d6\u5f97\u3057\u305f\u6587\u5b57\u304c\u6587\u5b57\u5316\u3051\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u305d\u306e\u5bfe\u7b56\u3092\u7d9a\u304d\u306b\u307e\u3068\u3081\u307e\u3057\u305f\u3002<br \/>\n\u7d9a\u304d\u306f\u3053\u3061\u3089<br \/>\n<a href=\"http:\/\/www.prime-architect.co.jp\/myblog\/google-app-engine-260\">multipart\/form-data\u3067\u306e\u6587\u5b57\u5316\u3051\u5bfe\u7b56<\/a><\/p>\n<p><iframe src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?t=primearchitec-22&#038;o=9&#038;p=8&#038;l=as1&#038;asins=4798123021&#038;ref=qf_sp_asin_til&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Google App Engine\u3067\u753b\u50cf\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001BigTable\u3078\u767b\u9332\u3059\u308b\u51e6\u7406\u3092\u5148\u65e5\u3001\u4f5c\u6210\u3057\u516c\u958b\u3057\u305f\u304c\u3001\u3053\u3053\u3067\u82e6\u52b4\u3057\u305f\u3053\u3068\u304c\uff12\u3064\u3042\u308b\u3002 \u5185\u5bb9\u306f\u4ee5\u4e0b\u3067\u3042\u308b\u3002 \uff11\uff0e\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3068\u4e00\u7dd2\u306b\u30d5\u30a1\u30a4\u30eb\u540d\u306a\u3069\u306e\u6587\u5b57\u5217\u3092\u4e00\u7dd2\u306b &hellip; <a href=\"https:\/\/www.prime-architect.co.jp\/myblog\/google-app-engine-264\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Google App Engine\u3067\u753b\u50cf\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3068\u4e00\u7dd2\u306b\u6587\u5b57\u5217\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u9001\u4fe1\u3059\u308b\u3002&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[14],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts\/264"}],"collection":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":14,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":287,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/posts\/264\/revisions\/287"}],"wp:attachment":[{"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-architect.co.jp\/myblog\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}