Bug 151381 [Smoke]The parameter didn't display in the web viewer
Description: Preview a parameter in the web viewer, it can't be previewed. Step to reproduce: 1. new a report and a parameter 2. drag it to the layout 3. preview it in the web viewer Actual result: the parameter is not displayed
core/org.eclipse.birt.core/src/org/eclipse/birt/core/data/DataTypeUtil.java
* @param source
	 * @return byte array
	 * @throws BirtException
	 */
	public static byte[] toBytes( Object source ) throws BirtException
	{
		
		if ( source == null )
			return null;
		if ( source instanceof byte[] )
			return (byte[]) source;
		else
			throw new BirtException( pluginId,
					ResourceConstants.CONVERT_FAILS,
					new Object[]{
							source.toString( ), "Binary"
					},
					resourceBundle );
	}
	/**
	 * Converts a Java class to its corresponding data type constant
	 * defined in DataType 
	 */
	public static int toApiDataType( Class clazz )
	{
		if ( clazz == null )
			return DataType.UNKNOWN_TYPE;
		if ( clazz == DataType.AnyType.class )
			return DataType.ANY_TYPE;
		else if ( Integer.class.isAssignableFrom( clazz ) )