Our website has a form which allows users to upload image files (png,gif,jpeg and pdf).
Once uploaded, the website sends the file (server to server) to the back office api, which then saves the image to disk.
In the back office, our employees can watch the images uploaded by our customers in a browser.
Security wise, If a client sends an infected JPEG file, and our employee open it in a browser, this may cause security issues.
Besides anti-virus, I want to sanitize the files before they get written to disk.
If I convert jpeg to png and png to jpegs, will this make them safe to process?
Is there any simple way in .NET to secure file just by converting it, or maybe another way besides conversion?