473,657 Members | 2,934 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Virus scannnig document before saving to database

Hi all,
..net framwork 1.1
sql server 2000

I have a vb.net winforms application using webservices\ remoting to
upload documents\ images to the webserver and i am gong to store them in the
sql server 2000 database and before these are saved to the
database client wants me to scan them for any kind of viruses i.e do a virus
scan,
how can i do that, have any body done this before. if it was a matter of
just saving those documents staight to the file system of webserver i could
have invoked the local APIs of the anti virus running on the server but in
this case when i am storing them to the database there might be two way i can
do the upload
1. i would want to upload them from the cient in chunks like in pieces
of might be 64 K and store them in the database a chunk at a time, so there
will be multiple rows for the same documents in the database. This mean i
will never be having the whole document in memory on the webserver at any
point? how can i virus scan ? any suggestions??

2. the second option is i take the whole of the document and upload it to
the database in one shot and insert it as a single row in the database. This
mean at one point in time i will be having the whole document in memory of
the web server, scratching my brain here, can i use it to somehow virus scan
it , if so how?

please suggest

thanks
sameer

does trend or Symatec offer a webserivce that i can use to scan these
documents OR is there any API from TREND or SYMATEC installed on that server
that i can use for this purpose.

thanks
sameer

Oct 18 '06 #1
3 2450
Save the file to a temp file and scan it. Then insert it from the temp file
to the database.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.

"sameer" <sa****@discuss ions.microsoft. comwrote in message
news:FB******** *************** ***********@mic rosoft.com...
Hi all,
.net framwork 1.1
sql server 2000

I have a vb.net winforms application using webservices\ remoting to
upload documents\ images to the webserver and i am gong to store them in
the
sql server 2000 database and before these are saved to the
database client wants me to scan them for any kind of viruses i.e do a
virus
scan,
how can i do that, have any body done this before. if it was a matter of
just saving those documents staight to the file system of webserver i
could
have invoked the local APIs of the anti virus running on the server but in
this case when i am storing them to the database there might be two way i
can
do the upload
1. i would want to upload them from the cient in chunks like in pieces
of might be 64 K and store them in the database a chunk at a time, so
there
will be multiple rows for the same documents in the database. This mean i
will never be having the whole document in memory on the webserver at any
point? how can i virus scan ? any suggestions??

2. the second option is i take the whole of the document and upload it to
the database in one shot and insert it as a single row in the database.
This
mean at one point in time i will be having the whole document in memory of
the web server, scratching my brain here, can i use it to somehow virus
scan
it , if so how?

please suggest

thanks
sameer

does trend or Symatec offer a webserivce that i can use to scan these
documents OR is there any API from TREND or SYMATEC installed on that
server
that i can use for this purpose.

thanks
sameer

Oct 18 '06 #2
Kevin, thanks for your replay but that means all my operations would not be
sql server, i.e i can not wrap it all in one sql server transaction. any
other suggestion.

thanks

"Kevin Spencer" wrote:
Save the file to a temp file and scan it. Then insert it from the temp file
to the database.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.

"sameer" <sa****@discuss ions.microsoft. comwrote in message
news:FB******** *************** ***********@mic rosoft.com...
Hi all,
.net framwork 1.1
sql server 2000

I have a vb.net winforms application using webservices\ remoting to
upload documents\ images to the webserver and i am gong to store them in
the
sql server 2000 database and before these are saved to the
database client wants me to scan them for any kind of viruses i.e do a
virus
scan,
how can i do that, have any body done this before. if it was a matter of
just saving those documents staight to the file system of webserver i
could
have invoked the local APIs of the anti virus running on the server but in
this case when i am storing them to the database there might be two way i
can
do the upload
1. i would want to upload them from the cient in chunks like in pieces
of might be 64 K and store them in the database a chunk at a time, so
there
will be multiple rows for the same documents in the database. This mean i
will never be having the whole document in memory on the webserver at any
point? how can i virus scan ? any suggestions??

2. the second option is i take the whole of the document and upload it to
the database in one shot and insert it as a single row in the database.
This
mean at one point in time i will be having the whole document in memory of
the web server, scratching my brain here, can i use it to somehow virus
scan
it , if so how?

please suggest

thanks
sameer

does trend or Symatec offer a webserivce that i can use to scan these
documents OR is there any API from TREND or SYMATEC installed on that
server
that i can use for this purpose.

thanks
sameer


Oct 19 '06 #3
uoKevin ,
i have decided to store my documents in the database, but before that i want
to scan for viruses and some of you had mentioned that the antivrus comes
with a console utility appilcation that i can use to pass my stream of
document through it and it will let me know if there is a virus or not. If
you know for sure which antivirus has this console utility please let me know
and i will purchase that antivirus.

"Kevin Spencer" wrote:
Save the file to a temp file and scan it. Then insert it from the temp file
to the database.

