[go: up one dir, main page]

CN111368173A - File transmission method, device, electronic device and readable storage medium - Google Patents

File transmission method, device, electronic device and readable storage medium Download PDF

Info

Publication number
CN111368173A
CN111368173A CN202010148347.6A CN202010148347A CN111368173A CN 111368173 A CN111368173 A CN 111368173A CN 202010148347 A CN202010148347 A CN 202010148347A CN 111368173 A CN111368173 A CN 111368173A
Authority
CN
China
Prior art keywords
file
identification code
background server
mobile terminal
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010148347.6A
Other languages
Chinese (zh)
Inventor
安志嘉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN202010148347.6A priority Critical patent/CN111368173A/en
Publication of CN111368173A publication Critical patent/CN111368173A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请提供了一种文件传输方法、装置、电子设备及可读存储介质。所述方法包括:后台服务器生成识别码,以供客户端在网页上展示识别码,如此,移动终端可以从网页上获取识别码后,使用该识别码与后台服务器建立网络连接,从而通过第三方应用程序向服务器发送文件传输请求;相应地,后台服务器可以将文件传输请求中包括的目标文件上传至数据库,并将目标文件在数据库中的地址返回给客户端,以便客户端从数据库中查询目标文件,以及在网页上回显目标文件。本申请仅根据识别码就可以使移动终端和后台服务器建立连接,无需使用USB线或存储卡就可以实现文件的传输,整个文件传输过程操作简单,使用方便,从而能够提高文件传输的效率。

Figure 202010148347

The present application provides a file transmission method, apparatus, electronic device and readable storage medium. The method includes: the background server generates an identification code for the client to display the identification code on the web page. In this way, the mobile terminal can obtain the identification code from the web page and use the identification code to establish a network connection with the background server, so as to pass the third-party identification code. The application sends a file transfer request to the server; accordingly, the background server can upload the target file included in the file transfer request to the database, and return the address of the target file in the database to the client, so that the client can query the target from the database file, and echoing the target file on the web page. The application can establish a connection between the mobile terminal and the background server only according to the identification code, and can realize the transmission of files without using a USB cable or a memory card. The entire file transmission process is simple to operate and easy to use, thereby improving the efficiency of file transmission.

Figure 202010148347

Description

文件传输方法、装置、电子设备及可读存储介质File transmission method, device, electronic device and readable storage medium

技术领域technical field

本申请涉及通信技术领域,特别涉及一种文件传输方法、装置、电子设备及可读存储介质。The present application relates to the field of communication technologies, and in particular, to a file transmission method, apparatus, electronic device, and readable storage medium.

背景技术Background technique

随着网络技术的飞速发展,用户可以随时随地使用个人电脑、移动终端等电子设备进行上网。当用户在使用个人电脑浏览网页时,可能会涉及到上传文件的操作,比如上传一个图片文件至网页,并在网页上进行展示。With the rapid development of network technology, users can use electronic devices such as personal computers and mobile terminals to access the Internet anytime, anywhere. When a user browses a web page on a personal computer, the operation of uploading a file may be involved, such as uploading an image file to the web page and displaying it on the web page.

而由于移动终端的普及,用户可能需要将保存在移动终端上的文件上传至网页并在网页上进行展示,例如将移动终端拍摄图片在个人电脑端的网页上展示。现有技术中,需要将移动终端上的文件上传到个人电脑上,然后再通过个人电脑上的上传功将文件提交至服务器,然后再由个人电脑获取文件及相关网页内容并进行展示。However, due to the popularity of mobile terminals, users may need to upload files saved on the mobile terminal to a web page and display them on the web page, for example, displaying pictures taken by the mobile terminal on a web page on a personal computer. In the prior art, the file on the mobile terminal needs to be uploaded to the personal computer, and then the file is submitted to the server through the upload function on the personal computer, and then the personal computer obtains and displays the file and related webpage content.

常见的文件传输方式包括使用USB线传输或利用存储卡转移等。以USB线传输为例,用户使用USB线在移动终端与个人电脑之间建立连接,通过USB线将文件从移动终端传输至个人电脑,用户再从个人电脑中找到该文件,并将该文件上传至网页,并在网页上进行展示。整个操作过程较为繁琐,并且无论是使用USB线传输还是利用存储卡转移,都需要借助USB线或存储卡这些硬件设备才能实现文件传输,在不具备硬件设备的情况下就无法实现文件传输,便利性较差。Common file transfer methods include using a USB cable to transfer or using a memory card to transfer. Taking USB cable transmission as an example, the user uses a USB cable to establish a connection between the mobile terminal and the personal computer, transfers the file from the mobile terminal to the personal computer through the USB cable, and then the user finds the file from the personal computer and uploads the file. to the web page and display it on the web page. The entire operation process is cumbersome, and whether it is using a USB cable or using a memory card to transfer, it is necessary to use hardware devices such as USB cables or memory cards to achieve file transfer, and file transfer cannot be achieved without hardware devices, which is convenient. Poor sex.

基于此,目前亟需一种文件传输方法,用于解决现有技术中文件传输方式操作过程比较繁琐,便利性较差的问题。Based on this, there is an urgent need for a file transmission method, which is used to solve the problems that the operation process of the file transmission method in the prior art is cumbersome and the convenience is poor.

发明内容SUMMARY OF THE INVENTION

本申请提供了一种文件传输方法、装置、电子设备及可读存储介质,可用于解决在现有技术中现有技术中文件传输方式操作过程比较繁琐,便利性较差的技术问题。The present application provides a file transmission method, device, electronic device and readable storage medium, which can be used to solve the technical problems in the prior art that the operation process of the file transmission method in the prior art is cumbersome and the convenience is poor.

第一方面,本申请实施例提供一种文件传输方法,所述方法包括:In a first aspect, an embodiment of the present application provides a file transmission method, the method includes:

后台服务器生成识别码,以及将所述识别码发送给客户端;所述客户端用于在网页上展示所述识别码,所述识别码用于提供给移动终端,以使所述移动终端使用所述识别码与所述后台服务器建立网络连接;The background server generates an identification code, and sends the identification code to the client; the client is used to display the identification code on the web page, and the identification code is used to provide the mobile terminal so that the mobile terminal can use the identification code The identification code establishes a network connection with the background server;

所述后台服务器与所述移动终端建立网络连接后,接收所述移动终端通过第三方应用程序发送的文件传输请求,所述文件传输请求包括待传输的目标文件;After the background server establishes a network connection with the mobile terminal, it receives a file transfer request sent by the mobile terminal through a third-party application, where the file transfer request includes the target file to be transferred;

所述后台服务器将所述目标文件上传至数据库,以及获取目标文件在数据库中的地址;The background server uploads the target file to the database, and obtains the address of the target file in the database;

所述后台服务器接收所述客户端发送的文件回显请求,以及向所述客户端返回文件回显请求的响应消息,所述文件回显请求的响应消息包括所述目标文件在数据库中的地址,所述目标文件在数据库中的地址用于提供给所述客户端,以使所述客户端根据所述目标文件在数据库中的地址,从所述数据库中查询所述目标文件,以及在网页上回显所述目标文件。The background server receives the file echo request sent by the client, and returns to the client a response message for the file echo request, where the response message for the file echo request includes the address of the target file in the database , the address of the target file in the database is used to provide the client, so that the client can query the target file from the database according to the address of the target file in the database, and The target file is echoed above.

结合第一方面,在第一方面的一种可实现方式中,所述识别码包括连接信息;With reference to the first aspect, in an implementation manner of the first aspect, the identification code includes connection information;

所述后台服务器与所述移动终端建立网络连接,包括:The background server establishes a network connection with the mobile terminal, including:

所述后台服务器接收所述移动终端通过第三方应用程序发送的连接请求,所述连接请求包括所述连接信息;receiving, by the background server, a connection request sent by the mobile terminal through a third-party application, where the connection request includes the connection information;

所述后台服务器确定所述连接请求中包括的连接信息无误后,与所述移动终端建立网络连接。The background server establishes a network connection with the mobile terminal after determining that the connection information included in the connection request is correct.

结合第一方面,在第一方面的一种可实现方式中,所述后台服务器生成识别码之前,所述方法还包括:With reference to the first aspect, in an implementation manner of the first aspect, before the background server generates the identification code, the method further includes:

所述后台服务器接收所述客户端发送的识别码生成请求,所述识别码生成请求包括第一设备标识,所述第一设备标识是所述客户端的唯一性标识。The background server receives an identification code generation request sent by the client, where the identification code generation request includes a first device identification, and the first device identification is a unique identification of the client.

结合第一方面,在第一方面的一种可实现方式中,所述识别码还包括所述第一设备标识;所述识别码还用于提供给所述移动终端,以使所述移动终端根据所述第一设备标识和所述目标文件生成所述文件传输请求。With reference to the first aspect, in an implementation manner of the first aspect, the identification code further includes the first device identification; the identification code is also used to provide the mobile terminal, so that the mobile terminal The file transfer request is generated according to the first device identifier and the target file.

结合第一方面,在第一方面的一种可实现方式中,所述文件传输请求还包括所述第一设备标识;所述文件回显请求包括第二设备标识,所述第二设备标识是发送所述文件回显请求的客户端的唯一性标识;With reference to the first aspect, in an implementation manner of the first aspect, the file transfer request further includes the first device identifier; the file echo request includes a second device identifier, and the second device identifier is the unique identifier of the client that sends the file echo request;

所述后台服务器向所述客户端返回文件回显请求的响应消息之前,所述方法还包括:Before the background server returns a response message for the file echo request to the client, the method further includes:

所述后台服务器确定所述第二设备标识与所述第一设备标识相匹配。The background server determines that the second device identification matches the first device identification.

第二方面,本申请实施例提供一种文件传输方法,所述方法包括:In a second aspect, an embodiment of the present application provides a file transmission method, the method includes:

客户端接收后台服务器生成的识别码,并在网页上展示所述识别码;所述识别码用于提供给移动终端,以使所述移动终端使用所述识别码与所述后台服务器建立网络连接,以及通过第三方应用程序向所述后台服务器发送文件传输请求,所述文件传输请求包括待传输的目标文件;The client receives the identification code generated by the background server, and displays the identification code on the web page; the identification code is used for providing the identification code to the mobile terminal, so that the mobile terminal can use the identification code to establish a network connection with the background server , and send a file transfer request to the background server through a third-party application, where the file transfer request includes the target file to be transferred;

所述客户端以轮询的方式向所述后台服务器发送文件回显请求,以及接收所述后台服务器返回的文件回显请求的响应消息;所述文件回显请求的响应消息包括目标文件在数据库中的地址,所述目标文件在数据库中的地址是所述后台服务器在接收到所述移动终端发送的文件传输请求后,将所述目标文件上传至数据库后得到的;The client sends a file echo request to the background server in a polling manner, and receives a response message for the file echo request returned by the background server; the response message for the file echo request includes the target file in the database. The address in the database, the address of the target file in the database is obtained by the background server after receiving the file transfer request sent by the mobile terminal and uploading the target file to the database;

所述客户端根据所述目标文件在数据库中的地址,从所述数据库中查询所述目标文件,以及在网页上回显所述目标文件。The client queries the target file from the database according to the address of the target file in the database, and echoes the target file on the web page.

结合第二方面,在第二方面的一种可实现方式中,所述识别码包括连接信息,所述连接信息用于供所述移动终端生成并向所述后台服务器发送连接请求,所述连接请求用于请求使用所述连接信息建立所述移动终端与所述后台服务器之间的网络连接。With reference to the second aspect, in an implementation manner of the second aspect, the identification code includes connection information, and the connection information is used for the mobile terminal to generate and send a connection request to the background server, and the connection The request is used for requesting to establish a network connection between the mobile terminal and the background server using the connection information.

结合第二方面,在第二方面的一种可实现方式中,所述客户端接收后台服务器生成的识别码之前,所述方法还包括:With reference to the second aspect, in an implementation manner of the second aspect, before the client receives the identification code generated by the background server, the method further includes:

当所述客户端有文件传输需求时,向所述后台服务器发送识别码生成请求,所述识别码生成请求包括第一设备标识,所述第一设备标识是所述客户端的唯一性标识。When the client has a file transmission requirement, an identification code generation request is sent to the background server, where the identification code generation request includes a first device identification, and the first device identification is a unique identification of the client.

结合第二方面,在第二方面的一种可实现方式中,所述识别码还包括所述第一设备标识;所述识别码还用于提供给所述移动终端,以使所述移动终端根据所述第一设备标识和所述目标文件生成所述文件传输请求。With reference to the second aspect, in an implementation manner of the second aspect, the identification code further includes the first device identification; the identification code is also used to provide the mobile terminal, so that the mobile terminal The file transfer request is generated according to the first device identifier and the target file.

结合第二方面,在第二方面的一种可实现方式中,所述文件回显请求包括所述第一设备标识,所述文件回显请求用于请求所述后台服务器返回与所述第一设备标识相对应的文件回显请求的响应消息。With reference to the second aspect, in an implementation manner of the second aspect, the file echo request includes the first device identifier, and the file echo request is used to request the background server to return a message with the first device identifier. The response message of the file echo request corresponding to the device ID.

第三方面,本申请实施例提供一种文件传输方法,所述方法包括:In a third aspect, an embodiment of the present application provides a file transmission method, the method includes:

移动终端通过第三方应用程序从客户端的网页上获取识别码,所述识别码由后台服务器生成;The mobile terminal obtains the identification code from the web page of the client through the third-party application, and the identification code is generated by the background server;

所述移动终端使用所述识别码与所述后台服务器建立网络连接后,通过第三方应用程序向所述后台服务器发送文件传输请求;After the mobile terminal establishes a network connection with the background server using the identification code, sends a file transfer request to the background server through a third-party application;

其中,所述文件传输请求包括待传输的目标文件;所述目标文件用于提供给所述后台服务器,以使所述后台服务器将所述目标文件上传至数据库,以及获取目标文件在数据库中的地址;所述目标文件在数据库中的地址用于提供给所述客户端,以使所述客户端根据所述目标文件在数据库中的地址,从所述数据库中查询所述目标文件,以及在网页上回显所述目标文件。Wherein, the file transfer request includes the target file to be transferred; the target file is used to provide the background server, so that the background server uploads the target file to the database, and obtains the target file in the database. address; the address of the target file in the database is used to provide the client, so that the client can query the target file from the database according to the address of the target file in the database, and The target file is echoed on the web page.

结合第三方面,在第三方面的一种可实现方式中,所述识别码包括连接信息;With reference to the third aspect, in an implementation manner of the third aspect, the identification code includes connection information;

所述移动终端使用所述识别码与所述后台服务器建立网络连接,包括:The mobile terminal uses the identification code to establish a network connection with the background server, including:

所述移动终端解析所述识别码,得到所述连接信息;The mobile terminal parses the identification code to obtain the connection information;

所述移动终端通过第三方应用程序向所述后台服务器发送连接请求,所述连接请求用于请求使用所述连接信息建立所述移动终端与所述后台服务器之间的网络连接。The mobile terminal sends a connection request to the background server through a third-party application, where the connection request is used to request to establish a network connection between the mobile terminal and the background server by using the connection information.

结合第三方面,在第三方面的一种可实现方式中,所述识别码还包括第一设备标识;With reference to the third aspect, in an implementation manner of the third aspect, the identification code further includes a first device identification;

所述移动终端通过第三方应用程序向所述后台服务器发送文件传输请求之前,所述方法还包括:Before the mobile terminal sends a file transfer request to the background server through a third-party application, the method further includes:

所述移动终端解析所述识别码,得到所述第一设备标识;The mobile terminal parses the identification code to obtain the first device identification;

所述移动终端根据所述第一设备标识和所述目标文件,生成所述文件传输请求。The mobile terminal generates the file transfer request according to the first device identifier and the target file.

第四方面,本申请实施例提供一种文件传输装置,所述装置应用于后台服务器,所述装置包括:In a fourth aspect, an embodiment of the present application provides a file transmission device, the device is applied to a background server, and the device includes:

处理单元,用于生成识别码;a processing unit for generating an identification code;

发送单元,用于及将所述识别码发送给客户端;所述客户端用于在网页上展示所述识别码,所述识别码用于提供给移动终端,以使所述移动终端使用所述识别码与所述后台服务器建立网络连接;a sending unit, configured to send the identification code to a client; the client is used to display the identification code on a web page, and the identification code is used to provide the mobile terminal, so that the mobile terminal can use the identification code. The identification code establishes a network connection with the background server;

所述处理单元,还用于与所述移动终端建立网络连接;the processing unit, further configured to establish a network connection with the mobile terminal;

接收单元,用于接收所述移动终端通过第三方应用程序发送的文件传输请求,所述文件传输请求包括待传输的目标文件;a receiving unit, configured to receive a file transfer request sent by the mobile terminal through a third-party application, where the file transfer request includes the target file to be transferred;

所述处理单元,还用于将所述目标文件上传至数据库,以及获取目标文件在数据库中的地址;The processing unit is further configured to upload the target file to a database, and obtain the address of the target file in the database;

所述接收单元,还用于接收所述客户端发送的文件回显请求;The receiving unit is further configured to receive a file echo request sent by the client;

所述发送单元,还用于向所述客户端返回文件回显请求的响应消息,所述文件回显请求的响应消息包括所述目标文件在数据库中的地址,所述目标文件在数据库中的地址用于提供给所述客户端,以使所述客户端根据所述目标文件在数据库中的地址,从所述数据库中查询所述目标文件,以及在网页上回显所述目标文件。The sending unit is further configured to return a response message of the file echo request to the client, where the response message of the file echo request includes the address of the target file in the database, and the address of the target file in the database. The address is provided to the client, so that the client queries the target file from the database according to the address of the target file in the database, and echoes the target file on a web page.

结合第四方面,在第四方面的一种可实现方式中,所述识别码包括连接信息;With reference to the fourth aspect, in an implementation manner of the fourth aspect, the identification code includes connection information;

所述接收单元,还用于:The receiving unit is also used for:

接收所述移动终端通过第三方应用程序发送的连接请求,所述连接请求包括所述连接信息;receiving a connection request sent by the mobile terminal through a third-party application, where the connection request includes the connection information;

所述处理单元具体用于:The processing unit is specifically used for:

确定所述连接请求中包括的连接信息无误后,与所述移动终端建立网络连接。After determining that the connection information included in the connection request is correct, establish a network connection with the mobile terminal.

结合第四方面,在第四方面的一种可实现方式中,所述接收单元还用于:With reference to the fourth aspect, in an implementation manner of the fourth aspect, the receiving unit is further configured to:

接收所述客户端发送的识别码生成请求,所述识别码生成请求包括第一设备标识,所述第一设备标识是所述客户端的唯一性标识。An identification code generation request sent by the client is received, where the identification code generation request includes a first device identification, and the first device identification is a unique identification of the client.

结合第四方面,在第四方面的一种可实现方式中,所述识别码还包括所述第一设备标识;所述识别码还用于提供给所述移动终端,以使所述移动终端根据所述第一设备标识和所述目标文件生成所述文件传输请求。With reference to the fourth aspect, in an implementation manner of the fourth aspect, the identification code further includes the first device identification; the identification code is also used to provide the mobile terminal, so that the mobile terminal The file transfer request is generated according to the first device identifier and the target file.

结合第四方面,在第四方面的一种可实现方式中,所述文件传输请求还包括所述第一设备标识;所述文件回显请求包括第二设备标识,所述第二设备标识是发送所述文件回显请求的客户端的唯一性标识;With reference to the fourth aspect, in an implementation manner of the fourth aspect, the file transfer request further includes the first device identifier; the file echo request includes a second device identifier, and the second device identifier is the unique identifier of the client that sends the file echo request;

所述处理单元还用于:The processing unit is also used to:

所述后台服务器确定所述第二设备标识与所述第一设备标识相匹配。The background server determines that the second device identification matches the first device identification.

第五方面,本申请实施例提供一种文件传输装置,所述装置应用于客户端,所述装置包括:In a fifth aspect, an embodiment of the present application provides a file transmission apparatus, the apparatus is applied to a client, and the apparatus includes:

接收单元,用于接收后台服务器生成的识别码,并在网页上展示所述识别码;所述识别码用于提供给移动终端,以使所述移动终端使用所述识别码与所述后台服务器建立网络连接,以及通过第三方应用程序向所述后台服务器发送文件传输请求,所述文件传输请求包括待传输的目标文件;The receiving unit is used for receiving the identification code generated by the background server and displaying the identification code on the webpage; the identification code is used for providing the identification code to the mobile terminal, so that the mobile terminal uses the identification code to communicate with the background server establishing a network connection, and sending a file transfer request to the background server through a third-party application, where the file transfer request includes the target file to be transferred;

发送单元,用于以轮询的方式向所述后台服务器发送文件回显请求;a sending unit, configured to send a file echo request to the background server in a polling manner;

所述接收单元,还用于接收所述后台服务器返回的文件回显请求的响应消息;所述文件回显请求的响应消息包括目标文件在数据库中的地址,所述目标文件在数据库中的地址是所述后台服务器在接收到所述移动终端发送的文件传输请求后,将所述目标文件上传至数据库后得到的;The receiving unit is further configured to receive a response message of the file echo request returned by the background server; the response message of the file echo request includes the address of the target file in the database, the address of the target file in the database is obtained after the background server uploads the target file to the database after receiving the file transfer request sent by the mobile terminal;

处理单元,用于根据所述目标文件在数据库中的地址,从所述数据库中查询所述目标文件,以及在网页上回显所述目标文件。The processing unit is configured to query the target file from the database according to the address of the target file in the database, and echo the target file on a web page.

结合第五方面,在第五方面的一种可实现方式中,所述识别码包括连接信息,所述连接信息用于供所述移动终端生成并向所述后台服务器发送连接请求,所述连接请求用于请求使用所述连接信息建立所述移动终端与所述后台服务器之间的网络连接。With reference to the fifth aspect, in an implementation manner of the fifth aspect, the identification code includes connection information, and the connection information is used for the mobile terminal to generate and send a connection request to the background server, and the connection information The request is used for requesting to establish a network connection between the mobile terminal and the background server using the connection information.

结合第五方面,在第五方面的一种可实现方式中,所述发送单元还用于:With reference to the fifth aspect, in an implementation manner of the fifth aspect, the sending unit is further configured to:

当所述客户端有文件传输需求时,向所述后台服务器发送识别码生成请求,所述识别码生成请求包括第一设备标识,所述第一设备标识是所述客户端的唯一性标识。When the client has a file transmission requirement, an identification code generation request is sent to the background server, where the identification code generation request includes a first device identification, and the first device identification is a unique identification of the client.

结合第五方面,在第五方面的一种可实现方式中,所述识别码还包括所述第一设备标识;所述识别码还用于提供给所述移动终端,以使所述移动终端根据所述第一设备标识和所述目标文件生成所述文件传输请求。With reference to the fifth aspect, in an implementation manner of the fifth aspect, the identification code further includes the first device identification; the identification code is also used to provide the mobile terminal, so that the mobile terminal The file transfer request is generated according to the first device identifier and the target file.

结合第五方面,在第五方面的一种可实现方式中,所述文件回显请求包括所述第一设备标识,所述文件回显请求用于请求所述后台服务器返回与所述第一设备标识相对应的文件回显请求的响应消息。With reference to the fifth aspect, in an implementation manner of the fifth aspect, the file echo request includes the first device identifier, and the file echo request is used to request the background server to return a message with the first device identifier. The response message of the file echo request corresponding to the device ID.

第六方面,本申请实施例提供一种文件传输装置,所述装置应用于移动终端,所述装置包括:In a sixth aspect, an embodiment of the present application provides a file transmission apparatus, the apparatus is applied to a mobile terminal, and the apparatus includes:

获取单元,用于通过第三方应用程序从客户端的网页上获取识别码,所述识别码由后台服务器生成;an obtaining unit, used for obtaining an identification code from a web page of the client through a third-party application, where the identification code is generated by a background server;

处理单元,用于使用所述识别码与所述后台服务器建立网络连接;a processing unit, configured to establish a network connection with the background server by using the identification code;

发送单元,用于通过第三方应用程序向所述后台服务器发送文件传输请求;a sending unit, configured to send a file transfer request to the background server through a third-party application;

其中,所述文件传输请求包括待传输的目标文件;所述目标文件用于提供给所述后台服务器,以使所述后台服务器将所述目标文件上传至数据库,以及获取目标文件在数据库中的地址;所述目标文件在数据库中的地址用于提供给所述客户端,以使所述客户端根据所述目标文件在数据库中的地址,从所述数据库中查询所述目标文件,以及在网页上回显所述目标文件。Wherein, the file transfer request includes the target file to be transferred; the target file is used to provide the background server, so that the background server uploads the target file to the database, and obtains the target file in the database. address; the address of the target file in the database is used to provide the client, so that the client can query the target file from the database according to the address of the target file in the database, and The target file is echoed on the web page.

结合第六方面,在第六方面的一种可实现方式中,所述识别码包括连接信息;With reference to the sixth aspect, in an implementation manner of the sixth aspect, the identification code includes connection information;

所述处理单元具体用于:The processing unit is specifically used for:

