GithubHelp home page GithubHelp logo

能发送图片信息吗? about freeim HOT 9 OPEN

2881099 avatar 2881099 commented on July 4, 2024
能发送图片信息吗?

from freeim.

Comments (9)

2881099 avatar 2881099 commented on July 4, 2024

小的话base64就行,约定好数据格式,比如:

纯文本 {type:”text”,content:”内容”}
语音 {type:”sound”,content:”base64”}
或者 传一个 http 地址,客户端收到消息后下载该文件再播放,这个文件可以是 zip mp4

from freeim.

tonglei2019 avatar tonglei2019 commented on July 4, 2024

万分感谢

from freeim.

tonglei2019 avatar tonglei2019 commented on July 4, 2024

大神咱们的redis需要配置什么吗?我改成本地的Server端和本地的redis就发送不了信息了,大神是什么原因啊?

from freeim.

2881099 avatar 2881099 commented on July 4, 2024

只有那几个配置参数,理解一下

redis必须都指向同一台,同数据库
server参数必须是servers其中之一,并且可以当问到的imserver

from freeim.

tonglei2019 avatar tonglei2019 commented on July 4, 2024

我配置的就访问不到server呢,我的服务端配置
"ImServerOption": {
"CSRedisClient": "ip,password=,poolsize=5,writeBuffer=20480",
"Servers": "localhost:6001",
"Server": "localhost:6001"
},

这个是客户端配置
ImHelper.Initialization(new ImClientOptions
{
Redis = new CSRedis.CSRedisClient("ip,poolsize=5,password=,ssl=false,writeBuffer=20480"),
Servers = new[] { "localhost:6001" }
});

from freeim.

2881099 avatar 2881099 commented on July 4, 2024

imserver 启动为 localhost:6001,就行了

from freeim.

tonglei2019 avatar tonglei2019 commented on July 4, 2024

能加Q给大神发图片吗

from freeim.

2881099 avatar 2881099 commented on July 4, 2024

imserver启动的控制台窗口看下

from freeim.

tonglei2019 avatar tonglei2019 commented on July 4, 2024

谢谢大神 已经搞定了,回去后好好在看看,理解理解。

from freeim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.