【发布时间】:2011-10-24 11:44:39
【问题描述】:
我正在尝试从 FTP 检索 zip 文件,将其解压缩,并从中获取 xml 文件和图像文件并解析 xml,显示 xml 和图像的内容。
byte[] image = ftpClientService.getThumbnailInZip(customer.ftpUser,
customer.ftpPassword, customer.ftpHost, customer.ftpToWrapDirectory,
fileName)
FileOutputStream fos1 = new FileOutputStream("zip.img")
try {
fos1.write(image);
} finally {
fos1.close();
}
return [
command: this,
fileName: fileName,
applicationName: applicationName,
contentProvider: contentProvider,
operatingSystem: operatingSystem,
handSets: handSets,
zipImg:"zip.img" ]
我可以成功完成 xml 部分,我还可以从 zip 中以字节格式检索图像(我可以使用文件输出流将其转换为文件),
现在我被困在将图像发送到 gsp 并显示它。非常感谢任何意见。
谢谢
【问题讨论】: