Hello!

I seem to have trouble with the results of downloading an Excel spreadsheet 
(XLS or XSLX) file using the following code:

 public Resolution getAttachment() {

        Attachment attachment = attachmentDao.read(getAttachId());
        if (attachment.getIns().getId().equals(getIns().getId())) {
                return new StreamingResolution
                (attachment.getContentType(), new 
ByteArrayInputStream(attachment.getData()))
                    .setFilename(attachment.getFileName());
        } 
}

The upload appears to happen just fine as I am able to open up the uploaded 
file and it renders like it should.  The downloaded file appears garbled.  
Attached is an image of the mess in Apple Numbers and it looks Similar in Libre 
Office.

Any help or ideas would be appreciated!

Thanks,
Joaquin
 

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to