problem with a file in a jar

I have a problem with a file in the my game jar. The name of the file is tilegame.dat. In this file I have all images (pngs), levels (my own format...), music (midi, wavs). I have stored all of them in this unique file without any compression... there is only a header to identify the contents of the dat and the content of the files. I have used only bytes to store the data. Ok, the problem is that when I put this file in the JAR it get compressed (by the jar) and the read method of the file does not work any more, if I turn off the compression it works fine... Ok, the problem is that I want the compression... how should I proceed?

[652 byte] By [luisoft] at [2007-9-30 6:06:49]
# 1

maybe these will help shed some light on the problem:

http://java.sun.com/developer/qow/archive/76/

http://forums.devshed.com/archive/t-126626

http://www.javaworld.com/javaworld/javatips/jw-javatip49.html

Just a simple Google search popped these up. I hope they help.

-JBoeing

jboeing at 2007-7-1 19:44:55 > top of Java-index,Other Topics,Java Game Development...
# 2
ok,tks, I have already solved my problem....I have just modified the form I was reading the resource...I has a buffer of 256 bytes, and I modified the loop for reading it and magically it worked...
luisoft at 2007-7-1 19:44:55 > top of Java-index,Other Topics,Java Game Development...