XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Jon GallegosSubject: Converting a CATDrawing to a Base-64
Author: Jon Gallegos
Date: 06 Nov 2009 11:16 AM
I have a xslt that converts images to Base-64 to load into Lotus Notes. I am using the following code

<xsl:value-of select="document(concat('adapter:Base-64?',$Drawing))"/>

and it has worked great for everything until today. I was processing a CatDrawing file (catia) and I get the following error

java.lang.OutOfMemoryError: Java heap space

I have attached the file. Is there a way I can convert a very, Very large image to Base-64?


Image34760TA0_J011M1______LIGHT_ASSY_FOOT_______________C4723590.CATDrawing

Postnext
Tony LavinioSubject: Converting a CATDrawing to a Base-64
Author: Tony Lavinio
Date: 06 Nov 2009 03:21 PM
Tools > Options, set the JVM properties to include -Xmx400m to allocate say 400 megs, and see if that helps. You could go more or less, but please don't allocate more free RAM than you have available!

Postnext
Jon GallegosSubject: Converting a CATDrawing to a Base-64
Author: Jon Gallegos
Date: 10 Nov 2009 12:09 PM
I went to tools/options
I selected Java Virtual Machine
On the right hand side of the pop-up window is a check box that says "Enable JVM". That is checked.
under that I have JRE version and parameters

In the paramaters box I have the following

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

If I understand you correctly, you are saying I need to change that to read like this

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000,-Xmx400m

Correct?

Postnext
Tony LavinioSubject: Converting a CATDrawing to a Base-64
Author: Tony Lavinio
Date: 10 Nov 2009 05:10 PM
Close, but not quite. The -Xmx shouldn't be tacked on as part of the -Xrunjdwp parameter, which is what the comma did.

-Xdebug -Xnoagent -Xmx400m -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000

Posttop
Jon GallegosSubject: Converting a CATDrawing to a Base-64
Author: Jon Gallegos
Date: 11 Nov 2009 07:51 AM
Perfect

thanks

 
Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.