|
我要传输文件,类实现了AnyChatTransDataEvent,,然后anychat.SetTransDataEvent(this);登陆初始化设置了路径 anychat.SetSDKOptionString(AnyChatDefine.BRAC_SO_CORESDK_TMPDIR, "/mnt/sdcard/jingwutong");
我传输文件是这样传输的:anychat.TransFile(users[0], "/mnt/sdcard/hehe.jpg", 0, 0, 0,out);
@Override
public void OnAnyChatTransFile(int dwUserid, String FileName,
String TempFilePath, int dwFileLength, int wParam, int lParam,
int dwTaskId) {
// TODO Auto-generated method stub
String name = anychat.GetUserName(dwUserid);
Toast.makeText(getApplicationContext(), "收到"+name+"传送的"+FileName, 1).show();
}
我这个路径下/mnt/sdcard/jingwutong可以看到传输过来的图片,但是打开 图片的时候显示空白的,缩略图是正常的,打开图片,貌似图片是被加大了!
|
|