020306-2

How is it possible to send binary data in e-mail, even though e-mail is based on sending text messages?

Answer, variant 1

Method 1: Encode the binary into text using the Content-Transfer-Encoding: BASE64.

Method 2: Marking the binary data as Content-Transfer-Encoding: Binary. This require prior agreement, through ESTMP, that both the sending and receiving mail agent can handle binary and 8bit data.

Answer, Variant 2:

ancestor-id.dtd:

<!ELEMENT ancestor-id (person*)>
<!ELEMENT person EMPTY>
<!ATTLIST person
name CDATA #REQUIRED
birthdate CDATA #REQUIRED
id ID #REQUIRED
mother IDREF #IMPLIED
father IDREF #IMPLIED
>

ancestor-id.xml (example, not required):

<?xml version="1.0" standalone="no"?>
<!DOCTYPE ancestor-id SYSTEM "http://dsv.su.se/jpalme/internet-course/xml/ancestor-id.dtd">
<ancestor-id>
<person name="Per Svensson" birthdate="19410201" id="p1" father="p2" mother="p3"/>

List of exam questions