pdf file

Discussion in 'XML' started by timothy ma and constance lee, Sep 27, 2007.

  1. Sir/Madam

    Can XML bring along pdf file?
    timothy ma and constance lee, Sep 27, 2007
    #1
    1. Advertising

  2. > 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.


    --
    Joe Kesselman / Beware the fury of a patient man. -- John Dryden
    Joseph Kesselman, Sep 27, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Carl Prothman [MVP]

    Re: Open linked PDF-Files from a PDF-File

    Carl Prothman [MVP], Aug 9, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    466
    Paul Kuebler
    Aug 12, 2003
  2. Paul Kuebler

    Open linked PDF-Files from a PDF-File

    Paul Kuebler, Aug 12, 2003, in forum: ASP .Net
    Replies:
    8
    Views:
    457
    Carl Prothman [MVP]
    Aug 18, 2003
  3. Ricardo Pog
    Replies:
    1
    Views:
    420
    Austin Ziegler
    Mar 26, 2008
  4. Sean Nakasone
    Replies:
    1
    Views:
    363
    Farrel Lifson
    Apr 14, 2008
Loading...

Share This Page