Meme Generator

免费增值
通过 Meme Generator API | 已更新 24 giorni fa | Entertainment
人气

9.4 / 10

延迟

381ms

服务等级

98%

Health Check

N/A

返回所有讨论

Uploading images using .Net always returns image already exists error.

Rapid account: Marcus 14530
marcus14530
5 anni fa

I have tried multiple ways but I cant figure it out.

Code I use to save the image and convert to Byte[]:

        Byte[] bytes = new WebClient().DownloadData(attachment.Url);
        File.WriteAllBytes(attachment.Filename, bytes);
        Thread.Sleep(100);
        HttpResponse<string> response = Unirest.post(PostImageURL).header("X-Mashape-Key", "API_KEY").field("image", File.ReadAllBytes(""+attachment.Filename)).asString();

for some reason it always returns image already exists when it definitely doesnt.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论