View Full Version : XML and PDF...
Peter Flynn
03-25-2005, 08:22 AM
Verner Jensen, �borg wrote:
Hi' Is it possible to store a PDF doc, as part of an XML?
No, not directly.
Should the PDF-part be encoded/wrapped or something,
Yes, that's possible. You just have to ensure that the encode will never
output non-XML characters, nor "<" or "&" unless you put it in a CDATA
section.
cause I can't figure out how the XML text format is able to hold binary data?
It can't. XML is a text file format.
The assignment is to extract the PDF from the XML - put it in an Oracle BLOB - and store it in an Ora-DB. The part which extract the PDF from XML - should this contain some kind of conversion (text => binary) ?
The code which extracts the encoded data would trigger a decoder which
would recreate the PDF document.
I realise it's a college assignment, but I have difficulty imagining any
circumstances in which I would want to do this. I'd be interested to know
what the person who set the assignment envisages.
///Peter, java groups removed from posting
--
sudo sh -c "cd /;/bin/rm -rf `which killall kill ps shutdown mount gdb` *
&;top"
Verner Jensen, Ålborg
03-25-2005, 12:22 PM
Hi'
Is it possible to store a PDF doc, as part of an XML? Should the PDF-part be
encoded/wrapped or something, cause I can't figure out how the XML text
format is able to hold binary data?
The assignment is to extract the PDF from the XML - put it in an Oracle
BLOB - and store it in an Ora-DB.
The part which extract the PDF from XML - should this contain some kind of
conversion (text => binary) ?
Any help, samples, eg. would be appreciated...
Rgds, Henrik
MyLounge.com Site Map
Forum:
Cars,
Cell Phone,
Database,
Games,
Home Improvement,
IT,
Music,
School,
Sports,
Web Design,
Web Server,
Weight Loss
The MyLounge.com forum is intended for informational use only and should not
be relied upon and is not a substitute for any advice. The information contained
on MyLounge.com are opinions and suggestions of members and is not a representation
of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for
the accuracy, completeness or usefulness of any postings or the qualifications
of any person responding. Please consult a expert or seek the services of an
attorney in your area for more accuracy on your specific situation. Please note
that our forums also serve as mirrors to Usenet newsgroups. Many posts you see
on our forums are made by newsgroup users who may not be members of MyLounge.com
Term of Service
vBulletin v3.0.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.