I upload all kind of applications (like pdf,excel, images and txt etc) to sql database. But when I download .xlsx file I am getting below error
Excel found unreadable content in 'filename.xlsx'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes.
While downloading I am using below code to download for all files.
Dim decompressed As New AcedInflator
Dim bytearr As Byte() = decompressed.Decompress(DirectCast(sqldr.Item(1), Byte()), 0, 0, 0)
Response.AddHeader("Content-disposition", "attachment; filename=" & Filename)
Response.ContentType = "application/octet-stream"
'Write Array to Browser
Response.BinaryWrite(bytearr)
written = True
What should I do?