解析所述识别码,得到所述连接信息;以及,通过第三方应用程序向所述后台服务器发送连接请求,所述连接请求用于请求使用所述连接信息建立所述移动终端与所述后台服务器之间的网络连接。Parsing the identification code to obtain the connection information; and sending a connection request to the background server through a third-party application, where the connection request is used to request to use the connection information to establish the mobile terminal and the background server network connection between.

结合第六方面,在第六方面的一种可实现方式中,所述识别码还包括第一设备标识;With reference to the sixth aspect, in an implementation manner of the sixth aspect, the identification code further includes a first device identification;

所述处理单元还用于:The processing unit is also used to:

解析所述识别码,得到所述第一设备标识;以及,根据所述第一设备标识和所述目标文件,生成所述文件传输请求。Parsing the identification code to obtain the first device identification; and generating the file transfer request according to the first device identification and the target file.

第七方面,本发明实施例提供了一种电子设备,包括:In a seventh aspect, an embodiment of the present invention provides an electronic device, including:

存储器,用于存储程序指令;memory for storing program instructions;

处理器,用于调用并执行所述存储器中的程序指令,以实现第一方面所述的文件传输方法。The processor is configured to call and execute the program instructions in the memory to implement the file transfer method described in the first aspect.

第八方面,本发明实施例提供了一种电子设备,包括:In an eighth aspect, an embodiment of the present invention provides an electronic device, including:

存储器,用于存储程序指令;memory for storing program instructions;

处理器,用于调用并执行所述存储器中的程序指令,以实现第二方面所述的文件传输方法。The processor is configured to call and execute the program instructions in the memory, so as to implement the file transfer method described in the second aspect.

第九方面,本发明实施例提供了一种电子设备,包括:In a ninth aspect, an embodiment of the present invention provides an electronic device, including:

存储器,用于存储程序指令;memory for storing program instructions;

处理器,用于调用并执行所述存储器中的程序指令,以实现第三方面所述的文件传输方法。The processor is configured to call and execute the program instructions in the memory, so as to implement the file transfer method described in the third aspect.

第十方面,本发明实施例提供了一种可读存储介质,所述可读存储介质中存储有计算机程序,当文件传输装置的至少一个处理器执行所述计算机程序时,文件传输装置执行第一方面所述的文件传输方法。In a tenth aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored in the readable storage medium, and when at least one processor of the file transmission apparatus executes the computer program, the file transmission apparatus executes the first The file transfer method described in one aspect.

第十一方面,本发明实施例提供了一种可读存储介质,所述可读存储介质中存储有计算机程序,当文件传输装置的至少一个处理器执行所述计算机程序时,文件传输装置执行第二方面所述的文件传输方法。In an eleventh aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored in the readable storage medium. When at least one processor of the file transmission apparatus executes the computer program, the file transmission apparatus executes the computer program. The file transfer method described in the second aspect.

第十二方面,本发明实施例提供了一种可读存储介质,所述可读存储介质中存储有计算机程序,当文件传输装置的至少一个处理器执行所述计算机程序时,文件传输装置执行第三方面所述的文件传输方法。In a twelfth aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored in the readable storage medium. When at least one processor of the file transmission apparatus executes the computer program, the file transmission apparatus executes the computer program. The file transfer method described in the third aspect.

采用上述方法,后台服务器生成识别码,以供客户端在网页上展示识别码,如此,移动终端可以从网页上获取识别码后,使用该识别码与后台服务器建立网络连接,从而通过第三方应用程序向服务器发送文件传输请求;相应地,后台服务器接收到文件传输请求后,可以将文件传输请求中包括的目标文件上传至数据库,并将目标文件在数据库中的地址作为响应消息返回给客户端,以便客户端从数据库中查询目标文件,以及在网页上回显目标文件。可见,本申请实施例中,仅根据识别码就可以使移动终端和后台服务器建立连接,无需使用USB线或存储卡就可以实现文件的传输,整个文件传输过程操作简单,使用方便,从而能够提高文件传输的效率。Using the above method, the background server generates an identification code for the client to display the identification code on the web page. In this way, the mobile terminal can obtain the identification code from the web page and use the identification code to establish a network connection with the background server, so as to use the third-party application to establish a network connection. The program sends a file transfer request to the server; accordingly, after receiving the file transfer request, the background server can upload the target file included in the file transfer request to the database, and return the address of the target file in the database as a response message to the client , so that the client can query the target file from the database and echo the target file on the web page. It can be seen that in the embodiment of the present application, the mobile terminal can be connected to the background server only according to the identification code, and the file transmission can be realized without using a USB cable or a memory card. The entire file transmission process is simple to operate and easy to use, thereby improving the Efficiency of file transfer.

附图说明Description of drawings

图1为本申请实施例适用的系统架构的结构示意图;FIG. 1 is a schematic structural diagram of a system architecture to which an embodiment of the application is applicable;

图2为本申请实施例提供的一种文件传输方法所对应的流程示意图;2 is a schematic flowchart corresponding to a file transmission method provided by an embodiment of the present application;

图3为本申请实施例提供的一种文件传输方法的整体性的流程示意图;3 is a schematic flowchart of the integrity of a file transmission method provided by an embodiment of the present application;

图4为本申请实施例提供的另一种系统架构的示意图;FIG. 4 is a schematic diagram of another system architecture provided by an embodiment of the present application;

图5为本申请实施例提供的一种文件传输方法所对应的流程示意图;FIG. 5 is a schematic flowchart corresponding to a file transmission method provided by an embodiment of the present application;

图6为本申请实施例提供的一种文件传输装置的结构示意图;6 is a schematic structural diagram of a file transmission device according to an embodiment of the present application;

图7为本申请实施例提供的另一种文件传输装置的结构示意图;7 is a schematic structural diagram of another file transmission device provided by an embodiment of the present application;

图8为本申请实施例提供的又一种文件传输装置的结构示意图;FIG. 8 is a schematic structural diagram of another file transmission device provided by an embodiment of the present application;

图9为本申请实施例提供的一种电子设备的硬件结构示意图;9 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application;

图10为本申请实施例提供的另一种电子设备的硬件结构示意图;10 is a schematic diagram of a hardware structure of another electronic device provided by an embodiment of the present application;

图11为本申请实施例提供的又一种电子设备的硬件结构示意图。FIG. 11 is a schematic diagram of a hardware structure of another electronic device according to an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

下面首先结合图1对本申请实施例适用的可能的系统架构进行介绍。A possible system architecture applicable to the embodiments of the present application is first introduced below with reference to FIG. 1 .

请参考图1,其示例性示出了本申请实施例适用的一种系统的结构示意图。该系统100可以包括移动终端(例如图1中示出的移动终端1011和移动终端1012)、客户端(例如图1中示出的客户端1021和客户端1022)、后台服务器103、数据库104以及第三方服务器105。其中,移动终端1011(或移动终端1012)与第三方服务器105通过网络建立通信连接;第三方服务器105与后台服务器103通过网络建立通过连接;后台服务器103一方面可以通过网络与数据库104建立通信连接,另一方面还可以通过网络与客户端1021(或客户端1022)建立通信连接。Please refer to FIG. 1 , which exemplarily shows a schematic structural diagram of a system to which the embodiments of the present application are applied. The system 100 may include mobile terminals (eg, mobile terminal 1011 and mobile terminal 1012 shown in FIG. 1 ), clients (eg, client 1021 and client 1022 shown in FIG. 1 ), background server 103 , database 104 , and Third-party server 105 . Wherein, the mobile terminal 1011 (or the mobile terminal 1012) establishes a communication connection with the third-party server 105 through the network; the third-party server 105 establishes a communication connection with the background server 103 through the network; on the one hand, the background server 103 can establish a communication connection with the database 104 through the network. , on the other hand, a communication connection can also be established with the client 1021 (or the client 1022 ) through the network.

移动终端1011(或移动终端1022)中安装有第三方应用程序(APP),移动终端1011通过第三方应用程序与第三方服务器105进行通信。举个例子,第三方应用程序可以是微信,相应的,第三方服务器105可以是微信服务器,如此,移动终端1011可以通过微信向微信服务器发送请求消息,以及接收微信服务器返回的响应消息。A third-party application program (APP) is installed in the mobile terminal 1011 (or the mobile terminal 1022 ), and the mobile terminal 1011 communicates with the third-party server 105 through the third-party application program. For example, the third-party application program can be WeChat, and correspondingly, the third-party server 105 can be a WeChat server. In this way, the mobile terminal 1011 can send a request message to the WeChat server through WeChat, and receive a response message returned by the WeChat server.

客户端1021(或客户端1022)可以通过浏览器访问网页,并可以通过网络与该网页对应的后台服务器103进行通信,比如,客户端1021可以向后台服务器103发送请求消息,以及接收后台服务器103返回的响应消息;客户端1022可以向后台服务器103发送请求消息,以及接收后台服务器103返回的响应消息。举个例子,客户端1021通过浏览器访问58同城的网页,在访问过程中,客户端1021可以向58同城的后台服务器103发送请求消息,也可以接收58同城的后台服务器103返回的响应消息。The client 1021 (or the client 1022) can access the webpage through a browser, and can communicate with the background server 103 corresponding to the webpage through the network. For example, the client 1021 can send a request message to the background server 103, and receive the background server 103 The returned response message; the client 1022 can send a request message to the background server 103 and receive the response message returned by the background server 103 . For example, the client 1021 accesses the webpage of 58.com through a browser. During the access process, the client 1021 can send a request message to the background server 103 of 58.com, and can also receive a response message returned by the background server 103 of 58.com.

后台服务器103可以将接受到的数据提交到数据库104。The background server 103 may submit the received data to the database 104 .

本申请实施例中,移动终端1011(或移动终端1012)可以是手机、平板电脑或智能穿戴设备等。客户端1021(或客户端1022)可以是台式计算机或笔记本电脑等。In this embodiment of the present application, the mobile terminal 1011 (or the mobile terminal 1012 ) may be a mobile phone, a tablet computer, a smart wearable device, or the like. Client 1021 (or client 1022) may be a desktop computer or a laptop computer, or the like.

基于图1所示的系统架构,图2示例性示出了本申请实施例提供的一种文件传输方法所对应的流程示意图。如图2所示,具体包括如下步骤:Based on the system architecture shown in FIG. 1 , FIG. 2 exemplarily shows a schematic flowchart corresponding to a file transmission method provided by an embodiment of the present application. As shown in Figure 2, it specifically includes the following steps:

步骤201,后台服务器生成识别码,以及将识别码发送给客户端。Step 201, the background server generates an identification code, and sends the identification code to the client.

步骤202,客户端接收后台服务器生成的识别码,并在网页上展示识别码。Step 202, the client receives the identification code generated by the background server, and displays the identification code on the webpage.

步骤203,客户端以轮询的方式向后台服务器发送文件回显请求。Step 203, the client sends a file echo request to the background server in a polling manner.

步骤204,移动终端通过第三方应用程序从客户端的网页上获取识别码。Step 204, the mobile terminal obtains the identification code from the web page of the client through a third-party application.

步骤205,移动终端使用识别码与后台服务器建立网络连接后,通过第三方应用程序向后台服务器发送文件传输请求。Step 205, after the mobile terminal establishes a network connection with the background server using the identification code, sends a file transfer request to the background server through a third-party application.

步骤206,后台服务器与移动终端建立网络连接后,接收移动终端通过第三方应用程序发送的文件传输请求。Step 206: After the background server establishes a network connection with the mobile terminal, it receives a file transfer request sent by the mobile terminal through a third-party application.

步骤207,后台服务器将目标文件上传至数据库,以及获取目标文件在数据库中的地址。Step 207, the background server uploads the target file to the database, and obtains the address of the target file in the database.

步骤208,后台服务器接收客户端发送的文件回显请求,以及向客户端返回文件回显请求的响应消息。Step 208, the background server receives the file echo request sent by the client, and returns a response message of the file echo request to the client.

步骤209,客户端接收后台服务器返回的文件回显请求的响应消息。Step 209, the client receives the response message of the file echo request returned by the background server.

步骤210,客户端根据目标文件在数据库中的地址,从数据库中查询目标文件,以及在网页上回显目标文件。Step 210, the client queries the target file from the database according to the address of the target file in the database, and echoes the target file on the web page.

