We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

After uploading a downloaded excel file- the uploaded file is getting corrupted

Hi Team,



We are using Aspose.Cells for excel downloading and uploading activities in our application.

We noticed that after uploading a downloaded excel file (.xls), the uploaded file is getting corrupted. Please help us to resolve this issue.



we are using the following code to upload.





using (Stream file1 = File.OpenWrite(fileFullPath))// fileFullPath= path for new file where the data to be written.

{

file1.Write(uploadRequest.FileData, 0, uploadRequest.FileData.Length); // uploadRequest.FileData= byte[] data to be written to the file.

}



Regards,



Samir Ray

Hi Samir,


I am afraid, your inquiry does not seem to be related to the Aspose.Cells APIs. Could you please share an executable sample application replicating the problem for better understanding?

Hi,


Thanks for providing us details.

Your provided code segment does not involve Aspose.Cells APIs.
Could you provide your template Excel file and sample code using Aspose.Cells APIs, so we could look into your issue soon. And, if you have generated the Excel file via Aspose.Cells APIs, does the file open fine into MS Excel manually? If this is the case, there must be an issue with your own code in your application, so kindly evaluate it.

Thank you.