[Clamav-devel] Question have an about LibClamAV.dll
Shanmugam, Suresh (Conduent)
Suresh.Shanmugam at conduent.com
Mon Apr 10 14:50:34 EDT 2017
Hi Brandon Perry,
Okay. If you don't mind. Do you have any samples of implementation using stream?. If you have please share to me.
Sent using Boxer
On Apr 10, 2017 10:51 PM, Brandon Perry <bperry.volatile at gmail.com> wrote:
> On Apr 10, 2017, at 11:58 AM, Shanmugam, Suresh (Conduent) <Suresh.Shanmugam at conduent.com> wrote:
> Hi Brandon Perry,
> You are correct Perry. I am implementing the LibClamAV Library into C# application. So I need to get the File descriptor from the Stream and need to assign the value to "cl_scandesc" Native method. Am I right?.
Yes, I believe that’s correct.
> Suresh Shanmugam.
> -----Original Message-----
> From: clamav-devel [mailto:clamav-devel-bounces at lists.clamav.net] On Behalf Of Brandon Perry
> Sent: Monday, April 10, 2017 9:12 PM
> To: ClamAV Development <clamav-devel at lists.clamav.net>
> Subject: Re: [Clamav-devel] Question have an about LibClamAV.dll
>> On Apr 10, 2017, at 9:00 AM, Shanmugam, Suresh (Conduent) <Suresh.Shanmugam at conduent.com> wrote:
>> Hi Developers,
>> I've an query about doing the scan using byte help of LibClamAV.dll(win32). If anyone know the methods to pass the byte provide the details?.
>> I able to do the scan a physical path file. But not able to do with byte. Please help me.
> It sounds like you are interacting with libclamav from C#. ClamAV requires a rewindable file stream, so a byte array can’t be scanned on its own.
> You could map the byte array to a MemoryMappedFile.
> http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile <http://stackoverflow.com/questions/10806518/write-string-data-to-memorymappedfile>
> Then you could potentially pass the file descriptor for this to native library.
>> Suresh Shanmugam.
>> Please submit your patches to our Bugzilla: http://bugs.clamav.net
> Please submit your patches to our Bugzilla: http://bugs.clamav.net
Please submit your patches to our Bugzilla: http://bugs.clamav.net
More information about the clamav-devel