点对点情景中的Lync IM聊天图片共享。如何阅读文件使用Silver light应用程序? [英] Lync IM Chat Picture Sharing in peer to peer Case. How to read the file Using Silver light application?

查看:60
本文介绍了点对点情景中的Lync IM聊天图片共享。如何阅读文件使用Silver light应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在为Lync创建一个CWE应用程序,正确设置注册表后,当我们从联系人列表中双击一个联系人时,CWE应用程序正在运行。



问题是,


当我们通过拖入聊天区域来共享文件时,我们正在获取富文本格式如下所示,



{\rtf1\fbidis\ansi\ansicpg1252\deff0\\\
ouicompat\deflang1033 {\ t​​onttbl {\\ \\ f0\froman\fprq2\fcharset0 Times New Roman;} {\f1\fnil\fcharset0 Segoe UI;}}

{\ * \generator Riched20 15.0.4659 } {\ * \mmathPr \mwrapIndent1440} \ viewkind4 \uc1 

\ pard \f0 \fs24 \lang1034  {\ * \lyncpict \ jpegblip \ picw200 \ pich28 FFD8FFE000104A46494600010101000000000000F ........................................ .800A28A2800A28A2803FFFD9}   \line\f1\fs20\lang 16393 \ par

{\ * \lyncflags< file00 = D54C8987-35CE-4EBD-9808-E96C493D542A>} {\ * \lyncflags< rtf = 1>}}



以上格式的粗体表示文件。但是


我们如何使用Silver light从该格式读取文件?  此处使用的文件格式是什么?



有没有办法将文件转换回原始文件形成?我知道该文件正在下载到"我收到的文件"中。但是我们没有得到要在我们的CWE应用程序中使用的文件的名称。



请帮助我解决这个问题,提前谢谢,

解决方案

有没有办法从下面给出的格式中获取原始文件?



{\rtf1\fbidis\ansi\ansicpg1252\deff0\\\
ouicompat\deflang1033 {\ t​​onttbl {\\ \\ f0\froman\fprq2\fcharset0 Times New Roman;} {\f1\fnil\fcharset0 Segoe UI;}}

{\ * \generator Riched20 15.0.4659 } {\ * \mmathPr \mwrapIndent1440} \ viewkind4 \uc1 

\ pard \f0 \fs24 \lang1034  {\ * \lyncpict \ jpegblip \ picw200 \ pich28 FFD8FFE000104A46494600010101000000000000F ........................................ .800A28A2800A28A2803FFFD9}   \ line\f1\fs20\lang16393 \\\\ _
{\ * \lyncflags< file00 = D54C8987-35CE-4EBD-9808-E96C493D542A>} {\ * \lyncflags< RTF = 1>}}


We are creating a CWE Application for Lync, After setting registries properly the CWE application is running while we double click a Contact from our Contact list.

The Issue is,

While we share file by dragging in to chat area, We are getting Rich text Format Like the following,

{\rtf1\fbidis\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\fnil\fcharset0 Segoe UI;}}
{\*\generator Riched20 15.0.4659}{\*\mmathPr\mwrapIndent1440 }\viewkind4\uc1 
\pard\f0\fs24\lang1034 {\*\lyncpict\jpegblip\picw200\pich28 FFD8FFE000104A46494600010101000000000000F.........................................800A28A2800A28A2803FFFD9} \line\f1\fs20\lang16393\par
{\*\lyncflags<file00=D54C8987-35CE-4EBD-9808-E96C493D542A>}{\*\lyncflags<rtf=1>}}

The bold things in the above format representing file. But

How we can read the file from that format using Silver light?  What is the file format used here?

Is there any way to convert the file back to orginal form? I know the file is downloading to "My received files" But we are not getting the name of the files to use in our CWE application.

Please help me to solve this issue, Thanks in advance,

解决方案

Is there any way to get original file from the format given below?

{\rtf1\fbidis\ansi\ansicpg1252\deff0\nouicompat\deflang1033{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}{\f1\fnil\fcharset0 Segoe UI;}}
{\*\generator Riched20 15.0.4659}{\*\mmathPr\mwrapIndent1440 }\viewkind4\uc1 
\pard\f0\fs24\lang1034 {\*\lyncpict\jpegblip\picw200\pich28 FFD8FFE000104A46494600010101000000000000F.........................................800A28A2800A28A2803FFFD9} \line\f1\fs20\lang16393\par
{\*\lyncflags<file00=D54C8987-35CE-4EBD-9808-E96C493D542A>}{\*\lyncflags<rtf=1>}}


这篇关于点对点情景中的Lync IM聊天图片共享。如何阅读文件使用Silver light应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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