Jump to content

API:EPrints/MetaField/Base64: Difference between revisions

From EPrints Documentation
Pod2wiki (talk | contribs)
No edit summary
Pod2wiki (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 31: Line 31:
   [[API:EPrints/MetaField/Text|EPrints::MetaField::Text]]
   [[API:EPrints/MetaField/Text|EPrints::MetaField::Text]]
     [[API:EPrints/MetaField/Longtext|EPrints::MetaField::Longtext]]
     [[API:EPrints/MetaField/Longtext|EPrints::MetaField::Longtext]]
       EPrints::MetaField::Base64 =head1 PROPERTIES
       '''EPrints::MetaField::Base64'''
    
    
<div style='background-color: #e8e8f; margin: 0.5em 0em 1em 0em; border: solid 1px #cce;  padding: 0em 1em 0em 1em; font-size: 80%; '>
<span style='display:none'>User Comments</span>
<!-- Edit below this comment -->
<!-- Pod2Wiki= -->
</div>
<!-- Pod2Wiki=head_properties -->
==PROPERTIES==
<em>To be written</em>
<em>To be written</em>



Latest revision as of 17:13, 20 March 2023

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME[edit]

EPrints::MetaField::Base64 - Base 64 encoded data

User Comments


DESCRIPTION[edit]

Data encoded in base64. This may be small files (e.g. kilobytes) better save in the database rather than to the filesystem.

User Comments


INHERITANCE[edit]

EPrints::MetaField
  EPrints::MetaField::Text
    EPrints::MetaField::Longtext
      EPrints::MetaField::Base64
 

User Comments


PROPERTIES[edit]

To be written

User Comments


METHODS[edit]

User Comments


form_value[edit]

$value = $field->form_value( $session, $object, [$prefix] )

Base64 encode the CGI parameter submitted within the form for this particular field. Assuming the from contained such an input field.

Returns a single scalar or array of base64 encoded values.

User Comments


to_sax[edit]

$xml = $field->to_sax( $value, %opts )

Print the field and value(s) as an XML representation of a base64 field.

User Comments


get_xml_schema_type[edit]

$type = $field->get_xml_schema_type

Gets the XML schema type for this base64 field.

Returns a string containing the type, dataset ID and and name of this field (e.g. base64_file_data).

User Comments


render_xml_schema_type[edit]

$type = $field->render_xml_schema_type

Produces an XML fragment this base64 field.

Returns a DOM for the following:

<xs:complexType name="base64_file_data">
  <xs:simpleContent>
    <xs:extension base="xs:base64Binary">
      <xs:attribute name="encoding">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="base64" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:extension>
  </xs:simpleContent>
</xs:complexType>
 

E.g., <data encoding="base64">...</data>

User Comments


COPYRIGHT[edit]

© Copyright 2000-2024 University of Southampton.

EPrints 3.4 is supplied by EPrints Services.

http://www.eprints.org/eprints-3.4/

LICENSE[edit]

This file is part of EPrints 3.4 http://www.eprints.org/.

EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.

EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.

User Comments