I’ve the following code that returns an image in C# Web API. So far so good but I can’t map it to an image. So on the javascript side I made: and then to show the image: but the console says: Http failure during parsing for https://localhost:44476/library/getimage” How can I solve this? Update: As I said, I’m using Web API,
Tag: asp.net-web-api
Access to fetch at ‘https://localhost:7144/api/employees’ from origin ‘http://localhost:3000’ has been blocked by CORS policy
Im getting this error when I try to fetch data from webapi to display in react js Here is a photo when I check the console this is what I get here is my program.cs here is one of my files employee.js I believe the issue has to deal with the CORS Policy, but have tried everything. Does anything stand
How can i get formdata with .net core web api and vue.js
I am trying to write an announcement system. i am using vue 2 and net core 3.1. The announcement has a photo, title, and content. (The department id field is static for now.) I’m trying to send the announcement’s information with the photo in the formdata, but the api can only capture the photo. So where am I going wrong?
Upload a file to byte array in MySQL successfully, however the content is not readable when download
I am having a problem when downloading the content after I uploaded the file using FormData in JavaScript XMLHttpRequest and connect to Web API and save it to MySQL DB as LONGBLOB data type. When I tried to download the file that is being uploaded previously as BLOB to MySQL DB, the file is being downloaded, however the file cannot