Created
October 18, 2023 10:32
-
-
Save bjoerntx/ea8caef2612ef1d23b6db9805273581c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpPost] | |
public IActionResult ReceiveDocument(string document) | |
{ | |
// convert string to byte array and save as file | |
System.IO.File.WriteAllBytes("document.pdf", Convert.FromBase64String(document)); | |
return Ok(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment