Hello Mary !
the following shows how to unzip the a zip file, get the file names etc. It will help you.the classes you need are in java.util.zip.*;
when you get the zip file from the DB,create a zip file as follows:
ZipFile zipfile = new Zipfile(filename);
then: get the entries in the zip file:
Enumeration entries = zipfile.entries();
then you can go through all of them
while(entries.hasMoreElements())
{
//get the entry
ZipEntry entry = (ZipEntry)entries.nextElement();
//get file name
String name = entry.getName();
//parse the name
if(name.substring(..)){}
//OR
StringTokenizer st = new StringTokenizer(name,".");
----- so on-----
}//end while
Hope that helps
-Sri