SignalR聊天应用程序发送图像 [英] SignalR chat application sending images

查看:674
本文介绍了SignalR聊天应用程序发送图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立SingnalR聊天应用MVC5 signalR 2.0,从教程: - <一个href=\"http://www.asp.net/signalr/overview/signalr-20/getting-started-with-signalr-20/tutorial-getting-started-with-signalr-20-and-mvc-5\" rel=\"nofollow\">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-5 And 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聊天应用程序发送图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