Can anyone point me to a resource/s that I can use or refer to scan a document before uploading it to SQL Server? We are using Bitdefender as our antivirus. I am using asp.net webforms and C#. Thanks in advance.
Loading
Can anyone point me to a resource/s that I can use or refer to scan a document before uploading it to SQL Server? We are using Bitdefender as our antivirus. I am using asp.net webforms and C#. Thanks in advance.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mohamed Azarudeen ZRank #297 · 8.5K reputationPosted Jun 27, 2023, 10:45 AM EDT
To scan a document before uploading it to SQL Server in an ASP.NET WebForms application using C#, you can utilize the Bitdefender antivirus SDK/API. Here's a general approach you can follow:
1. Obtain the Bitdefender antivirus SDK: Visit the Bitdefender Developer Portal (https://www.bitdefender.com/business/developers/) and sign up to get access to their SDK/API. You will likely find the necessary documentation, guides, and code samples there.
2. Integrate the Bitdefender SDK: Follow the SDK's documentation to integrate it into your ASP.NET WebForms application. This may involve adding the required SDK references, setting up authentication, and configuring the scanning parameters.
3. Implement the document scanning process: Once you have the SDK integrated, you can create a C# method to handle the document scanning process. This method should be triggered before uploading the document to SQL Server.
- Retrieve the uploaded document from the ASP.NET WebForms file upload control.
- Use the Bitdefender SDK to scan the document for viruses or malware. Pass the document file path or stream to the scanning method provided by the SDK.
- Capture the scanning result (whether the document is clean or contains any threats).
- Based on the scanning result, proceed with uploading the document to SQL Server or display an error message to the user.
4. Handle the scanning result: Depending on the scanning result, you can take appropriate actions such as displaying a success message, saving the document to SQL Server, or informing the user about any detected threats.
Remember to carefully review the documentation and guidelines provided by Bitdefender to ensure the proper usage of their SDK and to handle any specific requirements or limitations.
Additionally, you may find it helpful to consult with Bitdefender's technical support or community forums for more specific guidance related to their antivirus SDK and its integration with ASP.NET WebForms applications.
Vishal YelveRank #178 · 13.6K reputationPosted Jun 28, 2023, 3:05 AM EDT
Hi Jes Sie,
refer below links
https://www.dynamsoft.com/blog/imaging/capture/sql-server-store-retrieve-images/
https://kelumkp.medium.com/scan-file-s-for-the-virus-before-uploading-to-server-5e4fabc5289c