I am developing some software in Microsoft .NET that will allow attachments to a message to be saved in a document store (e.g.. SharePoint). As part of this I need to check any uploaded documents for viruses before attempting any save into Sharepoint etc. My software receives the attachment as a byte array which I can then write to a folder on disk on a server being monitored by the Antivirus software. I have been told that the antivirus environment will detect any viruses as I am writing the file to disk but I am not sure what happens in my code - do I get some form of exception thrown within my .Net code.
Thanks
Nigel