采用上述方法,后台服务器生成识别码,以供客户端在网页上展示识别码,如此,移动终端可以从网页上获取识别码后,使用该识别码与后台服务器建立网络连接,从而通过第三方应用程序向服务器发送文件传输请求;相应地,后台服务器接收到文件传输请求后,可以将文件传输请求中包括的目标文件上传至数据库,并将目标文件在数据库中的地址作为响应消息返回给客户端,以便客户端从数据库中查询目标文件,以及在网页上回显目标文件。可见,本申请实施例中,仅根据识别码就可以使移动终端和后台服务器建立连接,无需使用USB线或存储卡就可以实现文件的传输,整个文件传输过程操作简单,使用方便,从而能够提高文件传输的效率。Using the above method, the background server generates an identification code for the client to display the identification code on the web page. In this way, the mobile terminal can obtain the identification code from the web page and use the identification code to establish a network connection with the background server, so as to use the third-party application to establish a network connection. The program sends a file transfer request to the server; accordingly, after receiving the file transfer request, the background server can upload the target file included in the file transfer request to the database, and return the address of the target file in the database as a response message to the client , so that the client can query the target file from the database and echo the target file on the web page. It can be seen that in the embodiment of the present application, the mobile terminal can be connected to the background server only according to the identification code, and the file transmission can be realized without using a USB cable or a memory card. The entire file transmission process is simple to operate and easy to use, thereby improving the Efficiency of file transfer.

在执行步骤201之前,后台服务器可以在接收到客户端的识别码生成请求之后,生成识别码。Before performing step 201, the background server may generate an identification code after receiving an identification code generation request from the client.

也就是说,当客户端有文件传输需求时,可以向后台服务器发送识别码生成请求。相应地,后台服务器接收到客户端发送的识别码生成请求之后,可以生成识别码。其中,识别码生成请求可以包括第一设备标识,第一设备标识是客户端的唯一性标识,比如可以是客户端的媒体存取控制(Media Access Control,MAC)地址,或者也可以是客户端的设备序列号,具体不做限定。That is to say, when the client has a file transfer requirement, it can send an identification code generation request to the background server. Correspondingly, after receiving the identification code generation request sent by the client, the background server can generate the identification code. Wherein, the identification code generation request may include a first device identification, which is a unique identification of the client, for example, may be the media access control (Media Access Control, MAC) address of the client, or may also be the device sequence of the client No., there is no specific limitation.

具体地,可以在网页上触发识别码生成的过程,即,客户端通过网页向后台服务器发送识别码生成的请求消息。Specifically, the process of generating the identification code can be triggered on the web page, that is, the client sends a request message for generating the identification code to the background server through the web page.

举个例子,某网页有上传文件的需求,而待上传的文件保存在用户的移动终端中,此时,就需要将保存在移动终端中的文件传输到至网页,并在网页上显示。用户可以在网页上触发识别码生成的过程(比如点击网页上“生成识别码”的组件),客户端就可以通过网页向后台服务器发送识别码生成请求。For example, a webpage needs to upload a file, and the file to be uploaded is stored in the user's mobile terminal. In this case, the file stored in the mobile terminal needs to be transferred to the webpage and displayed on the webpage. The user can trigger the identification code generation process on the web page (for example, click the "generate identification code" component on the web page), and the client can send an identification code generation request to the background server through the web page.

步骤201中,后台服务器接收到识别码生成请求后,可以利用识别码生成工具生成识别码。In step 201, after receiving the identification code generation request, the background server may generate an identification code by using an identification code generation tool.

识别码可以包括第一设备标识和连接信息。其中,第一设备标识可以是客户端的唯一性标识,比如可以是客户端的MAC地址,或者也可以是客户端的设备序列号,具体不做限定;连接信息可以是后台服务器的地址,用于提供给移动终端,以便移动终端使用该连接信息建立与所述后台服务器之间的网络连接。The identification code may include the first device identification and connection information. The first device identifier may be the unique identifier of the client, such as the MAC address of the client, or the device serial number of the client, which is not specifically limited; the connection information may be the address of the background server, which is used to provide the mobile terminal, so that the mobile terminal uses the connection information to establish a network connection with the background server.

识别码中包括的连接信息,可以用于供移动终端生成并向后台服务器发送连接请求,连接请求用于请求使用连接信息建立移动终端与后台服务器之间的网络连接。The connection information included in the identification code can be used for the mobile terminal to generate and send a connection request to the background server, where the connection request is used to request to use the connection information to establish a network connection between the mobile terminal and the background server.

识别码中包括的第一设备标识,可以用于提供给移动终端,以使移动终端根据第一设备标识和目标文件生成文件传输请求。The first device identification included in the identification code can be used to provide the mobile terminal, so that the mobile terminal generates a file transfer request according to the first device identification and the target file.

进一步地,识别码可以是二维码、条形码或加密信息等,具体不做限定。Further, the identification code may be a two-dimensional code, a barcode or encrypted information, etc., which is not specifically limited.

步骤202中,客户端可以在网页上展示识别码。如果识别码是二维码,客户端可以在网页上展示二维码的图片;如果识别码是条形码,客户端可以在网页上展示条形码的图片;如果识别码是加密信息,客户端可以在网页上展示该加密信息。In step 202, the client can display the identification code on the webpage. If the identification code is a two-dimensional code, the client can display the picture of the two-dimensional code on the webpage; if the identification code is a barcode, the client can display the picture of the barcode on the webpage; if the identification code is encrypted information, the client can display the picture of the barcode on the webpage The encrypted information is displayed on the .

对于客户端而言,识别码可以用于提供给移动终端,以使移动终端使用识别码与后台服务器建立网络连接,以及通过第三方应用程序向后台服务器发送文件传输请求。For the client, the identification code can be used to provide the mobile terminal, so that the mobile terminal uses the identification code to establish a network connection with the background server, and sends a file transfer request to the background server through a third-party application program.

步骤203中,客户端在网页上展示识别码的同时(或之后),就可以以轮询的方式向后台服务器发送文件回显请求,即请求后台服务器返回目标文件在数据库中的地址信息。In step 203, while (or after) displaying the identification code on the web page, the client can send a file echo request to the background server in a polling manner, that is, request the background server to return the address information of the target file in the database.

轮询,顾名思义,是定时发出询问的意思。轮询可以用来解决服务器压力过大的问题,如果保持多个长连接,服务器压力会过大,因此可以专门建立一个轮询请求的接口,里面只保留一个任务的标识号(Identity Document,ID),客户端只需要发送任务的ID,就可以获取当前任务的情况。如果返回了结果,轮询结束,没有返回则等待一段时间后,继续发送请求。Polling, as the name suggests, means to issue a query periodically. Polling can be used to solve the problem of excessive server pressure. If multiple long connections are maintained, the server pressure will be too high. Therefore, a polling request interface can be specially established, which only retains the identification number of one task (Identity Document, ID ), the client only needs to send the ID of the task to get the status of the current task. If the result is returned, the polling is over. If no result is returned, wait for a period of time before continuing to send the request.

举个例子,客户端可以在T1时刻向后台服务器发送文件回显请求,如果客户端没有接收到文件回显请求的响应消息,则可以在T2时刻(即T1时刻之后的某一时刻)再次向后台服务器发送文件回显请求,如果客户端仍然没有接收到文件回显请求的响应消息,则可以在T3时刻(即T2时刻之后的某一时刻)再次向后台服务器发送文件回显请求,直至接收到文件回显请求的响应消息后,轮询结束。For example, the client can send a file echo request to the background server at time T1. If the client does not receive a response message for the file echo request, it can send the request again at time T2 (that is, a certain time after time T1). The background server sends a file echo request. If the client still does not receive a response message for the file echo request, it can send a file echo request to the background server again at time T3 (that is, a certain time after time T2) until it receives the request. The polling ends when the response message to the file echo request is reached.

本申请实施例中,文件回显请求可以包括第一设备标识,该设备标识是客户端的唯一性标识,比如可以是客户的MAC地址、客户端的设备序列号等,具体不做限定。In this embodiment of the present application, the file echo request may include a first device identifier, which is a unique identifier of the client, such as the client's MAC address, the client's device serial number, etc., which is not specifically limited.

文件回显请求可以用于请求后台服务器返回与第一设备标识相对应的文件回显请求的响应消息。The file echo request may be used to request the background server to return a response message to the file echo request corresponding to the first device identifier.

步骤204中,根据识别码的类型的不同,移动终端获取识别码的方式也不同。In step 204, according to different types of identification codes, the mobile terminal acquires the identification codes in different ways.

如果识别码是二维码或条形码,那么,移动终端可以通过第三方应用程序扫描获取二维码或条形码。If the identification code is a QR code or a barcode, the mobile terminal can scan the QR code or barcode through a third-party application.

如果识别码是加密信息,比如是密文数字,那么,移动终端可以通过第三方应用程序接收用户输入的加密信息。If the identification code is encrypted information, such as cipher text numbers, then the mobile terminal can receive the encrypted information input by the user through a third-party application program.

在执行步骤205之前,移动终端可以解析识别码,得到识别码中包括的连接信息和第一设备标识。Before performing step 205, the mobile terminal may parse the identification code to obtain the connection information and the first device identification included in the identification code.

步骤205中,移动终端解析识别码得到连接信息后,可以通过第三方应用程序向后台服务器发送连接请求。其中,连接请求可以用于请求使用连接信息建立移动终端与后台服务器之间的网络连接。In step 205, after the mobile terminal parses the identification code to obtain the connection information, it can send a connection request to the background server through a third-party application. The connection request may be used to request to establish a network connection between the mobile terminal and the background server by using the connection information.

进一步地,连接请求还可以包括用户的身份信息,即用户在移动终端上登录的身份信息。用户的身份信息可以包括用户的登录名称或用户的ID等,具体不做限定。Further, the connection request may also include the user's identity information, that is, the user's identity information logged on the mobile terminal. The user's identity information may include the user's login name or the user's ID, etc., which is not specifically limited.

在移动终端通过第三方应用程序向后台服务器发送文件传输请求之前,移动终端解析识别码得到第一设备标识后,可以根据第一设备标识和待传输的目标文件,生成文件传输请求。Before the mobile terminal sends a file transfer request to the background server through a third-party application, after the mobile terminal parses the identification code to obtain the first device identifier, the file transfer request can be generated according to the first device identifier and the target file to be transferred.

进而,移动终端可以通过第三方应用程序向后台服务器发送文件传输请求。其中,文件传输请求可以包括待传输的目标文件和第一设备标识;目标文件用于提供给后台服务器,以使后台服务器将目标文件上传至数据库,以及获取目标文件在数据库中的地址;目标文件在数据库中的地址用于提供给客户端,以使客户端根据所述目标文件在数据库中的地址,从数据库中查询目标文件,以及在网页上回显目标文件。Furthermore, the mobile terminal can send a file transfer request to the background server through a third-party application. Wherein, the file transfer request may include the target file to be transferred and the first device identification; the target file is used to provide the background server, so that the background server uploads the target file to the database, and obtains the address of the target file in the database; the target file The address in the database is provided to the client, so that the client can query the target file from the database according to the address of the target file in the database, and echo the target file on the web page.

本申请实施例中,第三方应用程序起到一个中转的功能,将移动终端和后台服务器借助第三方应用程序连接起来。第三方应用程序可以是多种不同的应用程序,例如第三方应用程序可以是微信,或者也可以是支付宝,或者还可以是其它具备中转功能的应用程序。In the embodiment of the present application, the third-party application program plays a relay function, connecting the mobile terminal and the background server with the help of the third-party application program. The third-party application may be a variety of different applications, for example, the third-party application may be WeChat, or it may be Alipay, or it may also be another application with a transfer function.

需要说明的是,移动终端通过第三方应用程序向后台服务器发送连接请求的具体过程如下,移动终端通过第三方应用程序向第三方服务器(即第三方应用程序的服务器)发送连接请求,第三方服务器将连接请求转发到后台服务器。类似地,后续步骤206中,移动终端通过第三方应用程序向后台服务器发送文件传输请求的具体过程如下,移动终端通过第三方应用程序向第三方服务器发送文件传输请求,第三方服务器将文件传输请求转发到后台服务器。It should be noted that the specific process for the mobile terminal to send a connection request to the background server through a third-party application is as follows. Forward the connection request to the background server. Similarly, in the subsequent step 206, the specific process of the mobile terminal sending the file transfer request to the background server through the third-party application is as follows, the mobile terminal sends the file transfer request to the third-party server through the third-party application, and the third-party server sends the file transfer request. Forward to the backend server.

本申请实施例中,目标文件可以是文档文件,也可以是图片文件,还可以是数据表文件,具体不做限定。In this embodiment of the present application, the target file may be a document file, a picture file, or a data table file, which is not specifically limited.

步骤206中,后台服务器接收到移动终端通过第三方应用程序发送的连接请求之后,如果确定所述连接请求中包括的连接信息无误,就可以与移动终端建立网络连接。进而,后台服务器可以接收移动终端通过第三方应用程序发送的文件传输请求。In step 206, after receiving the connection request sent by the mobile terminal through the third-party application, the background server can establish a network connection with the mobile terminal if it is determined that the connection information included in the connection request is correct. Furthermore, the background server may receive a file transfer request sent by the mobile terminal through a third-party application.

