/** {@inheritDoc} */
@Override
protected QQHttpRequest onBuildRequest() throws QQException, JSONException {
HttpService httpService = (HttpService) getContext().getSerivce(
QQService.Type.HTTP);
QQSession session = getContext().getSession();
QQHttpRequest req = createHttpRequest("POST",
QQConstants.URL_UPLOAD_OFFLINE_PICTURE);
req.addGetValue("time", System.currentTimeMillis() / 1000 + "");
req.addPostFile("file", file);
req.addPostValue("callback", "parent.EQQ.Model.ChatMsg.callbackSendPic");
req.addPostValue("locallangid", "2052");
req.addPostValue("clientversion", "1409");
req.addPostValue("uin", getContext().getAccount().getUin() + ""); // 自己的账号
req.addPostValue("skey", httpService.getCookie("skey", QQConstants.URL_UPLOAD_OFFLINE_PICTURE).getValue());
req.addPostValue("appid", "1002101");
req.addPostValue("peeruin", user.getUin() + ""); // 图片对方UIN
req.addPostValue("fileid", "1");
req.addPostValue("vfwebqq", session.getVfwebqq());
req.addPostValue("senderviplevel", getContext().getAccount().getLevel().getLevel() + "");