When trying to 'Build' the document in my swing application with the
following code:

UserAgent userAgent = new UserAgentAdapter();
DocumentLoader loader = new DocumentLoader( userAgent );
BridgeContext context = new BridgeContext( userAgent, loader );
context.setDynamicState( BridgeContext.DYNAMIC );
GVTBuilder builder = new GVTBuilder();
builder.build( context, document ); <-- This line causes the exception

I receive the following exception:

The URI "data:image/jpeg;base64,/9j/4AAQS....<data removed to keep message
small>"
on element <image> can't be opened because:
JPEG URL is corrupt or unsupported variant

However, the SVG file opens fine in the Batik Squiggles application and on
Firefox. Even more weird - a small test application that I wrote does not
throw the exception even though this test application uses the same exact
code to build the document.

-- 
View this message in context: 
http://www.nabble.com/Exception-with-Embedded-Images-tf4158445.html#a11831094
Sent from the Batik - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to