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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to