Bug 143068 Update the way that viewer sets the image cache folder.
Use this code segment below to set image cache folder. HTMLRenderContext ctx = new HTMLRenderContext(); ctx.setImageDirectory("images"); HashMap map = new HashMap(); map.put(EngineConstants.APPCONTEXT_HTML_RENDER_CONTEXT, ctx); task.setAppContext(map); The one related to 132063
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
public void setContext( Object context, InputOptions options )
	{
		HttpServletRequest request = (HttpServletRequest) options
				.getOption( InputOptions.OPT_REQUEST );
		ServletContext servletContext = (ServletContext) context;
		ReportEngineService.getInstance( ).setEngineContext( servletContext,
				request );
	}
	public Map getParsedParameters( IViewerReportDesignHandle design,
			InputOptions options, Map parameters )
			throws ReportServiceException
	{
		Locale locale = (Locale) options.getOption( InputOptions.OPT_LOCALE );
		Collection parameterList = getParameterDefinitions( design, options,
				false );
		Map paramMap = new HashMap( );
		Boolean isDesignerBoolean = (Boolean) options
				.getOption( InputOptions.OPT_IS_DESIGNER );
		boolean isDesigner = ( isDesignerBoolean != null ? isDesignerBoolean
				.booleanValue( ) : false );
		IGetParameterDefinitionTask task = getParameterDefinitionTask( design );
		IReportRunnable runnable = getReportRunnable( design );
		Map configMap = runnable.getTestConfig( );
		for ( Iterator iter = parameterList.iterator( ); iter.hasNext( ); )
		{
			ParameterDefinition parameterObj = (ParameterDefinition) iter
					.next( );
			String paramValue = null;
			Object paramValueObj = null;
			String paramName = parameterObj.getName( );