function HogeBase64Encode(const inputStr: string): string; overload;
function HogeBase64Decode(const inputStr: string): string; overload;
+function HogeBase64Encode(inputArray: array of Byte): string; overload;
implementation
inputStream.Free;
end;
+function HogeBase64Encode(inputArray: array of Byte): string; overload;
+var
+ inputStream: TMemoryStream;
+ outputStream: TStringStream;
+begin
+ inputStream := TMemoryStream.Create;
+ inputStream.WriteBuffer(inputArray, Length(inputArray));
+ inputStream.Position := 0;
+ outputStream:= TStringStream.Create('');
+ HogeBase64Encode(inputStream, outputStream);
+ result := outputStream.DataString;
+ outputStream.Free;
+ inputStream.Free;
+end;
+
end.