How can I read&show image using .dll from C# ASP.NET Web app?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi I trying to run dll(generated from matlab library compiler in .NET Assembly) in C# ASP.NET Web application. It is supposed to read the image and show it's figure.
But if I click the button(made at WebForm) MWMCR::EvaluateFunction error shows up saying that the image file does not exist. The matlab function works well when I run it in matlab r2017a.
Does anyone know how to solve the problem?
This is the matlab code *******************
function showdisplay()
path= 'C:\Users\VC\Pictures\penquin.jpg';
image=imread(path);
imshow(image);
end
*************
And C# code
using MathWorks.MATLAB.NET.Arrays;
using MathWorks.MATLAB.NET.Utility;
using showdisplay;
namespace WebApplication_Test
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
ShowDis obj = new ShowDis();
obj.showdisplay();
}
}
}
0 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Deploy to .NET Applications Using MWArray API in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!