Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
    Bookmark Topic Watch Topic
  • New Topic

File Lock using Java

 
Sumita Prasad
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,
This is the problem statement,
In our project we are using ftp to transfer zip files from different machines.
Once the file get's transferred the local machine it is picked up by the application running on the local machine.Both this application is running in asynchronous maode.
The problem is, some time application running in the local machine,tries to pick up the file before it get's fully transferred, there by giving some error, such as invalid content.
Is there any way to prevent this, i.e. to make the file visible only after, the file is completely transferred.
Thanks
Sumita
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi:
Welcome to Javaranch. Glad to see you.
I would request that you use tha appropriate forum. Seems to me like this post belongs in the [url=http://"http://www.coderanch.com/forums/f-38/Streams"]I/O and Streams[/url] forum.
Hope you do participate actively.
Thanks.
- madhav
 
John Wetherbie
Rancher
Posts: 1449
  • Mark post as helpful
  • send pies
  • Report post to moderator
Madhav's observation sounds right to me. Moving this to I/O and Streams.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Report post to moderator
As it happens, this is a duplicate of a post we've already answered in Advanced here (even though yes, IO would have been more appropriate). Sumita, please don't duplicate posts - it just creates more work for us. Thanks.
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!