How can I read&show image using .dll from C# ASP.NET Web app?

1 visualización (últimos 30 días)
Ji Hyun Seo
Ji Hyun Seo el 19 de En. de 2018
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();
}
}
}

Respuestas (0)

Categorías

Más información sobre Deploy to .NET Applications Using MWArray API en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!