iASP_Inet Component

Overview

iASP_Inet stands for Instant Active Server Page InterNEt Transfer. This component is used to get and put the desired files from iASP at the remote side via FTP. It accepts the appropriate arguments and works according to the given methods.

Use the following links to get more details:

METHODS

HOW TO COMMUNICATE? 

APPENDIX A                  

Appendix A : Lists the error constants and explains the reason of each error that occurred.
 

METHODS:

Up


iASP_Inet has the following three methods:


Definitions:
 

boolean FtpGetFile(String, String, String, String, String, boolean, int):  This method is used to get the desired Remote file from the FTP Server and save it to the specified path. Use the following syntax:

FtpGetFile("HostName","UserName","Password","RemoteFileName"."LocalFileName",boolOverwrite,Mode)

Property

Description

HostName  Name of the Host Machine where FTP Server runs.
User Name Name of the user to be connected to the FTP Server.
Password It provides security for the users data. It authorizes to communicate with the FTP Server.
RemoteFile File which exists at the remote side.
LocalFile  Local file by which the remote file is to be saved.
BooleanOverwrite A boolean variable asks whether to overwrite the present file or not.
Mode It has two modes, '1'  represents 'ASCII' and '2' represents 'Binary' mode. Choose any one mode.

 

boolean FtpPutFile(String, String, String, String, String, int): This method is used to transfer the Local file to the Ftp Server. Use the following syntax:

FtpPutFile("HostName", "UserName", "Password","RemoteFileName","LocalFileName",Mode)

Property

Description

HostName Name of the Host Machine where FTP Server runs.
User Name Name of the user to be connected to the FTP Server.
Password  It provides security for the users data.  It authorizes to communicate with the FTP Server.
RemoteFile File which is to be stored at the remote side
LocalFile  File which exists at the local side.
Mode  It has two modes, '1'  represents 'ASCII' and '2' represents 'Binary' mode. Choose any one mode.

 

long getLastError() : This method returns the last error that occurred during communication.

 

How to Communicate? Up

To communicate, the user needs to use the following three methods:


To start:

Write Visual Basic scripts on the notepad to communicate with the FTP Server.  Object needs to be created to get and put the desired files.

Use the FtpGetFile method to get the file from the FTP Server:

It gets the desired remote file from the FTP Server by reading the appropriate arguments mentioned in the bracket, and saves it to the local side.
 

Use the FtpPutFile method to transfer the desired file to the FTP Server:

Use the getLastError method to get the last error that occurred during the communication.

APPENDIX   A

Up


 

               Error

Constant

           Description
NO_ERROR

0

Represents no error.
UNKNOWN_HOST

1

HOST is not found.
USER_CANNOT_LOGIN 

2

The given password and login name are not correct. 
REMOTE_FILE_NOT_FOUND

3

File requested by the Get method does not exist at the  remote side.
LOCAL_FILE_NOT_FOUND

4

Local file is not present.
INVALID_PATH

5

Given path to Put the file is not valid.
ACCESS_DENIED

6

Access to Put the file at FTP Server is denied.
INVALID_MODE

7

The mode is not valid.

 

If you require technical support please send complete details about the problem you are having to support@halcyonsoft.com.


Copyright © 1998-2000, Halcyon Software Inc. All rights reserved.