|  |  | 
 |  |  |                         }else{ | 
 |  |  |                             zipFileInput = ZipImg.zipToJpg(fPic, photoZipWidth, photoZipWidth) ; | 
 |  |  |                         } | 
 |  |  |                         boolean zipOk = new FileUtil().saveFile(zipFilePath, zipFileInput) ; | 
 |  |  |                         //如果压缩文件不存在或生成失败,则复制源文件 | 
 |  |  |                         File zipFile = new File(zipFilePath); | 
 |  |  |                         if (!zipFile.exists() || zipFile.length()==0) { | 
 |  |  |                             zipOk = new FileUtil().saveFile(zipFilePath, file.getInputStream()) ; | 
 |  |  |                         if(zipFileInput.available() > 0){ | 
 |  |  |                             new FileUtil().saveFile(zipFilePath, zipFileInput) ; | 
 |  |  |                         }else{ | 
 |  |  |                             //如果压缩文件不存在或生成失败,则复制源文件 | 
 |  |  |                             new FileUtil().saveFile(zipFilePath, file.getInputStream()) ; | 
 |  |  |                         } | 
 |  |  |                     } | 
 |  |  |                 } |