Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of problems occurs if we do not implement proper locking strategy?

1495


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1194


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1066


What is the difference between for xml raw and for xml auto?

1112


What are the properties of the transaction?

1069


What is in place upgrade in sql server?

1124


Why should you use or avoid select * statements?

1108


This question asked during interview, 2) At the end of each month, a new table is created for each bank that contains monthly metrics consolidated at the account level. The table naming convention is bankX_YYYYMM where X represents the numeric designation of the bank and YYYYMM indicates the 4 digit year and 2 digit month. The tables contain the following fields: name data type description account text account number registered boolean indicates whether the account is registered num_trans integer number of transactions made during the time period spend numeric(9,2) total spend during the time period a) Write a SQL query that will display the total number of transactions and total spend for "Bank1" during the 4th quarter of 2009. b) Write a SQL query that will display the total number of transactions and total spend at "Bank1" and "Bank2", broken out by registered vs. non-registered accounts, during January 2010 not sure what is correct answer and how to solve?

2561


What are different types of constraints?

997


What is a coalesce function?

1278


How can you append an identity column to a temporary table?

1068


Can one drop a column from a table?

1083


How efficient you are in oracle and SQL server?

1255


How to connect php with different port numbers?

1181


List out the different types of locks available in sql server?

1046