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. 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);