问题描述
我已经建立SingnalR聊天应用MVC5 signalR 2.0,从教程: - http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-getting-started-with-signalr-20-and-mvc-5
它是所有工作出色,虽然是有没有办法发送图像/附件?并与图像实际显示在屏幕上
I have build the SingnalR chat application MVC5 signalR 2.0 , from the tutorial :- http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-getting-started-with-signalr-20-and-mvc-5And it is all working brilliantly, though is there a way to send images/ attachments? and with the images actually displaying on the screen?
推荐答案
我劝你 - 通过的WebAPI(无SignalR)发送图像和信息,然后通过SignalR通知在聊天的所有参与者
I would advise you - send images and messages by WebApi (no SignalR), and then notify all participants in the chat by SignalR.
这篇关于SignalR聊天应用程序发送图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!