cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From beyaNet Consultancy <beya...@ntlworld.com>
Subject Re: Referencing inline images - How to?
Date Mon, 16 Feb 2004 22:04:03 GMT
Simon,I can save the image in Netscape and then load it up into IE 
without any problems. Does IE support src="data:image/jpeg;base64 ???
On 16 Feb 2004, at 21:48, Simon Mieth wrote:

> Hi,
>
>
> On Mon, 16 Feb 2004 16:51:27 +0000
> beyaNet Consultancy <beyanet@ntlworld.com> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


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


Mime
View raw message