Dear all,

I really need some help about a problem with Cocoon and
serving static binary files. 
I would like to make available for download some .zip and .jar
files through Cocoon for some reasons.
So I followed the example given in the Cocoon Wiki pages about
serving static files.

I add the following lines in my sitemap :
<map:match pattern="**.jar">
   <map:read src="jars/{1}.jar"
mime-type="application/java-archive"/>
</map:match>

The problem is that the files are always transfered in text mode
whatever i do, so that the files are corrupted once downloaded.
(any 0A are replaced by 0D, and there is an additional
 0A at the end of the file)

I tried several other things without any success:
- In the sitemap i tried other mime types:
application/octet-stream, application/zip (for zip files), aso.

- on the client side (Windows 2000), i use IE 6, then mozilla
firebird 0.7.

nothing works !

my server environment is:
Linux Redhat 7.3
Cocoon 2.1m3 (with jetty)
j2sdk/jre 1.4.1

Any idea ?

Phou Ung

Acc�dez au courrier �lectronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34�/mn) ; t�l : 08 92 68 13 50 (0,34�/mn)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to