Re: How to encode and read back binary data using Base64Binary
David Cahill <[email protected]> Tue, 26 Nov 2002 12:37:13 +0000
| Newsgroups | gmane.comp.java.sun.xml.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have converted my binary data into Base64 encoding. Do I now simply cut and paste this Base64 representation into my image element in the XML document I'm working on? How best do I extract and decode this image element when its stored in the database? Many thanks, David -----Original Message----- From: S R Krishnan [mailto:[email protected]] Sent: 21 November 2002 17:44 To: [email protected] Subject: Re: How to encode and read back binary data using Base64Binary yes, that is the only way to do it. Go to Oriley's website they have a Jar which you can download to convert your binary data into Base 64 encoding. before storing it into the element. S R Krishnan ----Original Message Follows---- From: David Cahill Reply-To: XML technologies in the Java Platform To: [email protected] Subject: How to encode and read back binary data using Base64Binary Date: Thu, 21 Nov 2002 15:42:37 +0000 Hi, I have an XML schema in which I want a few of the elements to contain an image rather than any textual data. I have specified each schema element I'm interested in to be of type Base64Binary (is this correct?). I have searched through my jdk1.3.1 documentation for information on this subject but havent come up with anything. I am totally new to this area. I'd greatly appreciate any advice on this subject. Many thanks, David ----------------------------------------------------- xml-interest: A list for discussing XML technologies in the Java Platform. To post, mailto:[email protected] Archives at: http://archives.java.sun.com/xml-interest.html To unsubscribe, mailto:[email protected] the following message; signoff xml-interest. ---------------------------------------------------------------------------- -- Help STOP SPAM with the new MSN 8 and get 2 months FREE*