In my application I have a process which picks the scanned
files (tif format) from a shared location and it links to
application and shown on it.The actuall issue is that my
process picks the file before it is completly written or
scanned which results in displaying few parts of the image
or incomplete image.I need to check if the file is not
completly scanned or written then do not link it to
application.Please help if any body tell me that how can i
check that file is in written phase or locked through
DTS.thanking you in advance
Answer / Avanish Kumar Pandey
To prevent your process from picking incomplete TIFF files, you can implement the following approach:
1. Use File System Watcher or a similar technology to monitor changes in the shared location for new files and wait until the file's last write time remains unchanged for a certain period (e.g., 5 minutes) before picking it up.
2. You can check if the TIFF file is locked by scanner software using APIs provided by your application or by using the `File.Exists` method in C# to ensure the file is not being accessed by another process.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain transaction server explicit transaction?
What is faster join or union?
What is primary key and example?
How many instances per computer are there in sql server 2000?
What is trigger ?
How do I change my passwords (database, LDAP, and so on) without causing an outage?
Which is better in performance - CONSTRAINT or TRIGGER over a column which restricts say an input of particular value in a column of a table?
Is it possible in sql table to have more than one foreign key?
What is indexing?
Is it safe to delete log files?
What is serializable?
WHAT OPERATOR PERFORMS PATTERN MATCHING?
2 Answers CarrizalSoft Technologies, CTS,
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)