for everyone who want to use this plug-in here is the sample code
sync on
sync rate 60
set display mode 640,480,32,1
compress=Zlib_CompressFileToFile("test.jpg","test.pak",1)
`memory=Zlib_DeCompressFileToMemory("test.pak")
make directory "test"
file=Zlib_DeCompressFileToFile("test.pak","test\test.jpg")
`size=Zlib_GetDecompressFileSize()
img$="test\test.jpg"
load image img$,1
delete directory "test"
do
paste image 1,0,0
`text 0,0,str$(size)
sync
loop
end
but the problem is the same with decompress into memory if anyone finds the solution for this problem please post it here.