[base] downloading files

2006-12-19 Thread Keith Ching
I have a List of File objects. what is the best way to zip them all together and download it? Is there a way to get the Httpresponse object from inside a plugin? If the files are really large, would it better to write the outputstream to the local filesystem and have the user find and

Re: [base] downloading files

2006-12-19 Thread Nicklas Nordborg
Keith Ching wrote: I have a List of File objects. what is the best way to zip them all together and download it? I assume that you want to this with a plugin. I think the best way is to create a new File (net.sf.basedb.core.File) object and then use java.util.zip.ZipOutputStream for writing

Re: [base] downloading files

2006-12-19 Thread Keith Ching
Hi, I am getting a peculiar stack trace upon trying to define the plugin. do you think it could be caused by using Base2.2 classes in a Base2.1.1 codebase? i tried to include the revised classes in the plugin JAR.. but i suppose this probably doesn't work.. i had to include Base2.2 versions of

Re: [base] downloading files

2006-12-19 Thread Keith Ching
sorry.. i'm careless.. i called my jar file DownloadFilePlugins.jar instead of DownloadFilePlugin.jar and it couldn't find / load it but it threw a pretty impressive stack trace.. -keith Keith Ching wrote: Hi, I am getting a peculiar stack trace upon trying to define the plugin. do