具体地,后台服务器接收到连接请求后,解析得到连接请求中包括的连接信息和用户身份信息,由于连接信息是后台服务器在生成识别码的过程中产生的,因此,后台服务器在确定连接请求中包括的连接信息无误后,就可以将该连接信息和用户身份信息绑定在一起,至此,后台服务器与移动终端建立网络连接。Specifically, after the background server receives the connection request, it parses and obtains the connection information and user identity information included in the connection request. Since the connection information is generated by the background server in the process of generating the identification code, the background server determines the connection request After the included connection information is correct, the connection information and the user identity information can be bound together. At this point, the background server establishes a network connection with the mobile terminal.

步骤207中,后台服务器将目标文件上传至数据库后,可以获取目标文件在数据库中的地址。其中,目标文件在数据库中的地址可以是目标文件在数据库中的统一资源定位(Uniform Resource Locator,URL)地址。In step 207, after uploading the target file to the database, the background server can obtain the address of the target file in the database. The address of the target file in the database may be a Uniform Resource Locator (URL) address of the target file in the database.

在执行步骤208之前,后台服务器需要确定文件回显请求中包括的第二设备标识与文件传输请求中包括的第一设备标识相匹配。其中,第二设备标识是发送所述文件回显请求的客户端的唯一性标识。Before performing step 208, the background server needs to determine that the second device identifier included in the file echo request matches the first device identifier included in the file transfer request. Wherein, the second device identifier is the unique identifier of the client that sends the file echo request.

举个例子,客户端A和客户端B都向后台服务器发送文件回显请求,其中,客户端A发送的文件回显请求包括客户端A的设备标识,客户端B发送的文件回显请求包括客户端B的设备标识。当后台服务器接收到移动终端发送的文件传输请求时,如果文件传输请求中包括的是客户端A的设备标识,那么,后台服务器可以确定客户端A发送的文件回显请求中包括的设备标识与移动终端发送的文件传输请求中包括的设备标识相匹配,进而,后台服务器可以向客户端A返回文件回显请求的响应消息。For example, both client A and client B send a file echo request to the background server, where the file echo request sent by client A includes the device ID of client A, and the file echo request sent by client B includes Device ID of client B. When the background server receives the file transfer request sent by the mobile terminal, if the file transfer request includes the device ID of client A, the background server can determine that the device ID included in the file echo request sent by client A is the same as the device ID included in the file echo request sent by client A. The device identifier included in the file transfer request sent by the mobile terminal matches, and further, the background server can return a response message to the client A for the file echo request.

步骤208中,文件回显请求的响应消息可以包括目标文件在数据库中的地址。目标文件在数据库中的地址可以用于提供给客户端,以使客户端根据目标文件在数据库中的地址,从数据库中查询目标文件,以及在网页上回显目标文件。In step 208, the response message of the file echo request may include the address of the target file in the database. The address of the target file in the database can be provided to the client, so that the client can query the target file from the database according to the address of the target file in the database, and echo the target file on the web page.

进一步地,目标文件在数据库中的地址可以是目标文件在数据库中的URL地址。Further, the address of the target file in the database may be the URL address of the target file in the database.

步骤209和步骤210中,客户端可以根据目标文件在数据库中的地址,从数据库中查询目标文件,并在网页上回显目标文件。In steps 209 and 210, the client can query the target file from the database according to the address of the target file in the database, and echo the target file on the web page.

如果目标文件是图片文件,那么,客户端从数据库中查询到该图片文件后,可以在网页上回显图片。If the target file is an image file, the client can echo the image on the web page after querying the image file from the database.

如果目标文件是文档文件,那么,客户端从数据库中查询到该文件文件后,可以在网页上回显文件(如回显文档名称等)。If the target file is a document file, the client can echo the file (eg, echo the document name, etc.) on the web page after querying the file from the database.

为了更加清楚地描述本申请实施例提供的文件传输方法,下面以第三方应用程序是微信为例,结合图3,对文件传输的整体性流程进行示例性说明。如图3所示,具体包括如下步骤:In order to more clearly describe the file transfer method provided by the embodiments of the present application, the following takes the third-party application as WeChat as an example, and an overall process of file transfer is exemplified in conjunction with FIG. 3 . As shown in Figure 3, it specifically includes the following steps:

步骤301,客户端向后台服务器发送二维码生成请求。Step 301, the client sends a two-dimensional code generation request to the background server.

步骤302,后台服务器接收到二维码生成请求后,生成二维码。Step 302: After receiving the request for generating a two-dimensional code, the background server generates a two-dimensional code.

步骤303,后台服务器将二维码发送给客户端。Step 303, the background server sends the two-dimensional code to the client.

步骤304,客户端接收后台服务器生成的二维码,并在网页上展示二维码。Step 304, the client receives the two-dimensional code generated by the background server, and displays the two-dimensional code on the webpage.

步骤305,客户端以轮询的方式向后台服务器发送文件回显请求。Step 305, the client sends a file echo request to the background server in a polling manner.

步骤306,移动终端打开微信,通过扫描的方式获取二维码。Step 306, the mobile terminal opens WeChat, and obtains the two-dimensional code by scanning.

步骤307,移动终端向微信服务器发送连接请求,请求建立与后台服务器之间的网络连接。Step 307, the mobile terminal sends a connection request to the WeChat server, requesting to establish a network connection with the background server.

步骤308,微信服务器将连接请求转发至后台服务器。Step 308, the WeChat server forwards the connection request to the background server.

步骤309,后台服务器接受到连接请求后,与移动终端建立网络连接,并返回连接成功的响应消息。Step 309, after receiving the connection request, the background server establishes a network connection with the mobile terminal, and returns a response message that the connection is successful.

步骤310,微信服务器将连接成功的响应消息返回给移动终端,移动终端在微信上显示连接成功的指示消息。In step 310, the WeChat server returns a response message of successful connection to the mobile terminal, and the mobile terminal displays an indication message of successful connection on WeChat.

步骤311,移动终端通过微信向微信服务器发送文件传输请求。Step 311, the mobile terminal sends a file transfer request to the WeChat server through WeChat.

步骤312,微信服务器将文件传输请求转发至后台服务器。Step 312, the WeChat server forwards the file transfer request to the background server.

步骤313,后台服务器接收到文件传输请求后,将目标文件上传至数据库,以及获取目标文件在数据库中的地址。Step 313, after receiving the file transfer request, the background server uploads the target file to the database, and obtains the address of the target file in the database.

步骤314,后台服务器如果确定客户端发送的文件回显请求中包括的设备标识,与移动终端发送的文件传输请求中包括的设备标识相匹配,则接收客户端发送的文件回显请求,以及向客户端返回文件回显请求的响应消息。Step 314, if the background server determines that the device identifier included in the file echo request sent by the client matches the device identifier included in the file transfer request sent by the mobile terminal, then the backend server receives the file echo request sent by the client, and sends the request to the client. The client returns a response message for the file echo request.

步骤315,客户端接收后台服务器返回的文件回显请求的响应消息。Step 315, the client receives the response message of the file echo request returned by the background server.

步骤316,客户端根据目标文件在数据库中的地址,从数据库中查询目标文件,以及在网页上回显目标文件。Step 316, the client queries the target file from the database according to the address of the target file in the database, and echoes the target file on the web page.

需要说明的是,上述步骤301至步骤316仅为一种示例,在其它可能的示例中,移动终端也可以通过现有的其他应用程序与后台服务器进行通信,或者还可以通过独立开发出的新的应用程序与后台服务器进行通信,具体不做限定。It should be noted that the above steps 301 to 316 are only an example, and in other possible examples, the mobile terminal can also communicate with the background server through other existing applications, or can also use a new independently developed application. The application program communicates with the background server, which is not limited.

考虑到随着访问量的增加,图1中示出的一个后台服务器105可能无法满足日益增加的访问需求,本申请实施例中,可以通过设置后台服务器集群来缓解后台服务器105的压力。Considering that with the increase of access volume, one background server 105 shown in FIG. 1 may not be able to meet the increasing access demand, in this embodiment of the present application, a background server cluster can be set to relieve the pressure on the background server 105 .

图4示例性示出了本申请实施例提供的另一种系统架构的示意图。该系统400可以包括移动终端(例如图4中示出的移动终端4011和移动终端4012)、客户端(例如图4中示出的客户端4021和客户端4022)、后台服务器集群403、数据库404以及第三方服务器405。其中,移动终端4011(或移动终端4012)与第三方服务器405通过网络建立通信连接;第三方服务器405与后台服务器集群403通过网络建立通过连接;后台服务器集群403一方面可以通过网络与数据库404建立通信连接,另一方面还可以通过网络与客户端4021(或客户端4022)建立通信连接。FIG. 4 exemplarily shows a schematic diagram of another system architecture provided by an embodiment of the present application. The system 400 may include mobile terminals (eg, mobile terminal 4011 and mobile terminal 4012 shown in FIG. 4 ), clients (eg, client 4021 and client 4022 shown in FIG. 4 ), background server cluster 403 , database 404 and a third-party server 405. Among them, the mobile terminal 4011 (or mobile terminal 4012) establishes a communication connection with the third-party server 405 through the network; the third-party server 405 establishes a through connection with the background server cluster 403 through the network; on the one hand, the background server cluster 403 can be established with the database 404 through the network. On the other hand, a communication connection can also be established with the client 4021 (or the client 4022) through the network.

移动终端4011(或移动终端4022)中安装有第三方应用程序(APP),移动终端3011通过第三方应用程序与第三方服务器405进行通信。举个例子,第三方应用程序可以是微信,相应的,第三方服务器405可以是微信服务器,如此,移动终端4011可以通过微信向微信服务器发送请求消息,以及接收微信服务器返回的响应消息。A third-party application (APP) is installed in the mobile terminal 4011 (or the mobile terminal 4022 ), and the mobile terminal 3011 communicates with the third-party server 405 through the third-party application. For example, the third-party application program can be WeChat, and correspondingly, the third-party server 405 can be a WeChat server. In this way, the mobile terminal 4011 can send a request message to the WeChat server through WeChat, and receive a response message returned by the WeChat server.

客户端4021(或客户端4022)可以通过浏览器访问网页,并可以通过网络与该网页对应的后台服务器集群403进行通信。The client 4021 (or the client 4022) can access the webpage through a browser, and can communicate with the background server cluster 403 corresponding to the webpage through the network.

后台服务器集群403可以包括多台后台服务器,例如,图4中示出的后台服务器集群403可以包括后台服务器4031、后台服务器4032和后台服务器4033。任意两台后台服务器之间可以通过网络建立通信连接,例如,后台服务器4031与后台服务器4032之间可以通过网络建立通信连接,后台服务器4032与后台服务器4033之间可以通过网络建立通信连接,后台服务器4031与后台服务器4033之间可以通过网络建立通信连接。The background server cluster 403 may include multiple background servers. For example, the background server cluster 403 shown in FIG. 4 may include a background server 4031 , a background server 4032 and a background server 4033 . A communication connection can be established between any two background servers through the network. For example, a communication connection can be established between the background server 4031 and the background server 4032 through the network, and a communication connection can be established between the background server 4032 and the background server 4033 through the network. A communication connection can be established between 4031 and the background server 4033 through the network.

客户端设备4021(或客户端4022)可以向后台服务器集群403中的任意一台后台服务器发送请求消息,以及接收任意一台后台服务器返回的响应消息。举个例子,客户端4021通过浏览器访问58同城的网页,在访问过程中,客户端4021可以向58同城的后台服务器4031发送请求消息,也可以接收58同城的后台服务器4032返回的响应消息。The client device 4021 (or the client 4022) can send a request message to any one of the background servers in the background server cluster 403, and receive a response message returned by any one of the background servers. For example, the client 4021 accesses the webpage of 58.com through a browser. During the access process, the client 4021 can send a request message to the background server 4031 of 58.com, and can also receive a response message returned by the background server 4032 of 58.com.

后台服务器4031(或后台服务器4032、或后台服务器4033)可以将接受到的数据提交到数据库404。The background server 4031 (or the background server 4032 , or the background server 4033 ) can submit the received data to the database 404 .

本申请实施例中,移动终端4011(或移动终端4012)可以是手机、平板电脑或智能穿戴设备等。客户端4021(或客户端4022)可以是台式计算机或笔记本电脑等。In this embodiment of the present application, the mobile terminal 4011 (or the mobile terminal 4012 ) may be a mobile phone, a tablet computer, a smart wearable device, or the like. The client 4021 (or the client 4022) may be a desktop computer or a laptop computer, or the like.

基于图4所示的系统架构,图5示例性示出了本申请实施例提供的一种文件传输方法所对应的流程示意图。如图5所示,具体包括如下步骤:Based on the system architecture shown in FIG. 4 , FIG. 5 exemplarily shows a schematic flowchart corresponding to a file transmission method provided by an embodiment of the present application. As shown in Figure 5, it specifically includes the following steps:

