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.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입