SoraSegment.Image method (1 of 2)

图片 消息段

public static SoraSegment Image(Stream data)
parameterdescription
data图片流

See Also


SoraSegment.Image method (2 of 2)

图片 消息段

public static SoraSegment Image(string data, bool useCache = true, int? threadCount = null)
parameterdescription
data图片名/绝对路径/URL/base64
useCache通过URL发送时有效,是否使用已缓存的文件
threadCount通过URL发送时有效,通过网络下载图片时的线程数,默认单线程

Remarks

若要使用Base64,需要让 data 以 base64:// 开头

See Also