FTPBean

Questions and answers on developing, deploying and using plugins and JavaBeans

FTPBean

Postby Harry Catharell » Tue Jul 13, 2004 12:31 pm

I am now checking out this ftp bean and have connected to an internal ftp site using Johan's code snippet given in another thread under 'Methods' with no problem - hooray !

Can anyone point me to some documentation outlining the arguments which need to be passed to the bean for some operations ?

For example : putBinaryFile(String, String, number, FtpObserver)

I have no idea what an 'ftpobserver' is nor what the 'number' refers to !

I am assuming that the required strings are source and location for the file - but I may be wrong !?

Cheers
Harry Catharell
 
Posts: 812
Joined: Fri Sep 26, 2003 10:23 am
Location: Milton Keynes, England

Postby bcusick » Tue Jul 13, 2004 9:27 pm

Harry,

The best place for bean documentation is from the place that you got the bean from in the first place.

From entering the string you are having a hard time with into Google I found the bean, and then by opening the FTPbean.java file with a text editor (like it says to on the website to see the latest revisions) - I found the author's email address. Here's *part* of the header info in that file:

/*
* FtpBean Version 1.4.4
* Copyright 1999 Calvin Tai
* E-mail: calvin_tai2000@yahoo.com.hk
* URL: http://www.geocities.com/SiliconValley/ ... an/ftpbean
*
* COPYRIGHT NOTICE
* Copyright 1999 Calvin Tai All Rights Reserved.
*
* FtpBean may be modified and used in any application free of charge by
* anyone so long as this copyright notice and the comments above remain
* intact. By using this code you agree to indemnify Calvin Tai from any
* liability that might arise from it's use.
*
* Selling the code for this java bean alone is expressly forbidden.
* In other words, please ask first before you try and make money off of
* this java bean as a standalone application.
*
* Obtain permission before redistributing this software over the Internet or
* in any other medium. In all cases copyright and header must remain intact.
*/


Hope this helps,

Bob Cusick
bcusick
 
Posts: 1255
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Postby Harry Catharell » Wed Jul 14, 2004 9:58 am

Thanks for the assist, Bob.

I will certainly follow this lead up as I downloaded the bean from a direct link posted into an earlier topic thread under 'Methods' forum.

I think what I am also asking is whether there is a standard object naming reference for a 'FTPObserver' and thus it may not only be bean documentation but 'FTP' process itself that I need to understand more about !

For reference, I did play about with the putBinaryFile() command and got it to work by omitting the 'Number' & 'FTPObserver' arguments and simply telling it where the file is and where it was going !!

Thanks

Harry
Harry Catharell
 
Posts: 812
Joined: Fri Sep 26, 2003 10:23 am
Location: Milton Keynes, England

Postby Harry Catharell » Fri Jul 16, 2004 7:02 pm

Whilst I do not fully understand the difference between a 'bean' and a 'plugin' I am interested to know what the relative pros and cons are between using one or the other.

Thus if I have a both a Plugin and a Bean to handle FTP both of which have the same properties available, which one should I use !??

Also does anyone know if there is an FTP Plugin available for Servoy ?

Harry
Harry Catharell
 
Posts: 812
Joined: Fri Sep 26, 2003 10:23 am
Location: Milton Keynes, England

Postby Harry Catharell » Fri Jul 16, 2004 8:21 pm

From my previous post :

Also does anyone know if there is an FTP Plugin available for Servoy ?


The operative question is : can somebody recommend a FTP plugin from those obviously available !!

Cheers
Harry
Harry Catharell
 
Posts: 812
Joined: Fri Sep 26, 2003 10:23 am
Location: Milton Keynes, England

Postby jcompagner » Mon Jul 19, 2004 11:09 am

a bean is most of the time a GUI component that you can drop on the form surface. That doesn't know anything of servoy.
A plugin is specially written for servoy, and knows all the ins and outs. It can talk back ect.
A plugin can be much more complex then most beans.

For a ftp thing it would be much nicer to have a plugin then a bean. This way it can integrate much better and talk back when it is done (sending and loading of files can be threaded, happening in the background).

But someone with a bit of java know how must write the plugin.
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 14 guests