I have created a database to hold images that can when sending a post request match the form input and map it to a specific Qrcode and send that as a byte array to the angular frontend. Right now I am using a onSubmit function to run the the post. How do you get turn the incoming byte array response to a image in ur using I have looked all over stack overflow and see that most of the answers are out dated.
onSubmit(structure: Structure, san: DomSanitizer) {
this.isSubmitted = true;
if (!this.registrationForm.valid) {
return false;
} else {
return this.http.post(this.serverURL, structure).toPromise().then((data: any) => {
this.image = data;
});
}
}