Meme Generator

फ्रीमियम
द्वारा Meme Generator API | अपडेट किया गया 25 days ago | Entertainment
लोकप्रियता

9.4 / 10

लेटेंसी

384ms

सेवा का स्तर

98%

Health Check

N/A

सभी चर्चाओं पर वापस जाएं

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

Rapid account: Marcus 14530
marcus14530
5 years ago

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.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें