|
@@ -50,6 +50,7 @@ import com.xt.jygl.accessory.entity.AccessoryEntity;
|
|
|
import com.xt.jygl.accessory.service.AccessoryService;
|
|
|
import com.xt.jygl.common.BaseWebCtl;
|
|
|
import com.xt.jygl.common.Constants;
|
|
|
+import com.xt.jygl.common.GlobalData;
|
|
|
import com.xt.jygl.common.SearchCondition;
|
|
|
import com.xt.jygl.common.Utils;
|
|
|
import com.xt.jygl.gkjcxx.gk.entity.GkEntity;
|
|
@@ -511,7 +512,7 @@ public class XkzxxCtl extends BaseWebCtl {
|
|
|
if (acc != null) {
|
|
|
try {
|
|
|
OutputStream toClient = response.getOutputStream(); // 得到向客户端输出二进制数据的对象
|
|
|
- FileInputStream is = new FileInputStream(acc.getFilepath() + acc.getFilename());
|
|
|
+ FileInputStream is = new FileInputStream(GlobalData.VIEW_FILE_PATH+acc.getFilepath() + acc.getFilename());
|
|
|
int ii = is.available(); // 得到文件大小
|
|
|
byte[] data = new byte[ii];
|
|
|
is.read(data); // 读数据
|