I got the same error with the reference .Net Core System.Drawing error with AWS Lambda . My web api function is given below,
[Authorize]
[HttpGet]
public ActionResult GetUuidWithQRGenerator(string deviceId, string customerId, string seedValue)
{
var data = CommonFunctions.GetUuid(deviceId, customerId, seedValue);
QRCodeGenerator qrGenerator = new QRCodeGenerator();
QRCodeData qrCodeData = qrGenerator.CreateQrCode(data,
QRCodeGenerator.ECCLevel.Q);
QRCode qrCode = new QRCode(qrCodeData);
Bitmap qrCodeImage = qrCode.GetGraphic(20);
return Content(Convert.ToBase64String(BitmapToBytes(qrCodeImage)));
}
How to generate QR code with out using System.Drawing in .net core web api with AWS Lambda