添加清理
This commit is contained in:
parent
445fe4e818
commit
cc8cf1b53e
Binary file not shown.
@ -106,6 +106,7 @@ size_t faceMatch_callback(void *ptr, size_t size, size_t nmemb, void *stream)
|
||||
|
||||
int post_faceMatch(char *access_token, char *file)
|
||||
{
|
||||
char base64_file[sizeof(file) + 9];
|
||||
char *getbase64(char *photoname);
|
||||
int is_success;
|
||||
char url[270] = { 0 };
|
||||
@ -148,6 +149,14 @@ int post_faceMatch(char *access_token, char *file)
|
||||
is_success = 1;
|
||||
}
|
||||
|
||||
|
||||
// 清理文件
|
||||
bzero(base64_file, sizeof(file) + 9);
|
||||
strcpy(base64_file, file);
|
||||
strcat(base64_file, "_base64");
|
||||
//printf("%s\n", base64_file);
|
||||
remove(base64_file);
|
||||
|
||||
return is_success;
|
||||
|
||||
}
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user