Lambda 不支持太大的 Base64 - C#
我正在使用 .Net 6.0 在 lambda 中创建一个函数,该函数需要接收 base64 字符串(图像)。
但是,如果图像很小(例如:100 x 100),我只能让它接收这个 base64 字符串,当图像比这大得多时,Lambda 不理解 JSON 并返回 null。
我正在使用AWS测试工具来执行测试,如何获得更大的BASE64字符串?
public bool FunctionHandler(DadosApData dadosApData, ILambdaContext context)
{
LambdaLogger.Log("Inicio dos testes");
var teste = _enviarMicrosoftFunction.TestarEnvio(dadosApData);
return true;
}
这是我的模型:
public class DadosApData
{
public string Base64Foto { get; set; }
public string Email { get; set; }
public string ReColaborador { get; set; }
}
I'm creating a function in a lambda with .Net 6.0 that needs to receive a base64 string (Image).
However, I can only get it to receive this base64 String if the image is small (Example: 100 x 100), when the image is much larger than that, Lambda doesn't understand the JSON and returns null.
I'm using the AWS test tool to perform the tests, how can I get a larger BASE64 String?
public bool FunctionHandler(DadosApData dadosApData, ILambdaContext context)
{
LambdaLogger.Log("Inicio dos testes");
var teste = _enviarMicrosoftFunction.TestarEnvio(dadosApData);
return true;
}
This is my model:
public class DadosApData
{
public string Base64Foto { get; set; }
public string Email { get; set; }
public string ReColaborador { get; set; }
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论