Author: craigbtx | Posted on: 7/18/2008 11:42:11 AM | Views : 328

Currently I am uploading a file, using FTP, from the file system. it all works fine.

I have the content of the file in a variable before I write it to the file system.

Can I upload the file stored in a variable without first writing it to the file system??

-----------------------------

Function uploadFileUsingFTP(ByVal CompleteFTPPath As String, ByVal CompleteLocalPath As String, Optional ByVal UName As String = "", Optional ByVal PWD As String = "")

        'Create a FTP Request Object and Specfiy a Complete Path
        Dim reqObj As System.Net.FtpWebRequest = System.Net.WebRequest.Create(CompleteFTPPath)

        'Call A FileUpload Method of FTP Request Object
        reqObj.Method = System.Net.WebRequestMethods.Ftp.UploadFile

     ...

Go to the complete details ...