Getting error in sending MMS:
IOException: The process cannot access the file 'C:\Users\DELL\Source\Repos\CosmeticsOms\Oms.Web\wwwroot\files\RingCentral\test_4e28.jpg' because it is being used by another process.
MY CODE:
var attachment = new Attachment { fileName = model.FileName, contentType = imageType, bytes = System.IO.File.ReadAllBytes(filePathCopy) };