cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject Re: .DOC and .PPT modifying
Date Fri, 19 Oct 2007 13:43:58 GMT
Luiz
 
If you reread Tobia's message below, he said :
 
"You will have to figure out how exactly the images are embedded in
the
file (I'd wager in CData sections, but I don't have such a file handy)

and work to obtain similar results yourself.  In the worst case
scenario
 you might have to write a piece of Java code to encode the images "
 
I think this implies you also have to write some code to _decode_ the
image
before you can display it -  Cocoon can handle the XML part.
 
Derek


>>> "Luiz Antonio Falaguasta Barbosa" <luiz.barbosa@gwe.com.br>
2007/10/19 03:36 PM >>>
Hi Philippe, 

I tried to put (through notepad) this piece of code into a pre existent
XML file (saved into MS Word) and the image didn't appear.

What is wrong?

Does it work only when we use Cocoon or one of MS Office applications,
because they know how to put this kind of information into? 

Thanks in advance!

Luiz

On 10/19/07, Philippe Gauthier - INSERM SIRH
<philippe.gauthier@tolbiac.inserm.fr > wrote:

Tobia Conforto a écrit :
> Luiz Antonio Falaguasta Barbosa wrote: 
>
>> using Cocoon includes putting images into the pure XML files
>> (saved by MS Office 2003) too, right?
>>
>
> If (and only if) those file formats really are valid XML, there's 
> nothing in them that Cocoon can't handle.
>
> You will have to figure out how exactly the images are embedded in
the
> file (I'd wager in CData sections, but I don't have such a file
handy) 
> and work to obtain similar results yourself.  In the worst case
scenario
> you might have to write a piece of Java code to encode the images as
an
> XML fragment in the same way as the format requires... no big deal. 
>
>
> Tobia
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
> For additional commands, e-mail: users-help@cocoon.apache.org 
>
For info here is a fragment of office xml 2003 format showing an image
encoded in base64 : 
<! --------------------------------- -->
<w:pict>
                            <w:binData
w:name="wordml://0300000E.png">iVBORw0KGgoAAAANSUhEUgAAALQAAAAVCAIAAABg71MuAAABvUlEQVR4nO2WwW4CIRCGOexNH8BH

2b5ST3ptejFpetVTX0dv8ih9AD3XNRhKBxgGZllIOl9MjCwz8zP+Cww/p5M6n5UgeAwPZ+z3rWUI
PTKYr+v4chvHtlKEflhpvdaXpzkmZ3xvd20FCf2wOR5+zSEIPmIOIYqYQ4jCMsfX58fr2zt/Dj/W
ziwImRc37TJrr5cQmgOkwDPWaG5V3OXUdgYzvLkzlBwr89Lt21ImLMMck/tAJbCZmwmIDj9DbJBS

VKVeCBBrflqRrngbwhSWNR8MxuThtZKDlNK+WgM0B+ga/S9JblzBDMmo4vPbLwc6jldJ2g48xfuT
XLt9u/DGBs8dfLCs7YbZjhVKMdfa7mCl3ThYLis81x/FYqqeR8VtX/TO4atxN/bZG8RJiAsLPiVu
gctT3PaAOSi3BybAtrbiMuXo4MJiT3O3HI7CLHLbTt053ET8RhMvccEJRCcFy9F9n3u7xPuDi7GD

QXnMzpe13RA2B35r80eQGmCdlELJp0Ql+CrwkAJh+Oo4LSVmjoXktt3yxxxV93ahW2JeGSiThP/J
0xwrrTfHQ1spQj9MflDWHGt9mT5N9QjdcQdyDr1GSkjRjwAAAABJRU5ErkJggk==
                            </w:binData>
                            <v:shape id="Image3" o:spid="_x0000_i1028"

type="#_x0000_t75"
style="width:135pt;height:15.75pt;visibility:visible">
                                <v:imagedata
src="wordml://0300000E.png"
o:title=""/>
                            </v:shape>
                        </w:pict>
<! --------------------------------- -->

--
Philippe Gauthier
INSERM
DRH - SIRH
Tel: 01.44.23.62.57


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
For additional commands, e-mail: users-help@cocoon.apache.org 




-- 
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice,
and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


Mime
View raw message