Manas Sahu

Manas Sahu

  • 1.7k
  • 160
  • 6.2k

How to download a file which is in binary format in csharp

Nov 8 2019 4:59 AM
MXResumeWordDoc resumeWordDoc = new MXResumeWordDoc();
resumeWordDoc.LoadResumeWordDocByDID(neo as Neo, applicationID);
var isResumeLoaded = resumeWordDoc.LoadResumeWordDocByDID(neo as Neo, applicationID);
if (isResumeLoaded)
{
var binaryData = resumeWordDoc.Elements.BinaryData.Value;
response.Results.Add(Convert.ToBase64String(binaryData));
}
this abovecode gives me the results in binary format.
But i want to get the file downloaded based on the format.How to do it????

Answers (2)