Patriq
2015-01-15 08:25:49
I dont really have that much experience in file management using pascal.
I saw this snippet online and Simba doesnt have the EncodeBase64 function so Im kinda lost.
It would be great if someone could help me :D
Thank you very much.
P.S: I need this because I want to be able to create an API to 9kw.eu using simba, and therefore bot in a game that asks for captchas once in a while. I would be creating and sharing a librarie that would allow to do such a thing :D
I saw this snippet online and Simba doesnt have the EncodeBase64 function so Im kinda lost.
function EncodeFile(const FileName: string): AnsiString;
var
stream: TMemoryStream;
begin
stream := TMemoryStream.Create;
try
stream.LoadFromFile(Filename);
result := EncodeBase64(stream.Memory, stream.Size);
finally
stream.Free;
end;
end;
It would be great if someone could help me :D
Thank you very much.
P.S: I need this because I want to be able to create an API to 9kw.eu using simba, and therefore bot in a game that asks for captchas once in a while. I would be creating and sharing a librarie that would allow to do such a thing :D