I currently use a cUrl Ftp Get function that downloads a file from ftp server and saves it on the local computer, and it works perfectly. What I need to do is make the next step and get the file from server without saving it directly but putting it in memory. For this purpose, I know there is another cUrl function, Ftp Get in Memory but can't figure it out why it doesn't work. Is there any implementation of this function in C++?
Problems I get: "a value of type void* cannot be used to initialize an entity of type char*" Tried to do some casting but nothing. This happens on malloc(1) and realloc().