# FTPBean

**URL:** <https://forum.servoy.com/t/ftpbean/2237>\
**Category:** Classic Servoy\
**Created:** [July 13, 2004, 10:31am UTC](https://forum.servoy.com/t/ftpbean/2237 "2004-07-13T10:31:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harry\_Catharell](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@Harry\_Catharell](https://forum.servoy.com/u/Harry_Catharell)\
**Post date:** [July 13, 2004, 10:31am UTC](https://forum.servoy.com/t/ftpbean/2237/1 "2004-07-13T10:31:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bcusick](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bcusick](https://forum.servoy.com/u/bcusick)\
**Post date:** [July 13, 2004, 7:27pm UTC](https://forum.servoy.com/t/ftpbean/2237/2 "2004-07-13T19:27:50Z")

</div>

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](mailto:calvin_tai2000@yahoo.com.hk)
- URL: [http://www.geocities.com/SiliconValley/ … an/ftpbean](http://www.geocities.com/SiliconValley/Code/9129/javabean/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

---

<div class="post-metadata">

**Author:** ![Harry\_Catharell](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@Harry\_Catharell](https://forum.servoy.com/u/Harry_Catharell)\
**Post date:** [July 14, 2004, 7:58am UTC](https://forum.servoy.com/t/ftpbean/2237/3 "2004-07-14T07:58:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Harry\_Catharell](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@Harry\_Catharell](https://forum.servoy.com/u/Harry_Catharell)\
**Post date:** [July 16, 2004, 5:02pm UTC](https://forum.servoy.com/t/ftpbean/2237/4 "2004-07-16T17:02:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Harry\_Catharell](https://avatars.discourse-cdn.com/v4/letter/h/e19adc/32.png) [@Harry\_Catharell](https://forum.servoy.com/u/Harry_Catharell)\
**Post date:** [July 16, 2004, 6:21pm UTC](https://forum.servoy.com/t/ftpbean/2237/5 "2004-07-16T18:21:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [July 19, 2004, 9:09am UTC](https://forum.servoy.com/t/ftpbean/2237/6 "2004-07-19T09:09:55Z")

</div>

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.
