xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tonny Kohar <to...@kiyut.com>
Subject Re: xlink:href
Date Wed, 14 Mar 2007 14:33:11 GMT
Hi,

On Wed, 2007-03-14 at 10:57 +0100, Thomas.Hagen@blum.com wrote:
> 
> Hello, 
> 
> I have a problem displaying SVGDocuments with an embedded image in a
> JSVGCanvas. 
> 
> imageElement.setAttributeNS(null, "xlink:href",
> "data:image/jpg;base64," + Base64.encode(ip.getImageAsByteArray())); 
> svgRoot.appendChild(imageElement); 

Have you try
String xlinkNS = XMLConstants.XLINK_NAMESPACE_URI;
imageElement.setAttributeNS(xlinkNS,"xlink:href",....)

on the namespace part use the xlink namespace not null.

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


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


Mime
View raw message