On Tue, 17 Aug 2004 09:37:46 +0200, Bob Bedford wrote:
Hi Terence, thanks for replying
put your base64 string inside a cdata tag <pic>
<![CDATA[
...insert base64 string here...
]]>
</pic>
The CDATA tag already exists. My problem is what to do with it !
Do I have to put the base64 string in a $variable then save it in a file,
most probably I must decode the base64 string....my problem is once I
encounter this tag, what should I do !
I've looked in php.net and google, but couldn't find any answer.
Bob
After reading the characters within the PIC tag (btw, why are all your
tags uppercase?) into a $variable, you may need to decode it (look at your
encoded attribute of the PICTURES tag). At this point, you have the image
data and file name. Open a file output stream, set the binary mode on the
stream, write the image data, then close the stream (this should
automatically flush the stream).
HTH,
La'ie Techie