Oliver Busse
Oliver Busse

Reputation: 3395

Export DXL to Richtext item causes 64k errors

I have a Java agent that exports design elements to documents in a separate database (one document per element). If elements are complex and the produced DXL becomes bigger my export works but I get errors when opening the document with my form:

64k error

This my code (excerpt):

DxlExporter exporter = session.createDxlExporter();
RichTextItem dxl = designDoc.createRichTextItem(DesignElement.ITEM_DXLOUTPUT);

dxl.appendText(exporter.exportDxl(doc));
dxl.setSaveToDisk(true);
dxl.compact();
designDoc.save();

Any suggestions on how to avoid this?

Upvotes: 0

Views: 135

Answers (1)

Paul Stephen Withers
Paul Stephen Withers

Reputation: 15739

If you set the field in the Form to store contents as MIME and used computeWithForm, would that resolve the problem by breaking the content up?

Upvotes: 1

Related Questions