Contains the actual data associated with a data item or a signature item. It can be binary data or the contents of an enclosed file.
The data is encoded in base64 format, so that even forms containing binary data can be viewed in a text editor. When the data is needed by the form, it is decoded automatically from base64 back to its native format.
Data may also be compressed before base64 encoding, allowing an item to store a larger block of data.
The MIME data contains the contents of a signature. An XFDL generator must create it as follows:
<mimedata encoding="format">MIME data</mimedata>
Parameter | Type | Description |
---|---|---|
format | string | The format in which to encode the data.
Valid formats are:
|
MIME data | string | The binary data or enclosed file contents. |
data, signature
This sample assigns some encoded data to the mimedata option:
<mimedata encoding="base64-gzip">
R0lGODdhYABPAPAAAP///wAAACwAAAAAYABPAAAC/4SPqcvtD02Y
Art68+Y7im7ku2KkzXnOzh9v7qNw+k+TbDoLFTvCSPzMrS2YzmTE
</mimedata>
This sample shows a mimedata option in a digital signature:
<signature sid="empsignature">
<signformat>application/vnd.xfdl</signformat>
<signer>Jane D Smith, jsmith@insurance.com</signer>
<signature>Page1.empsignature</signature>
<signitemrefs>
<filter>omit</filter>
<itemref>Page1.mgrSigButton</itemref>
<itemref>Page1.admSigButton</itemref>
<itemref>Page1.empsignature</itemref>
<itemref>Page1.mgrsignature</itemref>
<itemref>Page1.admsignature</itemref>
</signitemrefs>
<!-- The items listed MUST have itemlocation
options with absolute and extent as the last
settings in order for the filter to
be sufficient in terms of security -->
<signoptionrefs>
<filter>keep</filter>
<optionref>PAGE1.mgrSigButton.itemlocation</optionref>
<optionref>PAGE1.admSigButton.itemlocation</optionref>
<optionref>PAGE1.empsignature.itemlocation</optionref>
<optionref>PAGE1.mgrsignature.itemlocation</optionref>
<optionref>PAGE1.admsignature.itemlocation</optionref>
</signoptionrefs>
<signoptions>
<filter>omit</filter>
<optiontype>triggeritem</optiontype>
<optiontype>coordinates</optiontype>
</signoptions>
<mimedata encoding="base64">
MIIFMgYJKoZIhvcNACooIIFIzCCBR8CAQExDzANBgkgAQUFADA
LB\ngkqhkiG9w0BBwGgggQZMCA36gAwSRiADjdhfHJl6hMrc5D
ySSP+X5j\nANfBGSOI\n9w0BAQQwDwYDVQQHEwhJbmRlcm5lqw
dDEXMBUGA1UEChM\nOVmVyaVNpZ24sIEluYy4xNDAKnqweaftn
1ZlcmlTaWduIENsYXNzIDEgQ0Eg\nLSJbmRdWFsIFN1YnNjcml
iyZXIwHhcNOTgwMTI3MwMDAwOTgwM\M1OTU5WjCCARExETA
</mimedata>
</signature>