private void fileUp ()
    {
        int c = 0 ;
        TelnetOutputStream tos = null ;
        byte[] bytes = null ;
        FileInputStream fis = null ;
        String Filename = null ;
        //
        Filename = this.TF_Path.getText () + this.TF_Filename.getText () ;
        Filename = "c:\\a.pdf" ;
        String DebugLine = "" ;
        try
        {
            this.aftp.binary () ;
            DebugLine = "fis" ;
            fis = new FileInputStream ( Filename ) ;
            DebugLine = "tos" ;
            this.aftp.cd ( "/movie/User/" ) ;
            tos = this.aftp.put ( this.TF_Filename.getText () ) ;
            Show.show ( "Begin Upload " + Filename ) ;
            while ( ( c = fis.read ( bytes ) ) != -1 )
            {
                tos.write ( bytes , 0 , c ) ;
            }
            Show.show ( "End Upload " + Filename ) ;
            //tos.flush () ;
        }
        catch ( FileNotFoundException ex )
        {
            DoException.showException ( "action:up:FileNotFoundException" , ex ) ;
        }
        catch ( IOException ex )
        {
            DoException.showException ( "action:up:IOException" , ex ) ;
        }
        catch ( Exception ex )
        {
            DoException.showException ( "action:up:Exception" , ex ) ;
        }        finally
        {
            try
            {
                if ( tos != null )
                {                    tos.close () ;
                }
                if ( fis != null )
                {
                    fis.close () ;
                }
            }
            catch ( IOException ex1 )
            {
            }
            Show.show ( "DebugLine=" + DebugLine ) ;
        }    }报告:
### ### ERR : BEGINUser Message  :  action:up:Exception           Exception Time:  Tue Aug 09 14:46:14 CST 2005toString      :  java.lang.NullPointerExceptiongetMessage    :  nullgetCause      :  null*** *** ERR : END
DebugLine=tos