{"id":7452,"date":"2022-12-20T19:38:09","date_gmt":"2022-12-20T22:38:09","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/uridata-man3\/"},"modified":"2022-12-20T19:38:09","modified_gmt":"2022-12-20T22:38:09","slug":"uridata-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/uridata-man3\/","title":{"rendered":"URI::data (man3)"},"content":{"rendered":"<h1 align=\"center\">URI::data<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#COPYRIGHT\">COPYRIGHT<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">URI::data \u2212 URI that contains immediate data<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">use URI; <br \/> $u = URI\u2212>new(&#8220;data:&#8221;); <br \/> $u\u2212>media_type(&#8220;image\/gif&#8221;); <br \/> $u\u2212>data(scalar(`cat camel.gif`)); <br \/> print &#8220;$un&#8221;; <br \/> open(XV, &#8220;|xv \u2212&#8221;) and print XV $u\u2212>data;<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The &#8220;URI::data&#8221; class supports &#8220;URI&#8221; objects belonging to the <i>data<\/i> <small>URI<\/small> scheme. The <i>data<\/i> <small>URI<\/small> scheme is specified in <small>RFC 2397.<\/small> It allows inclusion of small data items as &#8220;immediate&#8221; data, as if it had been included externally. Examples:<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">data:,Perl%20is%20good <br \/> data:image\/gif;base64,R0lGODdhIAAgAIAAAAAAAPj8+CwAAAAAI <br \/> AAgAAAClYyPqcu9AJyCjtIKc5w5xP14xgeO2tlY3nWcajmZZdeJcG <br \/> Kxrmimms1KMTa1Wg8UROx4MNUq1HrycMjHT9b6xKxaFLM6VRKzI+p <br \/> KS9XtXpcbdun6uWVxJXA8pNPkdkkxhxc21LZHFOgD2KMoQXa2KMWI <br \/> JtnE2KizVUkYJVZZ1nczBxXlFopZBtoJ2diXGdNUymmJdFMAADs=<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">&#8220;URI&#8221; objects belonging to the data scheme support the common methods (described in <small>URI<\/small> ) and the following two scheme-specific methods: <br \/> $uri\u2212>media_type( [$new_media_type] )<\/p>\n<p style=\"margin-left:17%;\">Can be used to get or set the media type specified in the <small>URI.<\/small> If no media type is specified, then the default &#8220;text\/plain;charset=US\u2212ASCII&#8221; is returned.<\/p>\n<p style=\"margin-left:11%;\">$uri\u2212>data( [$new_data] )<\/p>\n<p style=\"margin-left:17%;\">Can be used to get or set the data contained in the <small>URI.<\/small> The data is passed unescaped (in binary form). The decision about whether to base64 encode the data in the <small>URI<\/small> is taken automatically, based on the encoding that produces the shorter <small>URI<\/small> string.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><small>URI<\/small><\/p>\n<h2>COPYRIGHT <a name=\"COPYRIGHT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Copyright 1995\u22121998 Gisle Aas.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">This library is free software; you can redistribute it and\/or modify it under the same terms as Perl itself.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  URI::data \u2212 URI that contains immediate data <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3007,3764],"class_list":["post-7452","post","type-post","status-publish","format-standard","hentry","category-sin-categoria","tag-man3","tag-uridata"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=7452"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7452\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}