Serving xlsx files

Hi there! Can anybody explain how to serve xlsx(excelize) file for download? I’ve tried c.Attachment, c.File but file is corrupted and has size bigger then original. With .txt files everything works well. And actually it will be better to serve this file without saving it on the disk…

UPDATE Sorry, it’s a frontend problem. But however, can excelize file to be served without saving on disk? How?