Rist
❔ Difficulties with http requests for image(blob) column in mysql
Uploading files is more involved, here's an article about it:
https://learn.microsoft.com/en-us/aspnet/core/mvc/models/file-uploads?view=aspnetcore-7.0
23 replies
❔ Difficulties with http requests for image(blob) column in mysql
No, you'd have to do this after the table is filled up by the data, so after all the usings. But your method won't work as it is anyway, unless you aim to return a gigantic pile of data representing your entire collection of saved images in a single response and then parse all of that into actual images with JS or WebAsm.
23 replies
❔ Difficulties with http requests for image(blob) column in mysql
This would probably be much easier if you used EF Core.
But as it is right now, I'm assuming the second column in your row will contain an array of bytes, representing the image:
So now the problem is to return this image. You can't just return a whole bunch of them from a single method in asp.net, so you'll probably have to provide an endpoint for requesting images from the database one by one and return them something like this:
23 replies