{"id":2221,"date":"2022-11-03T16:54:03","date_gmt":"2022-11-03T07:54:03","guid":{"rendered":"http:\/\/www.agile-software.site\/?p=2221"},"modified":"2022-11-03T16:57:15","modified_gmt":"2022-11-03T07:57:15","slug":"2221","status":"publish","type":"post","link":"https:\/\/agile-software.net\/?p=2221","title":{"rendered":"FileReader"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u9078\u629e\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n\n\n\n<p>\u30d5\u30a9\u30fc\u30e0\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\uff0f\u9001\u4fe1\u3059\u308b\u3068\u304d\u3001<samp>input\u8981\u7d20<\/samp>\u306e\u300c<samp>type=\u201dfile\u201d<\/samp>\u300d\u306b\u3088\u308b\u300c\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u300d\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<br>\u3053\u306e\u3068\u304d\u3001\u9078\u629e\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\uff08\u30c7\u30fc\u30bf\uff09\u306f<samp>FileReader\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/samp>\u304b\u3089\u53d6\u5f97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FileReader\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/h2>\n\n\n\n<p><samp>FileReader\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/samp>\u306b\u306f\u5f62\u5f0f\u5225\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092\u53d6\u5f97\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u304c\u6b21\u306e4\u3064\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><samp>readAsText\u30e1\u30bd\u30c3\u30c9<\/samp>&nbsp;\u2013 \u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092\u30c6\u30ad\u30b9\u30c8\u5f62\u5f0f\u3067\u53d6\u5f97<\/li>\n\n\n\n<li><samp>readAsDataURL\u30e1\u30bd\u30c3\u30c9<\/samp>&nbsp;\u2013 \u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092Base64\u5f62\u5f0f\u306b\u30a8\u30f3\u30b3\u30fc\u30c9\u3057\u3001\u300cdata:\u301c\u300d\u3067\u59cb\u307e\u308bURL\u5f62\u5f0f\u3067\u53d6\u5f97<\/li>\n\n\n\n<li><samp>readAsArrayBuffer\u30e1\u30bd\u30c3\u30c9<\/samp>&nbsp;\u2013 \u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092<samp>ArrayBuffer\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/samp>\u3068\u3057\u3066\u53d6\u5f97<\/li>\n\n\n\n<li><samp>readAsBinaryString\u30e1\u30bd\u30c3\u30c9<\/samp>&nbsp;\u2013 \u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3068\u3057\u3066\u53d6\u5f97<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092\u30c6\u30ad\u30b9\u30c8\u5f62\u5f0f\u3067\u53d6\u5f97<\/h3>\n\n\n\n<p>\u307e\u305a\u306f\u30d5\u30a1\u30a4\u30eb\u5185\u5bb9\u3092\u30c6\u30ad\u30b9\u30c8\u5f62\u5f0f\u3067\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304b\u3089\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30d5\u30a9\u30fc\u30e0\u306e\u5165\u529b\u9805\u76ee\u300c<samp>type=\u201dfile\u201d<\/samp>\u300d\u304b\u3089\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u305f\u3068\u304d\u306b\u3001<samp>FileReader\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/samp>\u306e<samp>readAsText\u30e1\u30bd\u30c3\u30c9<\/samp>\u3092\u4f7f\u3063\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<br>\u9078\u629e\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u6b21\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306b2\u884c\u306e\u30c6\u30ad\u30b9\u30c8\u304c\u5165\u3063\u305f\u30d5\u30a1\u30a4\u30eb\uff08<samp>.txt\u30d5\u30a1\u30a4\u30eb<\/samp>\uff09\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9078\u629e\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\u3092\u53d6\u5f97\u3059\u308b \u30d5\u30a9\u30fc\u30e0\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\uff0f\u9001\u4fe1\u3059\u308b\u3068\u304d\u3001input\u8981\u7d20\u306e\u300ctype=\u201dfile\u201d\u300d\u306b\u3088\u308b\u300c\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u300d\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u3068\u304d\u3001\u9078\u629e\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u5185\u5bb9\uff08\u30c7\u30fc\u30bf\uff09\u306fFileRead<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2221","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2221"}],"version-history":[{"count":3,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2221\/revisions"}],"predecessor-version":[{"id":2225,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2221\/revisions\/2225"}],"wp:attachment":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}