kcachis.at.leidenuniv.nl/torture/Textbook Of Radiographic Positioning And Related Anatomy 32.pdf
.
The first edition of the textbook was published in 1991 and it is in its sixth edition. It is intended as a basic text on.
2
.
.
Q:
Save uploaded image to Azure BlobContainer via ASP.NET MVC5
Good day,
I am trying to figure out how to get an uploaded image to store in Azure BlobContainer via ASP.NET MVC5, and thought that the problem would be easy to solve. I've tried the following code, but it doesn't seem to work.
using (HttpResponseMessage response =
await client.PostAsync("",
new FormUrlEncodedContent(values)))
{
response.EnsureSuccessStatusCode();
using (var stream = await response.Content.ReadAsStreamAsync())
{
await CloudBlockBlob.UploadFromStreamAsync(stream, container, fileName);
}
}
If anyone knows how to fix this it will be very much appreciated.
Thanks.
A:
I've successfully solved this issue by using the following approach.
[HttpPost]
[ValidateAntiForgeryToken]
public async Task UploadImage(IFormFile file)
{
if (ModelState.IsValid) ac619d1d87
Related links:
Comments