pdf file

  • Thread starter timothy ma and constance lee
  • Start date
J

Joseph Kesselman

Can XML bring along pdf file?

Depends on what you mean by "bring along".

The usual solution would be to have the XML file contain a URI which
tells the application where it can fetch the PDF file -- the same way
that a website can contain a link to a PDF file.

If you really need to embed the PDF in the XML, it's going to be
inefficient. XML can't contain arbitrary binary data, so the usual
solution is to base-64 encode the non-XML information and include the
resulting text characters as content of the XML document. Which, of
course, requires decoding back into the binary form on the far end. Base
64 also increases the number of bytes that must be transmitted. Not a
recommended solution unless you have specific reasons for doing it this way.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top