jersey和angularjs从服务器下载zip文件

时间:2017-05-18 08:59:32

标签: java angularjs jersey

我正在尝试从我的web api控制器下载一个zip文件。它正在返回文件但我收到一条消息,当我尝试打开时,zipfile无效。在浏览器文件中看起来像这样:

PKj& JCDA.xsl =ks 8 W TuwNmd -ңxV Ļ~ xg? X HN W J H t $ $ h B m k B ,۝ k} { [( ka sɻ #Z h v>:$ q C- | D5 5M = 3Z7D N < ' Ǟ? H v s m8 z׊| d t P A ׁ} ç֙LDSA䓎IY< V / | 1} |ߵCQ; X

sid      name       2017-05-16   2017-05-17  con_missing  totl_atend  %           
-----   --------   ---------   ----------    --------     --------   ---
s1      nam1         present                         
s2      nam2         present                
s3      nam3         absent          
s4      nam4         present        
s5      nam5         present    

s1      nam1         present            
s2      nam2         present         
s3      nam3         absent          
s4      nam4         present        
s5      nam5         absent      

}

在客户端:

enter image description here 尝试使用application / zip

有什么想法吗?提前感谢您的回答。

0 个答案:

没有答案
相关问题