Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > pdf file

Reply
Thread Tools

pdf file

 
 
timothy ma and constance lee
Guest
Posts: n/a
 
      09-27-2007
Sir/Madam

Can XML bring along pdf file?



 
Reply With Quote
 
 
 
 
Joseph Kesselman
Guest
Posts: n/a
 
      09-27-2007
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Get List of all Available Fonts in a PDF File & PDF to Image Conversion sherazam Java 0 07-15-2011 10:15 AM
Postscript to PDF with pdf-tools, pdf-writer, or other Sean Nakasone Ruby 1 04-14-2008 09:13 PM
PDF::Writer, create pdf and insert in other pdf file. Ricardo Pog Ruby 1 03-26-2008 08:24 PM
Open linked PDF-Files from a PDF-File Paul Kuebler ASP .Net 8 08-18-2003 04:42 PM
Re: Open linked PDF-Files from a PDF-File Carl Prothman [MVP] ASP .Net 4 08-12-2003 09:26 AM



Advertisments