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

File transmission method and device, electronic equipment 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; CALCULATING OR 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; CALCULATING OR 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

The application provides a file transmission method, a file transmission device, electronic equipment and a readable storage medium. The method comprises the following steps: the background server generates an identification code for the client to display the identification code on the webpage, so that the mobile terminal can establish network connection with the background server by using the identification code after acquiring the identification code from the webpage, and a file transmission request is sent to the server through a third-party application program; accordingly, the background server can upload the target file included in the file transmission request to the database and return the address of the target file in the database to the client, so that the client can inquire the target file from the database and display the target file back on the webpage. According to the method and the device, the mobile terminal and the background server can be connected only according to the identification code, the transmission of the file can be realized without using a USB (universal serial bus) wire or a memory card, the operation of the whole file transmission process is simple, the use is convenient, and therefore the efficiency of file transmission can be improved.

Description

File transmission method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a file transmission method and apparatus, an electronic device, and a readable storage medium.
Background
With the rapid development of network technology, users can use personal computers, mobile terminals and other electronic devices to surf the internet anytime and anywhere. When a user browses a web page using a personal computer, an operation of uploading a file, such as uploading a picture file to the web page, and displaying the picture file on the web page may be involved.
Due to the popularization of the mobile terminal, a user may need to upload a file stored on the mobile terminal to a webpage and display the file on the webpage, for example, a picture taken by the mobile terminal is displayed on a webpage of a personal computer. In the prior art, a file on a mobile terminal needs to be uploaded to a personal computer, then the file is submitted to a server through uploading work on the personal computer, and then the file and related webpage content are acquired by the personal computer and displayed.
Common file transfer methods include using USB cable or transferring with a memory card. Taking USB cable transmission as an example, a user uses a USB cable to establish connection between a mobile terminal and a personal computer, transmits a file from the mobile terminal to the personal computer through the USB cable, finds the file from the personal computer, uploads the file to a webpage, and displays the file on the webpage. The whole operation process is complicated, and no matter the USB line is used for transmission or the memory card is used for transfer, file transmission can be realized only by means of hardware equipment such as the USB line or the memory card, file transmission cannot be realized under the condition that the hardware equipment is not provided, and the convenience is poor.
Therefore, a file transmission method is needed at present to solve the problems of complicated operation process and poor convenience of the file transmission method in the prior art.
Disclosure of Invention
The application provides a file transmission method, a file transmission device, an electronic device and a readable storage medium, which can be used for solving the technical problems that in the prior art, the file transmission mode is complex in operation process and poor in convenience.
In a first aspect, an embodiment of the present application provides a file transmission method, where the method includes:
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.
With reference to the first aspect, in an implementation manner of the first aspect, the identification code includes 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.
With reference to the first aspect, in an implementation manner of the first aspect, before the generating, by the background server, an identification code, the method further includes:
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.
With reference to the first aspect, in an implementation manner of the first aspect, the identification code further includes the first device identifier; 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.
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 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.
In a second aspect, an embodiment of the present application provides a file transmission method, where the method includes:
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.
With reference to the second aspect, in an implementation manner of the second aspect, the identification code includes connection information, where 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 to request to establish a network connection between the mobile terminal and the backend 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, 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.
With reference to the second aspect, in an implementation manner of the second aspect, the identification code further includes the first device identifier; 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.
With reference to the second aspect, in an implementation manner of the second aspect, the file playback request includes the first device identifier, and the file playback request is used to request the background server to return a response message of the file playback request corresponding to the first device identifier.
In a third aspect, an embodiment of the present application provides a file transmission method, where the method includes:
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.
With reference to the third aspect, in an implementable manner of the third aspect, 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.
With reference to the third aspect, in an implementable manner of the third aspect, the identification code further includes a first device identifier;
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.
In a fourth aspect, an embodiment of the present application provides a file transmission apparatus, where the apparatus is applied to a background server, and the apparatus includes:
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.
With reference to the fourth aspect, in an implementable manner of the fourth aspect, the identification code includes 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.
With reference to the fourth aspect, in an implementable manner of the fourth aspect, 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.
With reference to the fourth aspect, in an implementable manner of the fourth aspect, the identification code further includes the first device identifier; 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.
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 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.
In a fifth aspect, an embodiment of the present application provides a file transfer apparatus, where 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 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.
With reference to the fifth aspect, in an implementation manner of the fifth aspect, the identification code includes connection information, where 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 to request to establish a network connection between the mobile terminal and the backend server using the connection information.
With reference to the fifth aspect, in an implementable manner of the fifth aspect, 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.
With reference to the fifth aspect, in an implementation manner of the fifth aspect, the identification code further includes the first device identifier; 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.
With reference to the fifth aspect, in an implementation manner of the fifth aspect, the file playback request includes the first device identifier, and the file playback request is used to request the background server to return a response message of the file playback request corresponding to the first device identifier.
In a sixth aspect, an embodiment of the present application provides a file transfer apparatus, where the apparatus is applied to a mobile terminal, and the apparatus includes:
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.
With reference to the sixth aspect, in an implementable manner of the sixth aspect, the identification code includes 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.
With reference to the sixth aspect, in an implementable manner of the sixth aspect, the identification code further includes a first device identifier;
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.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the file transmission method of the first aspect.
In an eighth aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the file transmission method of the second aspect.
In a ninth aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the file transmission method of the third aspect.
In a tenth aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and when at least one processor of a file transfer apparatus executes the computer program, the file transfer apparatus executes the file transfer method according to the first aspect.
In an eleventh aspect, an embodiment of the present invention provides a readable storage medium, in which a computer program is stored, and when the computer program is executed by at least one processor of a file transfer apparatus, the file transfer apparatus executes the file transfer method according to the second aspect.
In a twelfth aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and when the computer program is executed by at least one processor of a file transfer apparatus, the file transfer apparatus executes the file transfer method according to the third aspect.
By adopting the method, the background server generates the identification code for the client to display the identification code on the webpage, so that the mobile terminal can establish network connection with the background server by using the identification code after acquiring the identification code from the webpage, and then sends a file transmission request to the server through a third-party application program; correspondingly, after receiving the file transmission request, the background server can upload the target file included in the file transmission 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 inquire the target file from the database and display the target file back on the webpage. Therefore, in the embodiment of the application, the mobile terminal and the background server can be connected only according to the identification code, the file can be transmitted without using a USB (universal serial bus) wire or a memory card, the whole file transmission process is simple to operate and convenient to use, and the file transmission efficiency can be improved.
Drawings
FIG. 1 is a schematic structural diagram of a system architecture suitable for use in the embodiments of the present application;
fig. 2 is a schematic flowchart illustrating a file transmission method according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating the integrity of a file transmission method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another system architecture provided by an embodiment of the present application;
fig. 5 is a schematic flowchart illustrating a file transmission method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a file transfer device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another document transportation device according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of another document transportation device according to an embodiment of the present disclosure;
fig. 9 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 10 is a schematic hardware structure diagram of another electronic device provided in an embodiment of the present application;
fig. 11 is a schematic hardware structure diagram of another electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
A possible system architecture to which the embodiments of the present application are applicable will be first described with reference to fig. 1.
Referring to fig. 1, a schematic structural diagram of a system to which an embodiment of the present application is applicable is exemplarily shown. The system 100 may include mobile terminals (e.g., mobile terminal 1011 and mobile terminal 1012 shown in fig. 1), clients (e.g., client 1021 and client 1022 shown in fig. 1), backend 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 a network; the third-party server 105 and the background server 103 establish a through connection through a network; background server 103 may establish a communication connection with database 104 via a network, on the one hand, and may also establish a communication connection with client 1021 (or client 1022) via a network, on the other hand.
A third party Application (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. For example, the third-party application may be a WeChat, and accordingly, the third-party server 105 may be a WeChat server, such that the mobile terminal 1011 may send a request message to the WeChat server via the WeChat and receive a response message returned by the WeChat server.
The client 1021 (or the client 1022) can access the web page through the browser, and can communicate with the background server 103 corresponding to the web page through the network, for example, the client 1021 can send a request message to the background server 103 and receive a response message returned by the background server 103; client 1022 may send a request message to backend server 103 and receive a response message returned by backend server 103. For example, the client 1021 accesses 58 a web page in the same city through a browser, and during the access, the client 1021 may send a request message to 58 the backend server 103 in the same city, or may receive a response message returned by 58 the backend server 103 in the same city.
Backend server 103 may submit the received data to database 104.
In this embodiment, the mobile terminal 1011 (or the mobile terminal 1012) may be a mobile phone, a tablet computer, an intelligent wearable device, or the like. The client 1021 (or the client 1022) may be a desktop computer or a notebook computer, etc.
Based on the system architecture shown in fig. 1, fig. 2 exemplarily shows a flowchart corresponding to a file transmission method provided in the embodiment of the present application. As shown in fig. 2, the method specifically includes the following steps:
step 201, the background server generates an identification code and sends the identification code to the client.
Step 202, the client receives the identification code generated by the background server and displays the identification code on the webpage.
Step 203, the client sends a file display back request to the background server in a polling mode.
And step 204, the mobile terminal acquires the identification code from the webpage of the client through the third-party application program.
Step 205, after establishing network connection with the background server by using the identification code, the mobile terminal sends a file transmission request to the background server through the third-party application program.
And step 206, 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.
Step 207, the background server uploads the target file to the database and obtains the address of the target file in the database.
And step 208, the background server receives the file playback request sent by the client and returns a response message of the file playback request to the client.
And step 209, the client receives a response message of the file echoing request returned by the background server.
Step 210, the client queries the target file from the database according to the address of the target file in the database, and displays the target file on the webpage.
By adopting the method, the background server generates the identification code for the client to display the identification code on the webpage, so that the mobile terminal can establish network connection with the background server by using the identification code after acquiring the identification code from the webpage, and then sends a file transmission request to the server through a third-party application program; correspondingly, after receiving the file transmission request, the background server can upload the target file included in the file transmission 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 inquire the target file from the database and display the target file back on the webpage. Therefore, in the embodiment of the application, the mobile terminal and the background server can be connected only according to the identification code, the file can be transmitted without using a USB (universal serial bus) wire or a memory card, the whole file transmission process is simple to operate and convenient to use, and the file transmission efficiency can be improved.
Before performing step 201, the backend server may generate the identification code after receiving the identification code generation request of the client.
That is, when the client has a file transfer request, an identification code generation request may be sent to the background server. Accordingly, after receiving the identification code generation request sent by the client, the background server can generate the identification code. The identifier generation request may include a first device identifier, where the first device identifier is a unique identifier of the client, and may be, for example, a Media Access Control (MAC) address of the client, or may also be a device serial number of the client, which is not limited specifically.
Specifically, the process of identification code generation may be triggered on the web page, that is, the client sends a request message for identification code generation to the background server through the web page.
For example, a certain web page has a file uploading requirement, and a file to be uploaded is stored in a mobile terminal of a user, and at this time, the file stored in the mobile terminal needs to be transmitted to the web page and displayed on the web page. The user may trigger the process of generating the identification code on the web page (e.g., click on a "generate identification code" component on the web page), and the client may send an identification code generation request to the background server through the web page.
In step 201, after receiving the identification code generation request, the background server may generate the identification code by using an identification code generation tool.
The identification code may include a first device identification and connection information. The first device identifier may be a unique identifier of the client, for example, a MAC address of the client, or may also be a device serial number of the client, which is not limited specifically; the connection information may be an address of the background server, which is provided to the mobile terminal, so that the mobile terminal can establish a network connection with the background server using the connection information.
The connection information included in the identification code may be used for the mobile terminal to generate and send a connection request to the backend server, where the connection request is used to request to establish a network connection between the mobile terminal and the backend server using the connection information.
The first device identifier included in the identification code may be used to provide the mobile terminal, so that the mobile terminal generates a file transfer request according to the first device identifier and the target file.
Further, the identification code may be a two-dimensional code, a barcode, or encrypted information, and the like, which is not limited specifically.
In step 202, the client may present the identification code on the web page. If the identification code is a two-dimensional code, the client can display a picture of the two-dimensional code on a webpage; if the identification code is a bar code, the client can display a picture of the bar code on the webpage; if the identification code is encrypted information, the client may present the encrypted information on the web page.
For the client, the identification code may be used to provide to the mobile terminal, so that the mobile terminal establishes a network connection with the backend server using the identification code, and sends a file transfer request to the backend server through the third-party application.
In step 203, the client may send a file playback request to the background server in a polling manner while (or after) displaying the identification code on the web page, that is, request the background server to return address information of the target file in the database.
Polling, as the name implies, means issuing queries at regular times. The polling can be used for solving the problem of overlarge server pressure, if a plurality of long connections are kept, the server pressure is overlarge, so that a polling request interface can be specially established, only an Identity Document (ID) of a task is reserved in the polling request interface, and the client can acquire the condition of the current task only by sending the ID of the task. If the result is returned, the polling is finished, and if the result is not returned, the request is continuously sent after waiting for a period of time.
For example, the client may send the file playback request to the background server at time T1, may send the file playback request to the background server again at time T2 (i.e., at a time after time T1) if the client does not receive the response message of the file playback request, and may send the file playback request to the background server again at time T3 (i.e., at a time after time T2) until the polling is finished after receiving the response message of the file playback request.
In this embodiment of the application, the file playback request may include a first device identifier, where the device identifier is a unique identifier of the client, and may be, for example, a MAC address of the client, a device serial number of the client, and the like, which is not limited specifically.
The file echo request can be used for requesting the background server to return a response message of the file echo request corresponding to the first device identification.
In step 204, the mobile terminal obtains the identification code in different ways according to different types of the identification code.
If the identification code is a two-dimensional code or a bar code, the mobile terminal can scan the two-dimensional code or the bar code through a third-party application program.
If the identification code is encrypted information, such as a ciphertext digit, the mobile terminal may receive the encrypted information input by the user via the third party application.
Before performing step 205, the mobile terminal may parse the identification code to obtain the connection information and the first device identifier included in the identification code.
In step 205, after the mobile terminal analyzes the identification code to obtain the connection information, a connection request may be sent to the backend server through the third-party application program. The connection request may be used to request that the network connection between the mobile terminal and the background server is established using the connection information.
Further, the connection request may also include identity information of the user, i.e. the identity information that the user is logged in on the mobile terminal. The identity information of the user may include a login name of the user or an ID of the user, and is not limited specifically.
Before the mobile terminal sends a file transmission request to the background server through the third-party application program, the mobile terminal analyzes the identification code to obtain a first equipment identifier, and then the file transmission request can be generated according to the first equipment identifier and the target file to be transmitted.
Furthermore, the mobile terminal can send a file transmission request to the background server through the third-party application program. The file transmission request can comprise a target file to be transmitted and a first device identifier; the target file is used for being provided for 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 address of the target file in the database is used for providing the client, so that the client can inquire the target file from the database according to the address of the target file in the database and can display the target file back on the webpage.
In the embodiment of the application, the third-party application program has a transfer function, and the mobile terminal and the background server are connected through the third-party application program. The third party application may be a variety of different applications, for example, the third party application may be a WeChat application, or may also be a Payment application, or may also be another application with a transfer function.
It should be noted that, a specific process of the mobile terminal sending the connection request to the backend server through the third-party application program is as follows, the mobile terminal sends the connection request to the third-party server (that is, the server of the third-party application program) through the third-party application program, and the third-party server forwards the connection request to the backend 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 program is as follows, where the mobile terminal sends the file transfer request to the third-party server through the third-party application program, and the third-party server forwards the file transfer request to the background server.
In the embodiment of the present application, the target file may be a document file, a picture file, or a data table file, and is not limited specifically.
In step 206, after the background server receives the connection request sent by the mobile terminal through the third-party application program, if it is determined that the connection information included in the connection request is correct, the background server may establish a network connection with the mobile terminal. Furthermore, the background server can receive a file transmission request sent by the mobile terminal through the third-party application program.
Specifically, after receiving the connection request, the background server analyzes the connection information and the user identity information included in the connection request, and the connection information is generated by the background server in the process of generating the identification code, so that the background server can bind the connection information and the user identity information together after determining that the connection information included in the connection request is correct, and the background server and the mobile terminal establish network connection.
In step 207, after the background server uploads the target file to the database, the address of the target file in the database may be obtained. The address of the target file in the database may be a Uniform Resource Locator (URL) address of the target file in the database.
Before performing step 208, the background server needs to determine that the second device identification included in the file echo request matches the first device identification included in the file transfer request. And the second equipment identification is the unique identification of the client side which sends the file display back request.
For example, both the client a and the client B send file playback requests to the background server, where the file playback request sent by the client a includes the device identifier of the client a, and the file playback request sent by the client B includes the device identifier of the client B. When the background server receives a file transmission request sent by the mobile terminal, if the file transmission request includes the device identifier of the client a, the background server may determine that the device identifier included in the file playback request sent by the client a matches the device identifier included in the file transmission request sent by the mobile terminal, and further, the background server may return a response message of the file playback request to the client a.
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 used for providing the client, so that the client can inquire the target file from the database according to the address of the target file in the database and can display the target file back on the webpage.
Further, the address of the target file in the database may be the URL address of the target file in the database.
In steps 209 and 210, the client may query the database for the target file according to the address of the target file in the database, and display the target file back on the web page.
If the target file is a picture file, the client can display the picture back on the webpage after inquiring the picture file from the database.
If the target file is a document file, the client may display the file (e.g., display the document name) on the web page after querying the file from the database.
In order to more clearly describe the file transmission method provided in the embodiment of the present application, taking the third-party application as an example, and referring to fig. 3, an overall process of file transmission is exemplarily described below. As shown in fig. 3, the method specifically includes the following steps:
step 301, the client sends a two-dimensional code generation request to the background server.
Step 302, after receiving the two-dimension code generation request, the background server generates a two-dimension code.
And step 303, the background server sends the two-dimensional code to the client.
And step 304, the client receives the two-dimensional code generated by the background server and displays the two-dimensional code on a webpage.
Step 305, the client sends a file display back request to the background server in a polling mode.
And step 306, the mobile terminal opens the WeChat and acquires the two-dimensional code in a scanning mode.
And 307, the mobile terminal sends a connection request to the WeChat server to request to establish network connection with the background server.
Step 308, the WeChat Server forwards the connection request to the background server.
Step 309, after receiving the connection request, the background server establishes a network connection with the mobile terminal, and returns a response message of successful connection.
And 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 the WeChat.
Step 311, the mobile terminal sends a file transmission request to the wechat server through the wechat.
Step 312, the WeChat server forwards the file transmission request to the background server.
Step 313, after receiving the file transmission request, the background server uploads the target file to the database and obtains the address of the target file in the database.
In step 314, if it is determined that the device identifier included in the file playback request sent by the client matches the device identifier included in the file transmission request sent by the mobile terminal, the background server receives the file playback request sent by the client, and returns a response message of the file playback request to the client.
Step 315, the client receives a response message of the file echoing request returned by the background server.
In step 316, the client queries the target file from the database according to the address of the target file in the database, and displays the target file back on the web page.
It should be noted that, the above steps 301 to 316 are only an example, and in other possible examples, the mobile terminal may also communicate with the backend server through other existing applications, or may also communicate with the backend server through a new application developed independently, which is not limited specifically.
Considering that one backend server 105 shown in fig. 1 may not be able to meet the increasing access demand as the access amount increases, in the embodiment of the present application, the pressure of the backend server 105 may be relieved by setting up a backend server cluster.
Fig. 4 is a schematic diagram illustrating another system architecture provided in the embodiment of the present application. The system 400 may include mobile terminals (e.g., mobile terminal 4011 and mobile terminal 4012 shown in fig. 4), clients (e.g., client 4021 and client 4022 shown in fig. 4), a cluster of backend servers 403, a database 404, and a third party server 405. Wherein, the mobile terminal 4011 (or the mobile terminal 4012) establishes communication connection with the third-party server 405 through a network; the third-party server 405 and the background server cluster 403 establish a through connection through a network; background server cluster 403 may establish a communication connection with database 404 through a network on the one hand, and may also establish a communication connection with client 4021 (or client 4022) through a network on the other hand.
Third-party application programs (APP) are 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 programs. For example, the third-party application may be a WeChat, and accordingly, the third-party server 405 may be a WeChat server, so that the mobile terminal 4011 may send a request message to the WeChat server through the WeChat and receive a response message returned by the WeChat server.
The client 4021 (or the client 4022) may access a web page through a browser, and may communicate with the background server cluster 403 corresponding to the web page through a network.
Background server cluster 403 may include multiple background servers, for example, background server cluster 403 shown in fig. 4 may include background server 4031, background server 4032, and background server 4033. Any two background servers can establish communication connection through a network, for example, the background server 4031 and the background server 4032 can establish communication connection through a network, the background server 4032 and the background server 4033 can establish communication connection through a network, and the background server 4031 and the background server 4033 can establish communication connection through a network.
The client device 4021 (or the client 4022) may send a request message to any one of the backend servers in the backend server cluster 403, and receive a response message returned by any one of the backend servers. For example, the client 4021 accesses a 58 webpage in the same city through a browser, and during the access, the client 4021 may send a request message to the 58 background server 4031 in the same city, or may receive a response message returned by the 58 background server 4032 in the same city.
Backend server 4031 (or backend server 4032 or 4033) may submit the received data to database 404.
In this embodiment, the mobile terminal 4011 (or the mobile terminal 4012) may be a mobile phone, a tablet computer, an intelligent wearable device, or the like. The client 4021 (or the client 4022) may be a desktop computer, a notebook computer, or the like.
Based on the system architecture shown in fig. 4, fig. 5 exemplarily shows a flowchart corresponding to a file transmission method provided in the embodiment of the present application. As shown in fig. 5, the method specifically includes the following steps:
step 501, a client sends an identification code generation request to a first background server.
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.
Step 503, the client receives the identification code and displays the identification code on the webpage.
Step 504, the client sends a file playback request to the first background server in a polling manner.
Step 505, the mobile terminal obtains the identification code from the webpage of the client through the third-party application program.
Step 506, the mobile terminal analyzes the identification code to obtain the connection information and the first device identifier included in the identification code.
And step 507, the mobile terminal sends a connection request to the second background server through the third-party application program.
And step 508, after receiving the connection request sent by the mobile terminal, the second background server establishes network connection with the mobile terminal.
Step 509, after establishing network connection with the background server, the mobile terminal sends a file transfer request to the second background server through the third-party application program.
Step 510, after receiving the file transmission request, the second background server uploads the target file to the database, and obtains a storage address of the target file in the database.
And 511, the second background server determines a target client corresponding to the second equipment identifier matched with the first equipment identifier, determines the first background server receiving a file playback request sent by the target client, and sends the address of the target file in the database to the first background server.
Step 512, the first background server returns a response message of the file display back request to the target client.
Step 513, the client receives the response information of the file playback 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 plays back the target file on the webpage.
In steps 501 to 513, the first backend server and the second backend server may be the same backend server or different backend servers. When the first background server and the second background server are different background servers, the first background server may be any one background server in the background server cluster, and the second background server may be any one background server in the background server cluster except the first background server.
By adopting the method, on one hand, the mobile terminal and the background server can be connected only according to the identification code, so that the file transmission can be realized without using a USB (universal serial bus) wire or a memory card, the whole file transmission process is simple to operate and convenient to use, and the file transmission efficiency can be improved; on the other hand, the background server cluster is adopted to serve the web page of the client, so that the processing efficiency of the background server can be effectively improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 schematically shows a structural diagram of a file transfer device provided in an embodiment of the present application. As shown in fig. 6, the apparatus has a function of implementing the file transmission method, and the function may be implemented by hardware, or by hardware executing corresponding software. The device is applied to the background server and can comprise: processing unit 601, transmitting unit 602, and receiving unit 603.
A processing unit 601 for generating an identification code;
a sending unit 602, configured to send 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 601 is further configured to establish a network connection with the mobile terminal;
a receiving unit 603, configured to receive a file transmission request sent by the mobile terminal through a third-party application, where the file transmission request includes a target file to be transmitted;
the processing unit 601 is further configured to upload the target file to a database, and acquire an address of the target file in the database;
the receiving unit 603 is further configured to receive a file playback request sent by the client;
the sending unit 602 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 being 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 plays back the target file on a web page.
Optionally, the identification code includes connection information;
the receiving unit 603 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 601 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.
Optionally, the receiving unit 603 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.
Optionally, the identification code further includes the first device identifier; 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.
Optionally, the file transfer request further includes the first device identifier; 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 601 is further configured to:
the background server determines that the second device identification matches the first device identification.
Fig. 7 is a schematic structural diagram schematically illustrating another file transfer device provided in an embodiment of the present application. As shown in fig. 7, the apparatus has a function of implementing the file transmission method, and the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The device is applied to the client and can comprise: a receiving unit 701, a transmitting unit 702 and a processing unit 703.
A receiving unit 701, 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 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;
a sending unit 702, configured to send a file playback request to the background server in a polling manner;
the receiving unit 701 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;
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 display the target file back on the web page.
Optionally, the identification code includes connection information, where 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 to request to establish a network connection between the mobile terminal and the backend server using the connection information.
Optionally, the sending unit 702 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.
Optionally, the identification code further includes the first device identifier; 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.
Optionally, the file playback request includes the first device identifier, and the file playback request is used to request the background server to return a response message of the file playback request corresponding to the first device identifier.
Fig. 8 is a schematic structural diagram schematically illustrating still another file transfer device provided in an embodiment of the present application. As shown in fig. 8, the apparatus has a function of implementing the file transmission method, and the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The device is applied to the mobile terminal and can comprise: an acquisition unit 801, a processing unit 802 and a transmission unit 803.
An obtaining unit 801, configured to obtain an identification code from a webpage of a client through a third-party application, where the identification code is generated by a background server;
a processing unit 802, configured to establish a network connection with the background server using the identification code;
a sending unit 803, configured to send a file transfer request to the background server through a third-party application;
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.
Optionally, the identification code includes connection information;
the processing unit 802 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.
Optionally, the identification code further includes a first device identifier;
the processing unit 802 is further configured 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.
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; the processor 902 is configured to call and execute the program instructions in the memory to implement the file transfer method according to the foregoing embodiment. Reference may be made in particular to the description in relation to the preceding embodiments.
In this embodiment, the processor 902 and the memory 901 may be connected by 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. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
Fig. 10 is a schematic hardware structure diagram of another electronic device according to 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; the processor 1002 is configured to call and execute the program instructions in the memory to implement the file transmission method according to the foregoing embodiment. Reference may be made in particular to the description in relation to the preceding embodiments.
In this embodiment, the processor 1002 and the memory 1001 may be connected by 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. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
Fig. 11 is a schematic hardware structure diagram 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; the processor 1102 is configured to call and execute the program instructions in the memory to implement the file transfer method according to the foregoing embodiment. Reference may be made in particular to the description in relation to the preceding embodiments.
In this embodiment, the processor 1102 and the memory 1101 may be connected by 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. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
An embodiment of the present invention provides a readable storage medium, in which a computer program is stored, and when at least one processor of a file transfer apparatus executes the computer program, the file transfer apparatus executes the file transfer method described in the above embodiment.
An embodiment of the present invention provides a readable storage medium, in which a computer program is stored, and when at least one processor of a file transfer apparatus executes the computer program, the file transfer apparatus executes the file transfer method described in the above embodiment.
An embodiment of the present invention provides a readable storage medium, in which a computer program is stored, and when at least one processor of a file transfer apparatus executes the computer program, the file transfer apparatus executes the file transfer method described in the above embodiment.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, as for the embodiment of the document transmission device, since it is basically similar to the embodiment of the method, the description is simple, and the relevant points can be referred to the description in the embodiment of the method.
The above-described embodiments of the present invention should not be construed as limiting the 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 and device, electronic equipment 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 and device, electronic equipment 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 and device, electronic equipment 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 and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111368173A (en)

Cited By (10)

* 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
CN113726838A (en) * 2021-06-17 2021-11-30 武汉理工数字传播工程有限公司 File transmission method, device, equipment and storage medium
CN114079819A (en) * 2020-08-21 2022-02-22 海信视像科技股份有限公司 Content display method and display equipment
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 kind of method of data synchronization 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 kind of method of data synchronization 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 (14)

* 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 海信视像科技股份有限公司 Content display method and display equipment
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
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
CN115189956A (en) * 2022-07-18 2022-10-14 中原银行股份有限公司 File security sharing method

Similar Documents

Publication Publication Date Title
CN111368173A (en) File transmission method and device, electronic equipment and readable storage medium
CN107622135B (en) Method and apparatus for displaying information
CN106933871B (en) Short link processing method and device and short link server
CN107786621B (en) User information management method, access processing method, device and system
CN104378435B (en) The browser of computing device and the file of mobile terminal transmit
CN102271165B (en) Device and method for sharing and managing resources searched on Internet
CN104394208B (en) Document transmission method and server
CN102006568A (en) Method, equipment and system for providing portrait service
CN109151514A (en) Method, storage medium, equipment and the system of purchase commodity are realized in direct broadcasting room
TW201929498A (en) Information transmission method and device
CN104462367B (en) A kind of browser and its method for viewing thumbnail of computing device
CN104486371B (en) Batch downloads the device and method of file
CN104376090A (en) Screen synchronization equipment of browser in computing equipment and mobile terminal
CN108574717A (en) A kind of cross-terminal file uploading method, apparatus and system
CN114153698A (en) Display monitoring method and device, electronic equipment and readable storage medium
CN104980481A (en) Method and system for transmitting data between electronic terminals and electronic terminal
CN111262779A (en) Method, device, server and system for acquiring data in instant messaging
CN106487861B (en) Network data providing method and device
CN104484338B (en) Listed files management equipment and method
CN109600452B (en) Server cluster, message pushing method and related server
CN114417318A (en) Third-party page jumping method and device and electronic equipment
CN113099152A (en) Method and device for call among multiple systems
KR101170322B1 (en) Method and device for providing cloud computing service using personal computer based on web
WO2017173967A1 (en) Redirection method, service provider, unstructured supplementary service data center, and system
CN104394210A (en) Direction connection communication method and device

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