String data = Base64.encodeBytes( bos.toByteArray( ) );
String data = new String( Base64.encodeBase64( bos.toByteArray( ) ) );
	protected void okPressed( )	{		switch ( selectedType )		{			case URI_TYPE :				fCurrent = ImageImpl.create( uriEditor.getText( ).trim( ) );				break;			case EMBEDDED_TYPE :				fCurrent = EmbeddedImageImpl.create( uriEditor.getText( )						.trim( ), imageData );				try				{					BufferedInputStream bis = new BufferedInputStream( new URL( uriEditor.getText( )							.trim( ) ).openStream( ) );					ByteArrayOutputStream bos = new ByteArrayOutputStream( );					byte[] buf = new byte[1024];					int count = bis.read( buf );					while ( count != -1 )					{						bos.write( buf, 0, count );						count = bis.read( buf );					}					String data = Base64.encodeBytes( bos.toByteArray( ) );					( (EmbeddedImage) fCurrent ).setData( data );				}				catch ( Exception e )				{					WizardBase.displayException( e );				}				break;		}		super.okPressed( );	}