Can COM supports file transferring from Client to server and vice versa?
if So, Can I get some sample code ?
Thanks
Pavan
No, it doesn't support files transmission, but you have a couple of options.
You could pass a file path as BSTR (the file could be inaccessible to the server depending on the file access restrictions in the filesystem and the server process privileges). You could pass IStream interface to the server and feed the file data via IStream.
Related
Thanks to Martin Prikryl for three examples on page Upload file to FTP site using VB.NET
But I keep getting "Catch e" errors about not logged on or can't connect to server on two different servers. I can FTP to these servers using PuttyFTP or FileZilla. In each case, the statement that passes the Server IP address and destination path/file shows an exception when the object is right-clicked.Notated screen cap while stepping thru Upload routine
Any help would be appreciated, please.
If by "PuttyFTP" (which does not seem to exist) you mean psftp, then you are using SFTP protocol, not FTP protocol.
These two are completely different and incompatible protocols.
There's no native support for SFTP in .NET. You have to use a 3rd party library.
How do I upload a file to an SFTP server in C# / .NET?
SFTP Libraries for .NET
I want to read some files from samba server, it looks like smb protocol is not one of the supported protocols by mule components like ftp, sftp etc.. So can anyone share some ideas including example implementation for doing this? Let us assume we want to read a csv file and save it to payload so that it can be used to pass to weave transform component.
Typically, you would mount the share via the operating system and then start the Mule Runtime process in the context of a user/grp that has the proper permissions to rw.
Can we store files (.txt and .xml files) on an ldap server? Is there any java sample client to write and read a file in an ldap server?
how to store and read files in ldap server using jndi?
You can't.
Can we store files (.txt and .xml files) on an ldap server?
No.
Is there any java sample client to write and read a file in an ldap server?
No.
Unless, in a specific object class, you can find a suitable binary-valued attribute, such as userCertificate.
I want to run a Tomcat app in Cloudbees. This app accesses some private and confidential properties from the file system. How could I access a file system on Cloudbees? Please note that it should be highly protected, e.g. 700 or similar.
Regards,
Marco
RUN#Cloud platform don't provide a persistent (nor distributed) filesystem. So you can't use it to as canonical store for those files, but need to use an external file store to match your security requirements, and copy them as application is starting (or lazy-load) to java.io.temp directory. As files are stored on RUN#Cloud there is no security issue as your server instance is fully isolated, and files will be deleted after application undeployed/passivated
So you can use Amazon S3 or comparable to store files
Another option is for you to attach properties to the RUN#Cloud instance as configuration parameters, and access them as System properties. See http://wiki.cloudbees.com/bin/view/RUN/Configuration+Parameters
If they data is modest in size - you could consider using properties - using the CLI you can set them using
bees config:set propertyName=value
you can then access that as a System property (for example) in your application. The properties themselves are stored encrypted by cloudbees.
I've actually moved to OpenShift since then and I solved the problem. Thank you for your answers
If I open a file in my C/C++/Java code using a pathname that goes to an nfs directory, how the does the read and write syntax work with NFS being stateless and all? I have tried but cant find an example code accessing NFS mounted files. My current understanding is that it is the job of the NFS client to keep state (like read and write pointer) and the application uses the same syntax.
A related question is regarding VFS and UFS. Are all files in a current unix machine accessed through their vnodes first and then (depending on local vs remote) inode or rnode structures?
NFS (short of file locking) is no different than local storage to user-level applications. It might be slower, or it might drop out unexpectedly, but that can happen to local storage too. That's probably why you can't find specific NFS-centric example code.