我将png格式的图像发送给我的其他客户端。 但是当我在客户端下载文件并尝试打开它时,我会收到错误。 我相信文件的标题丢失了,但我怎样才能将它们添加到serverresponse?
On the details of my picture i can see, that the size and so on is missing.
ifstream Stream;
Stream.open(FullFileName,std::ios::binary);
string Content, Line;
if (Stream)
{
while (getline(Stream,Line)){
Content += Line;
}
}
Stream.close();
Request::request->set_body(Content);
答案 0 :(得分:0)
在搜索后找到了post的帖子。
我从中创建了序列。
msg Traceback (most recent call last):
File "C:\Users\qubo\Desktop\stanfordparserexp.py", line 48, in <module>
from nltk.tokenize.stanford_segmenter import stanford_segmenter
ImportError: No module named stanford_segmenter
[Finished in 0.6s]