# 413 Request Entity Too Large Error

**URL:** <https://discuss.roboflow.com/t/413-request-entity-too-large-error/9236>\
**Category:** 🤝  Community Help\
**Created:** [March 28, 2025, 12:12pm UTC](https://discuss.roboflow.com/t/413-request-entity-too-large-error/9236 "2025-03-28T12:12:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eren](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/eren/32/5665_2.png) [@eren](https://discuss.roboflow.com/u/eren)\
**Post date:** [March 28, 2025, 12:12pm UTC](https://discuss.roboflow.com/t/413-request-entity-too-large-error/9236/1 "2025-03-28T12:12:26Z")

</div>

We are sending a photo request from our mobile application to our project that we created in the workflow with the request url [https://detect.roboflow.com/infer/workflows/sutas-yapay-zeka/urunler](https://detect.roboflow.com/infer/workflows/sutas-yapay-zeka/urunler). We are getting the request entity too large 413 error from these requests. We are looking for a solution but we couldn’t find it. Can you help? I am sharing the request part of our service code below:

foreach (var imagePath in imagePaths)  
{  
try  
{  
byte imageBytes = File.ReadAllBytes(imagePath);  
string base64Image = Convert.ToBase64String(imageBytes);

var payload = new  
{  
api\_key = apiKey,  
inputs = new  
{  
image = new  
{  
type = “url”,  
value = base64Image  
}  
}  
};

var requestContent = new StringContent(JsonSerializer.Serialize(payload), Encoding.UTF8, “application/json”);  
var response = await \_httpClient.PostAsync(requestUrl, requestContent);

\_logger.LogWarning(response.ToString());  
response.EnsureSuccessStatusCode();

var responseContent = await response.Content.ReadAsStringAsync();  
var modelResponse = JsonConvert.DeserializeObject(responseContent);

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [April 18, 2025, 12:12pm UTC](https://discuss.roboflow.com/t/413-request-entity-too-large-error/9236/2 "2025-04-18T12:12:36Z")

</div>

Closed on April 18, 2025, 12:12pm UTC

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
