Bug 150347 Support binary stream as preview image.
See 144843. We need model to save binary strame as report preview image. Currently, preview image is an external image. Maybe need a type to distinguish preview image type.
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/command/NameSpaceRecord.java
private void updateAllElementReferences( ReferenceableElement referred )
	{
		List clients = referred.getClientList( );
		Iterator iter = clients.iterator( );
		while ( iter.hasNext( ) )
		{
			BackRef ref = (BackRef) iter.next( );
			DesignElement client = ref.element;
			Object value = client.getLocalProperty( root, ref.propName );
			if ( value instanceof ElementRefValue )
			{
				ElementRefValue refValue = (ElementRefValue) value;
				refValue.unresolved( refValue.getName( ) );
				referred.dropClient( client );
				client.resolveElementReference( root, client
						.getPropertyDefn( ref.propName ) );
			}
			else if ( value instanceof List )
			{
				List valueList = (List) value;
				for ( int i = 0; i < valueList.size( ); i++ )
				{
					ElementRefValue item = (ElementRefValue) valueList.get( i );
					if ( referred == item.getElement( ) )
					{
						item.unresolved( item.getName( ) );
						referred.dropClient( client );
						client.resolveElementReference( root, client
								.getPropertyDefn( ref.propName ), item );
						break;