Re: WodFtpDLXCom GetData and PutData under Windows (General questions)
Kreso,
It works fine on XP.
Here is a code snippet of the dll that uses the library.
The dll has other functions for database operations and file parsing for the web application.
Option Explicit
Private Sftp As New wodFtpDLXCom
Private Sub Class_Initialize()
Sftp.LicenseKey = xxxx
Sftp.Blocking = 1
Sftp.Protocol = 1
mRemoteDir = /
End Sub
Function GetData(fName As String) As String
On Error Resume Next
Sftp.GetData mRemoteDir + fName
If Sftp.LastError = 0 Then GetData = Sftp.ListItem
On Error GoTo 0
End Function
I suspect that woddrazen has the actual problem.
The web application uses anonymous access on intranets, and I don't believe that either the IUSR_ or IWAM accounts will have rights to any user folder.
I was using the GetData and PutData for extra security, and was surprised that a file was being used. I did not that I could not easily read the temp file, even though the transferred files are text. For now I have changed my functions to use GetFile and PutFile with my own temp file in a folder within the web application virtual folder.
Perhaps the next version of FtpDLX can allow the temp folder to be changed using a property.
Thank you both for your quick response.
Complete thread:
- WodFtpDLXCom GetData and PutData under Windows Vis - Jerry, 2007-11-07, 17:38
- Re: WodFtpDLXCom GetData and PutData under Windows - woddrazen, 2007-11-07, 21:00
- Re: WodFtpDLXCom GetData and PutData under Windows - wodSupport, 2007-11-07, 21:14
- Re: WodFtpDLXCom GetData and PutData under Windows - Jerry, 2007-11-07, 21:53
- Re: WodFtpDLXCom GetData and PutData under Windows - wodSupport, 2007-11-07, 21:14
- Re: WodFtpDLXCom GetData and PutData under Windows - woddrazen, 2007-11-07, 21:00