AspNetCore.Totp icon indicating copy to clipboard operation
AspNetCore.Totp copied to clipboard

return File(qrCode.QrCodeImageBytes, "image/png"); not working

Open HassanZeitoun opened this issue 2 years ago • 1 comments

return File(qrCode.QrCodeImageBytes, "image/png"); always giving me that 'TotpSetup' does not contain a definition for 'QrCodeImageBytes' and no accessible extension method 'QrCodeImageBytes' accepting a first argument of type 'TotpSetup' could be found (are you missing a using directive or an assembly reference?)

everything else works fine

HassanZeitoun avatar May 25 '22 13:05 HassanZeitoun

Which version are you using? 2.3.0 (current nuget version) or 3.0.0 (current repo version)

simon-curtis avatar Sep 08 '22 15:09 simon-curtis

I think you should use below line for version 2.3.0 return File(qrCode.QrCodeImage, "image/png");

sujit1779 avatar Dec 06 '23 05:12 sujit1779