26. September 2006 19:21
StreamHandler.LoadFromStream(VARIANT navStream)
StreamHandler.SaveToStream(VARIANT navStream)
[BOOL Base64Encode :=] StreamHandler.Base64Encode()
[BOOL Base64Decode :=] StreamHandler.Base64Decode()
[BOOL LoadFromXmlNode :=] StreamHandler.LoadFromXmlNode(VAR IXMLDOMDOCUMENT2 xmlDoc, BSTR xmlPath)
[BOOL SaveToXmlNode :=] StreamHandler.SaveToXmlNode(VAR IXMLDOMDOCUMENT2 xmlDoc, BSTR xmlPath)
CREATE(StreamHandler);
f.OPEN('C:\TestImage.jpg');
f.CREATEINSTREAM(ins);
StreamHandler.LoadFromStream(ins);
StreamHandler.Base64Encode();
CREATE(XMLDocument);
XMLDocument.loadXML('<image><name>testimage.jpg</name><width>xx</width><height>yy</height><data /></image>');
StreamHandler.SaveToXmlNode(XMLDocument, '/image/data');
XMLDocument.save('C:\TestImageFromCAL.xml');
CLEAR(XMLDocument);
f.CLOSE();
CLEAR(StreamHandler);
CREATE(StreamHandler);
CREATE(XMLDocument);
XMLDocument.load('C:\TestImageFromCAL.xml');
StreamHandler.LoadFromXmlNode(XMLDocument, '/image/data');
StreamHandler.Base64Decode();
f.CREATE('C:\TestImageFromCAL.jpg');
f.CREATEOUTSTREAM(outs);
StreamHandler.SaveToStream(outs);
f.CLOSE();
CLEAR(XMLDocument);
CLEAR(StreamHandler);
15. November 2006 09:50
15. November 2006 20:35