fiz
Leonardo Vannucci
2018-09-19 a7fea618a7e5c86beb125b72862822780d2cbb2f
dg1cloud-core/src/main/java/it/digione/dg1cloud/controller/StartURPController.java
....@@ -193,7 +193,7 @@
193193 if ( "text/plain".equalsIgnoreCase(allegato.getContentType()) == true ) {
194194 dh = new DataHandler(new String(allegato.getBytes()), allegato.getContentType());
195195 } else {
196
- dh = new DataHandler(allegato.getBytes(), allegato.getContentType());
196
+ dh = new DataHandler(allegato.getBytes(), "application/octet-stream");
197197 }
198198 attachment.setData(dh);
199199 } catch (IOException e) {