压缩流转Base64字符串
function ZipStreamToBase64String(AStream: TStream): string;
var
B: TBytes;
begin
AStream.position := 0;
SetLength(B, AStream.Size);
AStream.ReadBuffer(B, AStream.Size);
Result := TNetEncoding.Base64.EncodeBytesToString(B);
end;
无
《学习大师原创文档,请勿转载,侵权必究》