Hello, I have an SVG like this: 

<svg:svg version="1.1" width="175" height="175">
 <svg:g transform="scale(0.3)">
  <svg:g transform="translate(-20,-20)">
   <svg:image x="0" y="0" width="256" height="256"                              
 xlink:href="https://somewhere.nl/C00000302.png"; />
  </svg:g>
 </svg:g>
...

When I open it in the browser, it looks fine.
When I link to it from an HTML page in the browser, it does not show the 
underlying .png image.
When I rasterize it server-side to PNG, using Batik, it gives this error:

org.apache.batik.bridge.BridgeException: null:0
The URI "http://somewhere.nl/C00000302.png";
on element <image> can't be opened because:
The URI can't be opened:
Server returned HTTP response code: 406 for URL: 
https://somewhere.nl/C00000302.png
        at 
org.apache.batik.bridge.UserAgentAdapter.getBrokenLinkDocument(UserAgentAdapter.java:449)
        at 
org.apache.batik.bridge.SVGImageElementBridge.createBrokenImageNode(SVGImageElementBridge.java:993)
...

406 would mean "not acceptable", so I guess a mismatch in the accept headers. 
If this is the case, I would like to know how to tell Batik to also accept 
"image/png". But I would be surprised if it does not accept it by default.

I am very grateful for your responses.

Jeroen




------------------------------------

-----
To unsubscribe send a message to: svg-developers-unsubscr...@yahoogroups.com
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
----Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    svg-developers-dig...@yahoogroups.com 
    svg-developers-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    svg-developers-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to