发送时无法发送文件信息. [英] Unable to send the information of the file while sending.

查看:65
本文介绍了发送时无法发送文件信息.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.我只是想寻求帮助,在Google上找到的文件传输代码中,该文件已成功将文件发送到另一台PC,但无法包含文件名和文件格式.示例"molly"和"eric"正在相互发送文件,它们可以成功地相互发送文件,但是主要问题是他们收到的文件没有任何信息甚至文件名,但是文件仍然没有损坏了.由于文件信息未包含在传输中,因此他们俩都很难识别他们接收的文件类型.为了使主题可以打开文件,他们首先向发件人询问文件的信息及其文件格式,然后接收文件的人现在将手动编辑文件并放置正确的文件扩展名.我怎么解决这个问题?如果我发送的文件名为world.doc,我希望接收者将其作为world.doc接收,以便他们可以轻松打开该文件.希望能有所帮助.

Good day to all. I just want to ask for help, in file transfer code I''ve found on google it successfully send the file to another pc but unable to include the file name and the file format of the file. Example "molly" and "eric" are sending file to each other, they can successfully send file to each other but the main problem is the file that they received does not have any information or even a file name, but still the file is not corrupted. It is hard for both of them to identify what kind of file they receive since the file information is not included in the transmission. in order for theme to open the file, they first ask the sender about the information of the file and its file format then the one who receive the file will now manually edit the file and put its the correct file extension. how can i solve this problem? if i send a file with a file name world.doc i want the receiver to receive it as world.doc, so that they can easily open the file. hoping for some help. it could improve my programming skills level.

推荐答案

您好,您可以将文件信息与文件一起发送.
首先,您将获得所有文件属性并使用文件进行传输
Hello dear you can send the file information with the file.
first you get all file attributes and transfer it with file


这篇关于发送时无法发送文件信息.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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