--
HTH,

Kevin Spencer
Microsoft MVP
Chicken Salad Shooter
http://unclechutney.blogspot.com

A man, a plan, a canal, a palindrome that has.. oh, never mind.

"sameer" <sa****@discuss ions.microsoft. comwrote in message
news:FB******** *************** ***********@mic rosoft.com...
Hi all,
.net framwork 1.1
sql server 2000

I have a vb.net winforms application using webservices\ remoting to
upload documents\ images to the webserver and i am gong to store them in
the
sql server 2000 database and before these are saved to the
database client wants me to scan them for any kind of viruses i.e do a
virus
scan,
how can i do that, have any body done this before. if it was a matter of
just saving those documents staight to the file system of webserver i
could
have invoked the local APIs of the anti virus running on the server but in
this case when i am storing them to the database there might be two way i
can
do the upload
1. i would want to upload them from the cient in chunks like in pieces
of might be 64 K and store them in the database a chunk at a time, so
there
will be multiple rows for the same documents in the database. This mean i
will never be having the whole document in memory on the webserver at any
point? how can i virus scan ? any suggestions??

2. the second option is i take the whole of the document and upload it to
the database in one shot and insert it as a single row in the database.
This
mean at one point in time i will be having the whole document in memory of
the web server, scratching my brain here, can i use it to somehow virus
scan
it , if so how?

please suggest

thanks
sameer

does trend or Symatec offer a webserivce that i can use to scan these
documents OR is there any API from TREND or SYMATEC installed on that
server
that i can use for this purpose.

thanks
sameer


Nov 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1907
by: Leonard | last post by:
I want to create a Word document that will display data from a database. I don't want to create the file on the server, I just want to stream it out directly to the user. When they click a button, the Word Save Open window will open, and allow the user to Save or Open the document in Word. I know I need to use response.binarywrite, but I don't know if it is possible to create the binary object without first saving it to a temporary file....
3
5381
by: Richard Fritzler | last post by:
I was given the task of designing a complete web based document prep system. In simplest terms (using a msword explanation) create a database of merge fields, and a library of templates. Allow the webuser to select the template, merge his DB record, and produce a formatted document that can be printed or downloaded. We need to do this without specialized software on the client, since it will be universally available to webusers. We...
4
15822
by: Otis Hunter | last post by:
I have been given an Access Database which contains a table that has an OLE object field that contains a Word document. That table contains hundreds of records. I would like to find out how I can write a VB script, to be executed either within Access or executed at the CMD prompt, which will loop through all the records and open the document object and save it to a Word document that I can access from Windows Explorer. An additional info...
2
1822
by: manning_news | last post by:
Has anyone had a problem with Access 2003 not saving their coding? I've been using 2003 for a couple of months now and just this week noticed that some coding I'd done for a database was not there anymore. I reentered it and didn't have any problems for a couple of days. Today I entered some coding, saved it, opened another database, and when I opened my original database again, the coding I had entered was missing. Access 2000 always...
2
5162
by: Andrew Robinson | last post by:
I am working on an application and the customer would like the ability for users to attach / upload a Word document. This document will be stored on the web server directly into SQL and later be viewed by the customer after being replicated across a SQL Server. I am not too worried about virus risks on the web server since the upload will be saved directly to SQL but what are my risks on the desktop machines that are used to later view...
0
2204
by: sameer | last post by:
Hi all, ..net framwork 1.1 sql server 2000 I have a vb.net winforms application using webservices\ remoting to upload documents\ images to the webserver and i am gong to store them in the sql server 2000 database and before these are saved to the database client wants me to scan them for any kind of viruses i.e do a virus scan, how can i do that, have any body done this before. if it was a matter of
1
2434
by: Technicalprob | last post by:
Problem: I designed a small access database and created tables and relationship between them. The database works fine and have no problem. I have stored the database in My Documents on my hard disk but the moment I put it in a folder on the shared network it does not work. The database will open fine 3 or 4 times but 5th time I try to open it will give an error message. Error message: Microsoft Office has detected that this database is in...
6
11721
by: L. Ximenes | last post by:
Greetings, I've recently been struggling with the idea of writing an XML document based on user-submitted content using javascript. Using various instances of document.write on a newly opened window I succeeded in the task of outputting a perfectly valid XML document, although I have been experiencing a few problems. If I look at the source code of the new window, what I have is a perfect XML document, such that if I copy the source...
0
7134
by: studentofknowledge | last post by:
hi my knowledgeable comrads I have created a web form using html, css with the addition of some basic javascript validation. Although now im having trouble to insert this information to my local SQL database - can someone point me in the right direction please or refer me to a good example/pre written code? I am using Vista Business operating system in conjunction with SQL server 2005 express edition, SQL server service pack 2, SQL server...
0
8302
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8601
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.