I am working on a self service portal as part of extension of the Microsoft Dynamics.
I have a web scenario where I am logging Cases directly in MSD from Web using the Web portal.
I am able to log new case and insert/retreive Notes/Artilces from the Case as part of discussions.
I also have one option to upload the attachements with the Note which is working fine for me.
The Issue comes when i try to download the attachments.
I am able to download only txt files correctly all other formats are always corrupted when i download the file.
Below is the code which i m using to download file
private void DownloadFile(string FileData, String FileName, int FileSize, String MimeType)
Response.ContentType = "application/x-unknown";
Response.AppendHeader("Content-Disposition", "attachment; filename=\"" + FileName + "\"");
For uploading the file i m using
Can please anyone help me on the issue that why is the file not downloaded correctly.
One thing more The attachments which are uploaded from web can be downloaded from the MSD Case correctly so there is no issue with uploaded format.
Thanks in Advance..!