Hi,
On Mon, 16 Feb 2004 16:51:27 +0000 beyaNet Consultancy <[EMAIL PROTECTED]> wrote: > Simon, > thanks for the tip you gave earlier. It works fine in > Netscape but is a broken image in IE. What am I doing > wrong? > > My xsp looks like this: > > byte[] photoa = artist.getArtistPhoto1(); > > <!-- base64 encode byte array --> > String newPhoto = > Base64.encodeBytes(photoa); > > <!-- remove spaces from string --> > String newPhoto1 = > spaceRemover.trim(newPhoto); I think you dont need this. If your byte-array holds the image, then the encoded String hold this bytes without erasable whitespaces and if there a Whitespace it should be there. ;-) > </xsp:logic> > <page> > ........ > <svg width="200" height="200"> > <xsp:element name="image"> > <xsp:attribute > name="width">200</xsp:attribute><xsp:attri > bute > name="height">200</xsp:attribute><xsp:attr > ibute > name="src">data:image/jpeg;base64,<xsp:expr>newPhoto1</xs > p:expr></xsp: attribute> > </xsp:element> > </svg> > </page> > > My sitemap looks like this: > > <map:match pattern="frame/*.jpg"> > <map:generate type="serverpages" > src="xsp/artist-details.xsp" > /><map:serialize type="svg2jpeg"/> > </map:match> > > many thanks in advance > Can you save the image in Netscape or use something like wget and open in IE with the same error? You can test the svg with a static image from the filesystem? I use encode images with filter, that works in IE. So i dont now where the problem is. I remember there were problems with IE and the svg/jpeg/png serializer, but i thing this is solved. Maybe the mail-archive can help you. Best Regards, Simon --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]