步骤501,客户端向第一后台服务器发送识别码生成请求。Step 501, the client sends an identification code generation request to the first background server.

步骤502,第一后台服务器接收到识别码生成请求后,生成识别码,并将识别码发送到客户端。Step 502, after receiving the identification code generation request, the first background server generates an identification code, and sends the identification code to the client.

步骤503,客户端接收识别码,并在网页上展示识别码.Step 503, the client receives the identification code and displays the identification code on the webpage.

步骤504,客户端以轮询的方式向第一后台服务器发送文件回显请求。Step 504, the client sends a file echo request to the first background server in a polling manner.

步骤505,移动终端通过第三方应用程序从客户端的网页上获取识别码。Step 505, the mobile terminal obtains the identification code from the web page of the client through a third-party application.

步骤506,移动终端解析识别码,得到识别码中包括的连接信息和第一设备标识。Step 506, the mobile terminal parses the identification code to obtain the connection information and the first device identification included in the identification code.

步骤507,移动终端通过第三方应用程序向第二后台服务器发送连接请求。Step 507, the mobile terminal sends a connection request to the second background server through a third-party application.

步骤508,第二后台服务器接收到移动终端发送的连接请求后,与移动终端建立网络连接。Step 508: After receiving the connection request sent by the mobile terminal, the second background server establishes a network connection with the mobile terminal.

步骤509,在与后台服务器建立网络连接后,移动终端通过第三方应用程序向第二后台服务器发送文件传输请求。Step 509, after establishing a network connection with the background server, the mobile terminal sends a file transfer request to the second background server through a third-party application.

步骤510,第二后台服务器接收到文件传输请求后,将目标文件上传至数据库,以及获取目标文件在数据库中的存储地址。Step 510, after receiving the file transfer request, the second background server uploads the target file to the database, and obtains the storage address of the target file in the database.

步骤511,第二后台服务器确定与第一设备标识相匹配的第二设备标识所对应的目标客户端,以及确定接收到目标客户端发送文件回显请求的第一后台服务器,将目标文件在数据库中的地址发送至第一后台服务器。Step 511, the second background server determines the target client corresponding to the second device identification that matches the first device identification, and determines the first background server that receives the file echo request sent by the target client, and stores the target file in the database. The address in is sent to the first background server.

步骤512,第一后台服务器向目标客户端返回文件回显请求的响应消息。Step 512, the first background server returns a response message of the file echo request to the target client.

步骤513,客户端接收第一后台服务器返回的文件回显请求的响应信息,根据目标文件在数据库中的地址,从数据库中查询目标文件,以及在网页上回显目标文件。Step 513: The client receives the response information of the file echo request returned by the first background server, queries the target file from the database according to the address of the target file in the database, and echoes the target file on the web page.

需要说明的是,上述步骤501至步骤513中,第一后台服务器与第二后台服务器可以是同一台后台服务器,也可以是不同的后台服务器。当第一后台服务器与第二后台服务器是不同的后台服务器时,第一后台服务器可以是后台服务器集群中的任意一台后台服务器,第二后台服务器可以是后台服务器集群中除第一后台服务器以外的任意一台后台服务器。It should be noted that, in the above steps 501 to 513, the first backend server and the second backend server may be the same backend server, or may be different backend servers. When the first backend server and the second backend server are different backend servers, the first backend server may be any backend server in the backend server cluster, and the second backend server may be a backend server other than the first backend server in the backend server cluster any of the backend servers.

采用上述方法,一方面可以仅根据识别码就可以使移动终端和后台服务器建立连接,进而无需使用USB线或存储卡就可以实现文件的传输,整个文件传输过程操作简单,使用方便,从而能够提高文件传输的效率;另一方面,采用后台服务器集群为客户端的网页服务,能够有效提高后台服务器的处理效率。By adopting the above method, on the one hand, the mobile terminal can be connected with the background server only according to the identification code, and then the file transfer can be realized without using a USB cable or a memory card. The entire file transfer process is simple and easy to use, thereby improving the The efficiency of file transfer; on the other hand, using a background server cluster to serve the client's web page can effectively improve the processing efficiency of the background server.

下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are apparatus embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.

图6示例性示出了本申请实施例提供的一种文件传输装置的结构示意图。如图6所示,该装置具有实现上述文件传输方法的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置应用于后台服务器,可以包括:处理单元601,发送单元602和接收单元603。FIG. 6 exemplarily shows a schematic structural diagram of a file transmission apparatus provided by an embodiment of the present application. As shown in FIG. 6 , the apparatus has the function of implementing the above-mentioned file transmission method, and the function may be implemented by hardware, or by executing corresponding software by the hardware. The apparatus is applied to a background server, and may include: a processing unit 601 , a sending unit 602 and a receiving unit 603 .

处理单元601,用于生成识别码;a processing unit 601 for generating an identification code;

发送单元602,用于及将所述识别码发送给客户端;所述客户端用于在网页上展示所述识别码,所述识别码用于提供给移动终端,以使所述移动终端使用所述识别码与所述后台服务器建立网络连接;A sending unit 602 is configured to send the identification code to a client; the client is used to display the identification code on a web page, and the identification code is used to provide the mobile terminal so that the mobile terminal can use it The identification code establishes a network connection with the background server;

所述处理单元601,还用于与所述移动终端建立网络连接;The processing unit 601 is further configured to establish a network connection with the mobile terminal;

接收单元603,用于接收所述移动终端通过第三方应用程序发送的文件传输请求,所述文件传输请求包括待传输的目标文件;A receiving unit 603, configured to receive a file transfer request sent by the mobile terminal through a third-party application, where the file transfer request includes the target file to be transferred;

所述处理单元601,还用于将所述目标文件上传至数据库,以及获取目标文件在数据库中的地址;The processing unit 601 is further configured to upload the target file to a database, and obtain the address of the target file in the database;

所述接收单元603,还用于接收所述客户端发送的文件回显请求;The receiving unit 603 is further configured to receive a file echo request sent by the client;

所述发送单元602,还用于向所述客户端返回文件回显请求的响应消息,所述文件回显请求的响应消息包括所述目标文件在数据库中的地址,所述目标文件在数据库中的地址用于提供给所述客户端,以使所述客户端根据所述目标文件在数据库中的地址,从所述数据库中查询所述目标文件,以及在网页上回显所述目标文件。The sending unit 602 is further configured to return a response message of the file echo request to the client, where the response message of the file echo request includes the address of the target file in the database, and the target file is in the database The address of the target file is provided to the client, so that the client can query the target file from the database according to the address of the target file in the database, and echo the target file on the web page.

可选地,所述识别码包括连接信息;Optionally, the identification code includes connection information;

所述接收单元603,还用于:The receiving unit 603 is also used for:

接收所述移动终端通过第三方应用程序发送的连接请求,所述连接请求包括所述连接信息;receiving a connection request sent by the mobile terminal through a third-party application, where the connection request includes the connection information;

所述处理单元601具体用于:The processing unit 601 is specifically used for:

确定所述连接请求中包括的连接信息无误后,与所述移动终端建立网络连接。After determining that the connection information included in the connection request is correct, establish a network connection with the mobile terminal.

可选地,所述接收单元603还用于:Optionally, the receiving unit 603 is further configured to:

接收所述客户端发送的识别码生成请求,所述识别码生成请求包括第一设备标识,所述第一设备标识是所述客户端的唯一性标识。An identification code generation request sent by the client is received, where the identification code generation request includes a first device identification, and the first device identification is a unique identification of the client.

可选地,所述识别码还包括所述第一设备标识;所述识别码还用于提供给所述移动终端,以使所述移动终端根据所述第一设备标识和所述目标文件生成所述文件传输请求。Optionally, the identification code further includes the first device identification; the identification code is also used to provide the mobile terminal, so that the mobile terminal generates the first device identification and the target file according to the the file transfer request.

可选地,所述文件传输请求还包括所述第一设备标识;所述文件回显请求包括第二设备标识,所述第二设备标识是发送所述文件回显请求的客户端的唯一性标识;Optionally, the file transfer request further includes the first device identifier; the file echo request includes a second device identifier, and the second device identifier is the unique identifier of the client that sent the file echo request ;

所述处理单元601还用于:The processing unit 601 is also used for:

所述后台服务器确定所述第二设备标识与所述第一设备标识相匹配。The background server determines that the second device identification matches the first device identification.

图7示例性示出了本申请实施例提供的另一种文件传输装置的结构示意图。如图7所示,该装置具有实现上述文件传输方法的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置应用于客户端,可以包括:接收单元701,发送单元702和处理单元703。FIG. 7 exemplarily shows a schematic structural diagram of another file transmission apparatus provided by an embodiment of the present application. As shown in FIG. 7 , the apparatus has the function of implementing the above-mentioned file transmission method, and the function may be implemented by hardware, or by executing corresponding software by the hardware. The apparatus is applied to a client, and may include: a receiving unit 701 , a sending unit 702 and a processing unit 703 .

接收单元701,用于接收后台服务器生成的识别码,并在网页上展示所述识别码;所述识别码用于提供给移动终端,以使所述移动终端使用所述识别码与所述后台服务器建立网络连接,以及通过第三方应用程序向所述后台服务器发送文件传输请求,所述文件传输请求包括待传输的目标文件;The receiving unit 701 is configured to receive an identification code generated by a background server, and display the identification code on a web page; the identification code is used to provide a mobile terminal, so that the mobile terminal uses the identification code to communicate with the background The server establishes a network connection, and sends a file transfer request to the background server through a third-party application, where the file transfer request includes the target file to be transferred;

发送单元702,用于以轮询的方式向所述后台服务器发送文件回显请求;A sending unit 702, configured to send a file echo request to the background server in a polling manner;

所述接收单元701,还用于接收所述后台服务器返回的文件回显请求的响应消息;所述文件回显请求的响应消息包括目标文件在数据库中的地址,所述目标文件在数据库中的地址是所述后台服务器在接收到所述移动终端发送的文件传输请求后,将所述目标文件上传至数据库后得到的;The receiving unit 701 is further configured to receive a response message of the file echo request returned by the background server; the response message of the file echo request includes the address of the target file in the database, and the address of the target file in the database. The address is obtained after the background server uploads the target file to the database after receiving the file transfer request sent by the mobile terminal;

处理单元703,用于根据所述目标文件在数据库中的地址,从所述数据库中查询所述目标文件,以及在网页上回显所述目标文件。The processing unit 703 is configured to query the target file from the database according to the address of the target file in the database, and echo the target file on a web page.

可选地,所述识别码包括连接信息,所述连接信息用于供所述移动终端生成并向所述后台服务器发送连接请求,所述连接请求用于请求使用所述连接信息建立所述移动终端与所述后台服务器之间的网络连接。Optionally, the identification code includes connection information, and the connection information is used for the mobile terminal to generate and send a connection request to the background server, and the connection request is used to request to use the connection information to establish the mobile terminal. A network connection between the terminal and the background server.

可选地,所述发送单元702还用于:Optionally, the sending unit 702 is further configured to:

当所述客户端有文件传输需求时,向所述后台服务器发送识别码生成请求,所述识别码生成请求包括第一设备标识,所述第一设备标识是所述客户端的唯一性标识。When the client has a file transmission requirement, an identification code generation request is sent to the background server, where the identification code generation request includes a first device identification, and the first device identification is a unique identification of the client.

可选地,所述识别码还包括所述第一设备标识;所述识别码还用于提供给所述移动终端,以使所述移动终端根据所述第一设备标识和所述目标文件生成所述文件传输请求。Optionally, the identification code further includes the first device identification; the identification code is also used to provide the mobile terminal, so that the mobile terminal generates the first device identification and the target file according to the the file transfer request.

可选地,所述文件回显请求包括所述第一设备标识,所述文件回显请求用于请求所述后台服务器返回与所述第一设备标识相对应的文件回显请求的响应消息。Optionally, the file echo request includes the first device identifier, and the file echo request is used to request the background server to return a response message to the file echo request corresponding to the first device identifier.

图8示例性示出了本申请实施例提供的又一种文件传输装置的结构示意图。如图8所示,该装置具有实现上述文件传输方法的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置应用于移动终端,可以包括:获取单元801,处理单元802和发送单元803。FIG. 8 exemplarily shows a schematic structural diagram of another file transmission apparatus provided by an embodiment of the present application. As shown in FIG. 8 , the device has the function of realizing the above-mentioned file transmission method, and the function can be realized by hardware, or can be realized by the hardware executing corresponding software. The apparatus is applied to a mobile terminal, and may include: an obtaining unit 801 , a processing unit 802 and a sending unit 803 .

