xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: java.awt.image
Date Wed, 14 Apr 2010 18:47:04 GMT
Apparently, the InputStream is empty for some reason. That's why there's
no data in the data URL. And the String parameter to createDataURL needs
to be null or a valid MIME type (ex. "image/png").

See also:
http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/util/uri/DataURLUtil.java?revision=695225&view=markup

HTH

On 14.04.2010 10:19:56 pedro wrote:
> 
> Hi Jeremias
>    thanks for your answer.
>    i try 
>         String ur = dataURLUtil.createDataURL(bufferFile.getIn(),"RFC
> 2397");
>         and ur is     "data:RFC 2397;base64,"
> 
> then in my xsl i do that 
> 
> <fo:external-graphic scaling="uniform">									<xsl:attribute name="src">
> 	             	<xsl:value-of
> select="concat('url(',concat(heading/logo,')'))"/>
> 		</xsl:attribute>
> </fo:external-graphic>
> 
> but not works it say me I/O error while loading image: null
> 
> where i'm in fault?
> -- 
> View this message in context: http://old.nabble.com/java.awt.image-tp28229153p28239719.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message