> I'd like to have this VB client to be able to interact
> with my socket server to allow the users to "post"
> content to the repository.
You can use a standard MS ActiveX control... can't recall the exact name, MSInet?,
(may be a better alternative by now) to talk directly to a socket; once you've got a
connection you can turn on binary mode and send your data. I've done a file transfer
upload thing from VB->Java in this way, not the fastest thing I've ever seen (there's
little in the way of options for the VB control, tcp-nodelay might help if it can be
done, probably need a Win32 API hook). I can dig further if you're interested.
> As an alternate solution, is their a good way in Java to
> monitor the contents of a directory for when a file gets
> placed in the directory (for example as a result of an
> FTP upload)? How do you know the complete file is there?
Maybe have a thread that polls the directory contents every x seconds; but store
incoming files in a temporary location. When the temp file transfer is complete, move
it to the file directory because this should be an atomic operation where a partial
file can't be read from.
Cheers,
Joe
> Thanks
> Dave Bolt
> There is always plenty of bandwidth, just none for you.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]