获取单元801,用于通过第三方应用程序从客户端的网页上获取识别码,所述识别码由后台服务器生成;an obtaining unit 801, configured to obtain an identification code from a web page of a client through a third-party application program, the identification code is generated by a background server;

处理单元802,用于使用所述识别码与所述后台服务器建立网络连接;a processing unit 802, configured to establish a network connection with the background server by using the identification code;

发送单元803,用于通过第三方应用程序向所述后台服务器发送文件传输请求;A sending unit 803, configured to send a file transfer request to the background server through a third-party application;

其中,所述文件传输请求包括待传输的目标文件;所述目标文件用于提供给所述后台服务器,以使所述后台服务器将所述目标文件上传至数据库,以及获取目标文件在数据库中的地址;所述目标文件在数据库中的地址用于提供给所述客户端,以使所述客户端根据所述目标文件在数据库中的地址,从所述数据库中查询所述目标文件,以及在网页上回显所述目标文件。Wherein, the file transfer request includes the target file to be transferred; the target file is used to provide the background server, so that the background server uploads the target file to the database, and obtains the target file in the database. address; the address of the target file in the database is used to provide the client, so that the client can query the target file from the database according to the address of the target file in the database, and The target file is echoed on the web page.

可选地,所述识别码包括连接信息;Optionally, the identification code includes connection information;

所述处理单元802具体用于:The processing unit 802 is specifically used for:

解析所述识别码,得到所述连接信息;以及,通过第三方应用程序向所述后台服务器发送连接请求,所述连接请求用于请求使用所述连接信息建立所述移动终端与所述后台服务器之间的网络连接。Parsing the identification code to obtain the connection information; and sending a connection request to the background server through a third-party application, where the connection request is used to request to use the connection information to establish the mobile terminal and the background server network connection between.

可选地,所述识别码还包括第一设备标识;Optionally, the identification code further includes a first device identification;

所述处理单元802还用于:The processing unit 802 is also used for:

解析所述识别码,得到所述第一设备标识;以及,根据所述第一设备标识和所述目标文件,生成所述文件传输请求。Parsing the identification code to obtain the first device identification; and generating the file transfer request according to the first device identification and the target file.

图9为本申请实施例提供的一种电子设备的硬件结构示意图。如图9所示,本发明实施例提供了一种电子设备,包括:存储器901,用于存储程序指令;处理器902,用于调用并执行所述存储器中的程序指令,以实现前述实施例所述的文件传输方法。具体可以参见前述实施例中的相关描述。FIG. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in FIG. 9 , an embodiment of the present invention provides an electronic device, including: a memory 901 for storing program instructions; a processor 902 for calling and executing the program instructions in the memory to implement the foregoing embodiments The described file transfer method. For details, refer to the relevant descriptions in the foregoing embodiments.

本实施例中,处理器902和存储器901可通过总线或其他方式连接。处理器可以是通用处理器,例如中央处理器、数字信号处理器、专用集成电路,或者被配置成实施本发明实施例的一个或多个集成电路。存储器可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘。In this embodiment, the processor 902 and the memory 901 may be connected through a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. Memory may include volatile memory, such as random access memory; memory may also include non-volatile memory, such as read only memory, flash memory, hard disk, or solid state disk.

图10为本申请实施例提供的另一种电子设备的硬件结构示意图。如图10所示,本发明实施例提供了一种电子设备,包括:存储器1001,用于存储程序指令;处理器1002,用于调用并执行所述存储器中的程序指令,以实现前述实施例所述的文件传输方法。具体可以参见前述实施例中的相关描述。FIG. 10 is a schematic diagram of a hardware structure of another electronic device provided by an embodiment of the present application. As shown in FIG. 10 , an embodiment of the present invention provides an electronic device, including: a memory 1001 for storing program instructions; and a processor 1002 for calling and executing program instructions in the memory to implement the foregoing embodiments The described file transfer method. For details, refer to the relevant descriptions in the foregoing embodiments.

本实施例中,处理器1002和存储器1001可通过总线或其他方式连接。处理器可以是通用处理器,例如中央处理器、数字信号处理器、专用集成电路,或者被配置成实施本发明实施例的一个或多个集成电路。存储器可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘。In this embodiment, the processor 1002 and the memory 1001 may be connected through a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. Memory may include volatile memory, such as random access memory; memory may also include non-volatile memory, such as read only memory, flash memory, hard disk, or solid state disk.

图11为本申请实施例提供的又一种电子设备的硬件结构示意图。如图11所示,本发明实施例提供了一种电子设备,包括:存储器1101,用于存储程序指令;处理器1102,用于调用并执行所述存储器中的程序指令,以实现前述实施例所述的文件传输方法。具体可以参见前述实施例中的相关描述。FIG. 11 is a schematic diagram of a hardware structure of another electronic device according to an embodiment of the present application. As shown in FIG. 11 , an embodiment of the present invention provides an electronic device, including: a memory 1101 for storing program instructions; and a processor 1102 for calling and executing program instructions in the memory to implement the foregoing embodiments The described file transfer method. For details, refer to the relevant descriptions in the foregoing embodiments.

本实施例中,处理器1102和存储器1101可通过总线或其他方式连接。处理器可以是通用处理器,例如中央处理器、数字信号处理器、专用集成电路,或者被配置成实施本发明实施例的一个或多个集成电路。存储器可以包括易失性存储器,例如随机存取存储器;存储器也可以包括非易失性存储器,例如只读存储器、快闪存储器、硬盘或固态硬盘。In this embodiment, the processor 1102 and the memory 1101 may be connected through a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. Memory may include volatile memory, such as random access memory; memory may also include non-volatile memory, such as read only memory, flash memory, hard disk, or solid state disk.

本发明实施例提供了一种可读存储介质,所述可读存储介质中存储有计算机程序,当文件传输装置的至少一个处理器执行所述计算机程序时,文件传输装置执行上述实施例所述的文件传输方法。An embodiment of the present invention provides a readable storage medium, where a computer program is stored in the readable storage medium. When at least one processor of a file transmission apparatus executes the computer program, the file transmission apparatus executes the above-described embodiments. file transfer method.

本发明实施例提供了一种可读存储介质,所述可读存储介质中存储有计算机程序,当文件传输装置的至少一个处理器执行所述计算机程序时,文件传输装置执行上述实施例所述的文件传输方法。An embodiment of the present invention provides a readable storage medium, where a computer program is stored in the readable storage medium. When at least one processor of a file transmission apparatus executes the computer program, the file transmission apparatus executes the above-described embodiments. file transfer method.

本发明实施例提供了一种可读存储介质,所述可读存储介质中存储有计算机程序,当文件传输装置的至少一个处理器执行所述计算机程序时,文件传输装置执行上述实施例所述的文件传输方法。An embodiment of the present invention provides a readable storage medium, where a computer program is stored in the readable storage medium. When at least one processor of a file transmission apparatus executes the computer program, the file transmission apparatus executes the above-described embodiments. file transfer method.

所述的存储介质可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。The storage medium may be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, ROM for short) or a random access memory (English: random access memory, RAM for short).

本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products may be stored in a storage medium, such as ROM/RAM , magnetic disk, optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of the present invention.

本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于文件传输装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。It is sufficient to refer to each other for the same and similar parts among the various embodiments in this specification. In particular, as for the file transmission apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for related parts, please refer to the description in the method embodiment.

以上所述的本发明实施方式并不构成对本发明保护范围的限定。The embodiments of the present invention described above do not limit the protection scope of the present invention.

Claims (32)

1. A method for file transfer, the method comprising:
the background server generates an identification code and sends the identification code to the client; the client is used for displaying the identification code on a webpage, and the identification code is used for being provided for a mobile terminal so that the mobile terminal can establish network connection with the background server by using the identification code;
after the background server establishes network connection with the mobile terminal, receiving a file transmission request sent by the mobile terminal through a third-party application program, wherein the file transmission request comprises a target file to be transmitted;
the background server uploads the target file to a database and acquires the address of the target file in the database;
the background server receives a file playback request sent by the client and returns a response message of the file playback request to the client, wherein the response message of the file playback request comprises an address of the target file in a database, and the address of the target file in the database is used for being provided for the client, so that the client queries the target file from the database according to the address of the target file in the database and plays back the target file on a webpage.
2. The method of claim 1, wherein the identification code comprises connection information;
the background server establishes network connection with the mobile terminal, and the network connection comprises the following steps:
the background server receives a connection request sent by the mobile terminal through a third-party application program, wherein the connection request comprises the connection information;
and after determining that the connection information included in the connection request is correct, the background server establishes network connection with the mobile terminal.
3. The method of claim 1, wherein before the backend server generates the identification code, the method further comprises:
the background server receives an identification code generation request sent by the client, wherein the identification code generation request comprises a first equipment identifier, and the first equipment identifier is a unique identifier of the client.
4. The method of claim 3, wherein the identification code further comprises the first device identification; the identification code is also used for providing the mobile terminal so that the mobile terminal generates the file transmission request according to the first equipment identification and the target file.
5. The method of claim 4, wherein the file transfer request further comprises the first device identification; the file playback request comprises a second device identifier, and the second device identifier is a unique identifier of a client side which sends the file playback request;
before the background server returns a response message of the file echoing request to the client, the method further comprises:
the background server determines that the second device identification matches the first device identification.
6. A method for file transfer, the method comprising:
the client receives the identification code generated by the background server and displays the identification code on a webpage; the identification code is used for being provided for a mobile terminal so that the mobile terminal can establish network connection with the background server by using the identification code, and a file transmission request is sent to the background server through a third-party application program, wherein the file transmission request comprises a target file to be transmitted;
the client sends a file playback request to the background server in a polling mode and receives a response message of the file playback request returned by the background server; the response message of the file display back request comprises an address of a target file in a database, wherein the address of the target file in the database is obtained after the background server uploads the target file to the database after receiving a file transmission request sent by the mobile terminal;
and the client inquires the target file from the database according to the address of the target file in the database, and displays the target file back on a webpage.
7. The method according to claim 6, wherein the identification code includes connection information, the connection information is used for the mobile terminal to generate and send a connection request to the backend server, and the connection request is used for requesting to establish a network connection between the mobile terminal and the backend server using the connection information.
8. The method of claim 6, wherein before the client receives the identification code generated by the backend server, the method further comprises:
when the client has a file transmission requirement, sending an identification code generation request to the background server, wherein the identification code generation request comprises a first equipment identifier, and the first equipment identifier is a unique identifier of the client.
9. The method of claim 8, wherein the identification code further comprises the first device identification; the identification code is also used for providing the mobile terminal so that the mobile terminal generates the file transmission request according to the first equipment identification and the target file.
10. The method of claim 9, wherein the file echo request comprises the first device identifier, and wherein the file echo request is used to request the background server to return a response message of the file echo request corresponding to the first device identifier.
11. A method for file transfer, the method comprising:
the mobile terminal acquires an identification code from a webpage of a client through a third-party application program, wherein the identification code is generated by a background server;
after the mobile terminal establishes network connection with the background server by using the identification code, a file transmission request is sent to the background server through a third-party application program;
the file transmission request comprises a target file to be transmitted; the target file is used for being provided for the background server so that the background server uploads the target file to a database and obtains the address of the target file in the database; and the address of the target file in the database is used for being provided for the client, so that the client inquires the target file from the database according to the address of the target file in the database and displays the target file back on a webpage.
12. The method of claim 11, wherein the identification code includes connection information;
the mobile terminal establishes network connection with the background server by using the identification code, and the method comprises the following steps:
the mobile terminal analyzes the identification code to obtain the connection information;
and the mobile terminal sends a connection request to the background server through a third-party application program, wherein the connection request is used for requesting to establish network connection between the mobile terminal and the background server by using the connection information.
13. The method of claim 11, wherein the identification code further comprises a first device identification;
before the mobile terminal sends a file transmission request to the background server through a third-party application program, the method further includes:
the mobile terminal analyzes the identification code to obtain the first equipment identification;
and the mobile terminal generates the file transmission request according to the first equipment identifier and the target file.
14. A file transmission device is applied to a background server, and comprises:
a processing unit for generating an identification code;
the sending unit is used for sending the identification code to the client; the client is used for displaying the identification code on a webpage, and the identification code is used for being provided for a mobile terminal so that the mobile terminal can establish network connection with the background server by using the identification code;
the processing unit is further used for establishing network connection with the mobile terminal;
the mobile terminal comprises a receiving unit, a transmitting unit and a processing unit, wherein the receiving unit is used for receiving a file transmission request sent by the mobile terminal through a third-party application program, and the file transmission request comprises a target file to be transmitted;
the processing unit is further used for uploading the target file to a database and acquiring the address of the target file in the database;
the receiving unit is further configured to receive a file playback request sent by the client;
the sending unit is further configured to return a response message of a file playback request to the client, where the response message of the file playback request includes an address of the target file in the database, and the address of the target file in the database is used for providing the address to the client, so that the client queries the target file from the database according to the address of the target file in the database, and plays back the target file on a webpage.
15. The apparatus of claim 14, wherein the identification code comprises connection information;
the receiving unit is further configured to:
receiving a connection request sent by the mobile terminal through a third-party application program, wherein the connection request comprises the connection information;
the processing unit is specifically configured to:
and after determining that the connection information included in the connection request is correct, establishing network connection with the mobile terminal.
16. The apparatus of claim 14, wherein the receiving unit is further configured to:
receiving an identification code generation request sent by the client, wherein the identification code generation request comprises a first device identifier, and the first device identifier is a unique identifier of the client.
17. The apparatus of claim 16, wherein the identification code further comprises the first device identification; the identification code is also used for providing the mobile terminal so that the mobile terminal generates the file transmission request according to the first equipment identification and the target file.
18. The apparatus of claim 17, wherein the file transfer request further comprises the first device identification; the file playback request comprises a second device identifier, and the second device identifier is a unique identifier of a client side which sends the file playback request;
the processing unit is further to:
the background server determines that the second device identification matches the first device identification.
19. A file transfer apparatus, wherein the apparatus is applied to a client, the apparatus comprising:
the receiving unit is used for receiving the identification code generated by the background server and displaying the identification code on a webpage; the identification code is used for being provided for a mobile terminal so that the mobile terminal can establish network connection with the background server by using the identification code, and a file transmission request is sent to the background server through a third-party application program, wherein the file transmission request comprises a target file to be transmitted;
the sending unit is used for sending a file playback request to the background server in a polling mode;
the receiving unit is further configured to receive a response message of the file playback request returned by the background server; the response message of the file display back request comprises an address of a target file in a database, wherein the address of the target file in the database is obtained after the background server uploads the target file to the database after receiving a file transmission request sent by the mobile terminal;
and the processing unit is used for inquiring the target file from the database according to the address of the target file in the database and displaying the target file back on a webpage.
20. The apparatus of claim 19, wherein the identification code comprises connection information, and wherein the connection information is used for the mobile terminal to generate and send a connection request to the backend server, and wherein the connection request is used to request that a network connection between the mobile terminal and the backend server be established using the connection information.
21. The apparatus of claim 19, wherein the sending unit is further configured to:
when the client has a file transmission requirement, sending an identification code generation request to the background server, wherein the identification code generation request comprises a first equipment identifier, and the first equipment identifier is a unique identifier of the client.
22. The apparatus of claim 21, wherein the identification code further comprises the first device identification; the identification code is also used for providing the mobile terminal so that the mobile terminal generates the file transmission request according to the first equipment identification and the target file.
23. The apparatus of claim 22, wherein the file echo request comprises the first device identifier, and wherein the file echo request is used to request the background server to return a response message of the file echo request corresponding to the first device identifier.
24. A file transmission device is applied to a mobile terminal, and the device comprises:
the acquisition unit is used for acquiring an identification code from a webpage of the client through a third-party application program, and the identification code is generated by the background server;
the processing unit is used for establishing network connection with the background server by using the identification code;
the sending unit is used for sending a file transmission request to the background server through a third-party application program;
the file transmission request comprises a target file to be transmitted; the target file is used for being provided for the background server so that the background server uploads the target file to a database and obtains the address of the target file in the database; and the address of the target file in the database is used for being provided for the client, so that the client inquires the target file from the database according to the address of the target file in the database and displays the target file back on a webpage.
25. The apparatus of claim 24, wherein the identification code comprises connection information;
the processing unit is specifically configured to:
analyzing the identification code to obtain the connection information; and sending a connection request to the background server through a third-party application program, wherein the connection request is used for requesting to establish network connection between the mobile terminal and the background server by using the connection information.
26. The apparatus of claim 24, wherein the identification code further comprises a first device identification;
the processing unit is further to:
analyzing the identification code to obtain the first equipment identification; and generating the file transmission request according to the first equipment identifier and the target file.
27. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory to implement the file transfer method of any of claims 1-5.
28. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory to implement the file transfer method of any of claims 6-10.
29. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory to implement the file transfer method of any of claims 11-13.
30. A readable storage medium, characterized in that a computer program is stored in the readable storage medium, which, when executed by at least one processor of a file transfer apparatus, causes the file transfer apparatus to perform the file transfer method according to any one of claims 1 to 5.
31. A readable storage medium, characterized in that a computer program is stored in the readable storage medium, which, when executed by at least one processor of a file transfer apparatus, causes the file transfer apparatus to perform the file transfer method according to any one of claims 6-10.
32. A readable storage medium, characterized in that a computer program is stored in the readable storage medium, which, when executed by at least one processor of a file transfer apparatus, causes the file transfer apparatus to perform the file transfer method according to any one of claims 11-13.
CN202010148347.6A 2020-03-05 2020-03-05 File transmission method, device, electronic device and readable storage medium Pending CN111368173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010148347.6A CN111368173A (en) 2020-03-05 2020-03-05 File transmission method, device, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010148347.6A CN111368173A (en) 2020-03-05 2020-03-05 File transmission method, device, electronic device and readable storage medium

