Skip to content

Commit

Permalink
DSS-XADES. Memory usage improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
egidijus-kuzma committed Jun 10, 2023
1 parent 1eb43a6 commit 8143ef5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ public XMLSignatureInput engineResolveURI(ResourceResolverContext context) throw
}

private XMLSignatureInput createFromCommonDocument(DSSDocument document) {
//@todo
// Full binaries are required
final XMLSignatureInput result = new XMLSignatureInput(DSSUtils.toByteArray(document));
//final XMLSignatureInput result = new XMLSignatureInput(DSSUtils.toByteArray(document));

final XMLSignatureInput result = new XMLSignatureInput(document.openStream());
final MimeType mimeType = document.getMimeType();
if (mimeType != null) {
result.setMIMEType(mimeType.getMimeTypeString());
Expand Down

0 comments on commit 8143ef5

Please sign in to comment.