SysSingleton.Deflate
(Adding template at the end of the page)
No edit summary
Line 11: Line 11:
See also: [[SysSingleton.UrlEncode]]
See also: [[SysSingleton.UrlEncode]]
{{Edited|July|12|2024}}
{{Edited|July|12|2024}}
[[Category:MDriven Server]]

Revision as of 05:06, 20 March 2024

https://learn.microsoft.com/en-us/dotnet/api/system.io.compression.deflatestream?view=net-7.0

Deflate(bytes:Blob; inflate:Boolean):Blob  (set Eco.ExternalLateBound=true)

Example for compressing:

let compressedbase64=SysSingleton.oclsingleton.Deflate(xml.Replace('\r\n', ' ').Replace('\n', ' ').StringToBase64.Base64ToBlob,false).BlobToBase64 in
(
  SysSingleton.oclsingleton.UrlEncode(compressedbase64,false)
)

Example for decompressing:

vAnswer:=SysSingleton.oclsingleton.Deflate(vCert.RSADecrypt(  vAnswer.Base64ToBlob),true).blobtobase64

See also: SysSingleton.UrlEncode

This page was edited 60 days ago on 03/20/2024. What links here