Stream XML out of Blob

ta5ta5 Member Posts: 1,164
Hello

I want to stream a xml File out of a blob and show it in the browser, without saving the file first to a temporary file.
This works, but uses a temporary file:
TempFileName := 'c:\~temp.xml';
CALCFIELDS("XML File");
IF "XML File".HASVALUE THEN BEGIN
  "XML File".CREATEINSTREAM(xmlInStream);
  CREATE(xmlDomDoc);
  xmlDomDoc.load(xmlInStream);
  xmlDomDoc.save(TempFileName);
  HYPERLINK(TempFileName);
END ELSE BEGIN
  MESSAGE(Text001);
END;
Any ideas?
Thanks
Thomas

Comments

Sign In or Register to comment.