TByteDynArray for String Delphi 7

2

I have a method to convert a base64 file that returns a TByteDynArray, and I wanted to convert this TByteDynArray to String.

I've tried it in some ways and it's not working.

Error:

    
asked by anonymous 11.04.2017 / 00:18

1 answer

2
function Converter(P: TByteDynArray): string;
begin
  SetLength(Result, Length(P));
  System.Move(P[0], Result[1], Length(P));
end;

Try to do this:

Source: link

    
11.04.2017 / 13:20