2017-02-17 8 views

答えて

1

あなたがバッファを作成してから返信

let buf = new Buffer(xls, 'binary'); 

return reply(buf) 
    .encoding('binary') 
    .type('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet') 
    .header('content-disposition', `attachment; filename=test-${new Date().toISOString()}.xlsx;`); 
のヘッダーとエンコーディングを設定する必要があります
関連する問題