Publications (1)

Publication Number Publication Date
CN111368173A true CN111368173A (en) 2020-07-03

Family

ID=71206992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010148347.6A Pending CN111368173A (en) 2020-03-05 2020-03-05 File transmission method, device, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN111368173A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988375A (en) * 2020-08-04 2020-11-24 深圳市瑞立视多媒体科技有限公司 Terminal positioning method, device, equipment and storage medium
CN112037866A (en) * 2020-09-15 2020-12-04 中国科学院微生物研究所 Strain genome sequencing information query method and device, electronic equipment and medium
CN112491976A (en) * 2020-11-11 2021-03-12 京东数字科技控股股份有限公司 File transmission method, device, server and storage medium
CN113422807A (en) * 2021-05-26 2021-09-21 深圳市米软科技有限公司 File transmission method, device and storage medium
CN113609165A (en) * 2021-08-13 2021-11-05 广联达科技股份有限公司 Data request method, data processing method and data management system
CN113726838A (en) * 2021-06-17 2021-11-30 武汉理工数字传播工程有限公司 File transmission method, device, equipment and storage medium
CN114079819A (en) * 2020-08-21 2022-02-22 海信视像科技股份有限公司 A content display method and display device
CN114338650A (en) * 2021-12-23 2022-04-12 中电金信软件有限公司 File transmission method and device, electronic equipment and readable storage medium
CN114465999A (en) * 2021-12-22 2022-05-10 奇安盘古(上海)信息技术有限公司 File pulling method and device, electronic equipment and storage medium
CN115189956A (en) * 2022-07-18 2022-10-14 中原银行股份有限公司 File security sharing method
WO2023202721A1 (en) * 2022-04-21 2023-10-26 广州视臻信息科技有限公司 File transmission method and apparatus, and electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281673A (en) * 2013-06-09 2013-09-04 北京航空航天大学 Business information push service system and method
CN105825120A (en) * 2016-03-11 2016-08-03 北京天创征腾信息科技有限公司 Method and system for mutual authentication between computer and mobile terminal
KR20160096575A (en) * 2016-08-01 2016-08-16 주식회사 키노 Media File Sharing Mehtod, and Managing Server Used Therein
CN106570151A (en) * 2016-10-28 2017-04-19 上海斐讯数据通信技术有限公司 Data collection processing method and system for mass files
CN107613024A (en) * 2017-10-31 2018-01-19 维沃移动通信有限公司 A data synchronization method and mobile terminal
CN110191046A (en) * 2019-05-31 2019-08-30 成都依能科技股份有限公司 Document transmission system and method based on wechat
CN110719332A (en) * 2019-10-17 2020-01-21 北京旷视科技有限公司 Data transmission method, device, system, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281673A (en) * 2013-06-09 2013-09-04 北京航空航天大学 Business information push service system and method
CN105825120A (en) * 2016-03-11 2016-08-03 北京天创征腾信息科技有限公司 Method and system for mutual authentication between computer and mobile terminal
KR20160096575A (en) * 2016-08-01 2016-08-16 주식회사 키노 Media File Sharing Mehtod, and Managing Server Used Therein
CN106570151A (en) * 2016-10-28 2017-04-19 上海斐讯数据通信技术有限公司 Data collection processing method and system for mass files
CN107613024A (en) * 2017-10-31 2018-01-19 维沃移动通信有限公司 A data synchronization method and mobile terminal
CN110191046A (en) * 2019-05-31 2019-08-30 成都依能科技股份有限公司 Document transmission system and method based on wechat
CN110719332A (en) * 2019-10-17 2020-01-21 北京旷视科技有限公司 Data transmission method, device, system, computer equipment and storage medium

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988375A (en) * 2020-08-04 2020-11-24 深圳市瑞立视多媒体科技有限公司 Terminal positioning method, device, equipment and storage medium
CN111988375B (en) * 2020-08-04 2023-10-27 瑞立视多媒体科技(北京)有限公司 Terminal positioning method, device, equipment and storage medium
CN114079819A (en) * 2020-08-21 2022-02-22 海信视像科技股份有限公司 A content display method and display device
CN112037866A (en) * 2020-09-15 2020-12-04 中国科学院微生物研究所 Strain genome sequencing information query method and device, electronic equipment and medium
CN112037866B (en) * 2020-09-15 2024-06-11 中国科学院微生物研究所 Strain genome sequencing information query method, device, electronic equipment and medium
CN112491976A (en) * 2020-11-11 2021-03-12 京东数字科技控股股份有限公司 File transmission method, device, server and storage medium
CN113422807A (en) * 2021-05-26 2021-09-21 深圳市米软科技有限公司 File transmission method, device and storage medium
CN113726838B (en) * 2021-06-17 2023-09-19 武汉理工数字传播工程有限公司 File transmission method, device, equipment and storage medium
CN113726838A (en) * 2021-06-17 2021-11-30 武汉理工数字传播工程有限公司 File transmission method, device, equipment and storage medium
CN113609165A (en) * 2021-08-13 2021-11-05 广联达科技股份有限公司 Data request method, data processing method and data management system
CN114465999A (en) * 2021-12-22 2022-05-10 奇安盘古(上海)信息技术有限公司 File pulling method and device, electronic equipment and storage medium
CN114338650A (en) * 2021-12-23 2022-04-12 中电金信软件有限公司 File transmission method and device, electronic equipment and readable storage medium
WO2023202721A1 (en) * 2022-04-21 2023-10-26 广州视臻信息科技有限公司 File transmission method and apparatus, and electronic device and storage medium
CN116980391A (en) * 2022-04-21 2023-10-31 广州视臻信息科技有限公司 File transmission method, device, electronic equipment and storage medium
CN116980391B (en) * 2022-04-21 2024-11-19 广州视臻信息科技有限公司 File transmission method, device, electronic device and storage medium
CN115189956A (en) * 2022-07-18 2022-10-14 中原银行股份有限公司 File security sharing method

Similar Documents

Publication Publication Date Title
CN111368173A (en) File transmission method, device, electronic device and readable storage medium
CN107622135B (en) Method and apparatus for displaying information
US9451046B2 (en) Managing CDN registration by a storage provider
US20150032731A1 (en) Information processing apparatus, method of controlling the same, and storage medium
CN108322530A (en) Context environment information transmission method and device, service gateway and storage medium
CN107911483A (en) A kind of information transferring method and device
CN108696899B (en) SIP message transmitting and receiving method and transmitting and receiving device
CN104378435A (en) Method for transmitting file between browser of computing device and mobile terminal
CN102006568A (en) Method, equipment and system for providing portrait service
CN110838969B (en) Picture transmission method, device, equipment and medium
CN114500630A (en) Method, apparatus, system, storage medium and electronic device for message push
CN104462367B (en) A kind of browser and its method for viewing thumbnail of computing device
CN104376090A (en) Screen synchronization equipment of browser in computing equipment and mobile terminal
CN104394208A (en) File transmission method and server
CN108874472B (en) Method and system for optimally displaying user head portraits
CN104486371A (en) Equipment and method for downloading file on batch
CN111953718B (en) Page debugging method and device
CN113824625B (en) Information interaction method and device
CN114338130A (en) Information processing method, device, server and storage medium
CN112988311A (en) On-line experimental method based on WEB server
CN114721609B (en) Method, device, electronic device and computer-readable medium for printing documents
CN110324373B (en) File sharing method and device and file synchronization system
CN115242765A (en) Customer service reply method, device, equipment and medium
CN106487861B (en) Network data providing method and device
CN106210176A (en) Information-pushing method, Apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200703

RJ01 Rejection of invention patent application after publication