Copyright (C) 2000-2012 |
Manpages URI::dataSection: User Contributed Perl Documentation (3)Updated: 1999-03-20 Index Return to Main Contents NAMEURI::data - URI that contain immediate dataSYNOPSISuse URI; $u = URI->new("data:"); $u->media_type("image/gif"); $u->data(scalar(`cat camel.gif`)); print "$u\n"; open(XV, "|xv -") and print XV $u->data; DESCRIPTIONThe "URI::data" class supports "URI" objects belonging to the data URI scheme. The data URI scheme is specified in RFC 2397. It allows inclusion of small data items as ``immediate'' data, as if it had been included externally. Examples:
data:,Perl%20is%20good data:image/gif;base64,R0lGODdhIAAgAIAAAAAAAPj8+CwAAAAAI AAgAAAClYyPqcu9AJyCjtIKc5w5xP14xgeO2tlY3nWcajmZZdeJcG Kxrmimms1KMTa1Wg8UROx4MNUq1HrycMjHT9b6xKxaFLM6VRKzI+p KS9XtXpcbdun6uWVxJXA8pNPkdkkxhxc21LZHFOgD2KMoQXa2KMWI JtnE2KizVUkYJVZZ1nczBxXlFopZBtoJ2diXGdNUymmJdFMAADs="URI" objects belonging to the data scheme support the common methods (described in URI) and the following two scheme specific methods:
SEE ALSOURICOPYRIGHTCopyright 1995-1998 Gisle Aas.This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
IndexThis document was created by man2html, using the manual pages. Time: 02:16:39 GMT, April 20, 2024 |