Category : c#

I’m currently sending a byte array of a pdf from the server which is generated using Converter.Convert from the ceTe.DynamicPDF.HtmlConverter package. When I try to decode it using ATOB in angular it gives this error: InvalidCharacterError: Failed to execute ‘atob’ on ‘Window’: The string to be decoded is not correctly encoded. I’ve seen this error ..

Read more

I am tinkering with a school attendance app developed in Angular 9.0, C# that has two componenets (i.e. 1. Attendance Roll, Teacher Dashboard) . I would like to share the data in realtime on the Teacher dashboard when the student signs in. I do not like the concept of polling the Web API every 2 ..

Read more

My API I would like to take this data and pass it to the child form, but nothing appears when I upload it , import { ListaService } from ‘./lista.service’; import { FormGroup, FormBuilder } from ‘@angular/forms’; import { AfterViewInit, Component, OnInit } from ‘@angular/core’; @Component({ selector: ‘app-lista’, templateUrl: ‘./lista.component.html’, styleUrls: [] }) export class ..

Read more

I have issue with passing file inside form from Front-End to Backend. My file on backend side is always null. Front-End code: public getTranslatedJson( json: File, destinatonLanguage: Language ) { const form = { "languageCharset": destinatonLanguage.systemId, "file": json } return this.http.post(this.url, form, {responseType: "blob", observe: "response"}); }; Back-End code: [HttpPost("")] [Route("")] public IActionResult Post([FromForm] LanguageCharset ..

Read more

I have found many threads but no one is helpful in my case. I use angularjs to call an api from asp.net web api(which is POST method).I am not sure how to hanlde the HttpResponseMessage in angularJs, and the excel file is always corrupt. Could you help me? Api: [Resource("wsmpObjectRes")] [RoutePrefix(WsmpConsts.URL_PREFIX_WSMP_OLD + "/core/object")] public class ..

Read more