CN110392105B - File transmission method, device and system, electronic equipment and storage medium - Google Patents

File transmission method, device and system, electronic equipment and storage medium Download PDF

Info

Publication number
CN110392105B
CN110392105B CN201910656865.6A CN201910656865A CN110392105B CN 110392105 B CN110392105 B CN 110392105B CN 201910656865 A CN201910656865 A CN 201910656865A CN 110392105 B CN110392105 B CN 110392105B
Authority
CN
China
Prior art keywords
application
file
file transmission
application server
client
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.)
Active
Application number
CN201910656865.6A
Other languages
Chinese (zh)
Other versions
CN110392105A (en
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201910656865.6A priority Critical patent/CN110392105B/en
Publication of CN110392105A publication Critical patent/CN110392105A/en
Application granted granted Critical
Publication of CN110392105B publication Critical patent/CN110392105B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/16Implementing security features at a particular protocol layer
    • H04L63/168Implementing security features at a particular protocol layer above the transport layer

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a file transmission method, a file transmission device, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: acquiring a file transmission application from an application server; the file transmission application is an application program based on an SSH protocol; and carrying out file transmission by utilizing the file transmission application and the application server. According to the file transmission method, the file transmission application existing at the application server side is downloaded to the local and operated, the file transmission application realizes file transmission with the application server side based on SSH, and then the super-large file can be transmitted without fragment transmission, so that the file transmission efficiency is improved.

Description

File transmission method, device and system, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system for file transmission, an electronic device, and a computer-readable storage medium.
Background
With the rapid development and wide application of information technology, cloud computing and information technology concepts of big data are in endless, web applications applied to various industries are various, and file uploading and downloading functions basically belong to essential functions. But can be very slow when encountering very large files, such as operating system images, and the uploading and downloading of large software installation packages. The conventional method in the large file uploading industry is to use fragment transmission, namely, a large file is divided into a plurality of small files for transmission, and all the small files are combined into a large file after transmission is finished. The merging operation of the scheme for realizing file transmission based on the fragments is long in time consumption after the file transmission is finished, the time is in direct proportion to the size of the file, the merging time of the file of more than 4G is even more than 5 minutes, and the user experience is poor.
Therefore, how to improve the transmission efficiency of the large file is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a file transmission method, a file transmission device, a file transmission system, electronic equipment and a computer readable storage medium, and the transmission efficiency of large files is improved.
In order to achieve the above object, the present application provides a file transmission method, applied to a client, including:
acquiring a file transmission application from an application server; the file transmission application is an application program based on an SSH protocol;
and carrying out file transmission by utilizing the file transmission application and the application server.
The obtaining of the file transfer application from the application server includes:
acquiring a target thin client from the application server side, and determining a storage path of the file transfer application;
and acquiring the file transmission application from the storage path in the application server by using the authentication key in the target thin client.
The authentication key comprises a user name, a password and a port of the application server side.
The target thin client is specifically a JNLP client.
In order to achieve the above object, the present application provides a file transmission device, applied to a client, including:
the acquisition module is used for acquiring the file transmission application from the application server; the file transmission application is an application program based on an SSH protocol;
and the transmission module is used for transmitting the file with the application server by using the file transmission application.
Wherein the acquisition module comprises:
the first acquisition unit is used for acquiring a target thin client from the application server and determining a storage path of the file transfer application;
a second obtaining unit, configured to obtain the file transfer application from the storage path in the application server by using an authentication key in the target thin client.
The target thin client is specifically a JNLP client.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the file transmission method when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the file transfer method as described above.
To achieve the above object, the present application provides a file transfer system, comprising:
the application server is used for storing the file transmission application;
and the client is used for acquiring the file transmission application from the application server and carrying out file transmission with the application server by using the file transmission application.
According to the scheme, the file transmission method comprises the following steps: acquiring a file transmission application from an application server; the file transmission application is an application program based on an SSH protocol; and carrying out file transmission by utilizing the file transmission application and the application server.
According to the file transmission method, the file transmission application existing in the application server side is downloaded to the local and operated, the file transmission application is transmitted with the application server side based on SSH (Chinese full name: Secure Shell protocol, English full name: Secure Shell), and then the super-large file can be transmitted without fragment transmission, so that the file transmission efficiency is improved. The application also discloses a file transmission device, a file transmission system, an electronic device and a computer readable storage medium, which can also achieve the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is an architecture diagram illustrating a file transfer system in accordance with an exemplary embodiment;
FIG. 2 is an architecture diagram illustrating another file transfer system in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a file transfer method in accordance with an exemplary embodiment;
FIG. 4 is a flow diagram illustrating another method of file transfer in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a file transfer device in accordance with an exemplary embodiment;
FIG. 6 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to understand the file transfer method provided in the present application, a system applied thereto is first described, as shown in fig. 1, the file transfer system includes:
an application server 100, configured to store a file transfer application;
the client 200 is configured to obtain the file transfer application from the application server, and perform file transfer with the application server by using the file transfer application.
Preferably, as shown in fig. 2, the system may include a web client, a JNLP (Java Network rounding Protocol) client, a file transfer application, and an application server.
The web client, i.e. a commonly used browser, can access the web application through the browser, and the embodiment adds a "file upload/download" button in the web page, and downloads the JNLP client through the button.
The JNLP client, a browser-based thin client, can load applications from a browser or desktop. In the embodiment, the JNLP client downloads the file transfer application existing in the application server to the local and starts up, so that the web calls the remote Java application program. The JNLP client is essentially a configuration file in a JNLP format, and the file content comprises an authentication key of an application server, such as a user name, a password and a port of a server system, a storage path of a file transfer application, a starting instruction and the like.
The file transmission application is a JAVA application program developed based on an SSH protocol, supports file transmission with an application server side through the SSH protocol, and can realize super-large file transmission including uploading and downloading without fragmentation.
The application server side is required to be a Linux or Unix server provided with SSH service, and the JNLP client side and the file transmission application are stored in the appointed position. And when the user clicks a file uploading/downloading button, triggering the JNLP client to be downloaded to the local of the user.
The embodiment of the application discloses a file transmission method, which improves the transmission efficiency of large files.
Referring to fig. 3, a flowchart of a file transfer method according to an exemplary embodiment is shown, as shown in fig. 3, including:
s101: acquiring a file transmission application from an application server; the file transmission application is an application program based on an SSH protocol;
the embodiment aims to realize the transmission of a large file between an application server and a client, where the large file is a file with a file size larger than a threshold, such as an operating system image, a large software installation package, and the like, which exceeds 1G.
In this step, the client first obtains the file transfer application from the application server, and it should be noted that each application server capable of communicating with the client stores the file transfer application, that is, the application servers correspond to the file transfer applications one to one, and each file transfer application is used to download a file from the corresponding application server or upload a file to the corresponding application server.
Preferably, the step may include acquiring a target thin client from the application server, and determining a storage path of the file transfer application; and acquiring the file transmission application from the storage path in the application server by using the authentication key in the target thin client.
In a specific implementation, the client first downloads a target thin client from the application server, where the target thin client is preferably the JNLP client described above, and an authentication key of the application server and a storage path of a file transfer application in the application server are stored therein. The authentication key here may include a user name, a password, a port, and the like. And the target thin client acquires the file transmission application from the storage path by using the authentication key.
S102: and carrying out file transmission by utilizing the file transmission application and the application server.
In this embodiment, the file transfer application implements file transfer with the server based on SSH, and then in this step, the file transfer application can be used to implement super-large file transfer between the client and the application server.
According to the file transmission method provided by the embodiment of the application, the file transmission application existing at the application server side is downloaded to the local and operated, the file transmission application realizes file transmission with the application server side based on SSH, and then the super-large file can be transmitted without fragment transmission, so that the file transmission efficiency is improved.
The embodiment of the application discloses a file transmission method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
referring to fig. 4, a flowchart of another file transfer method according to an exemplary embodiment is shown, as shown in fig. 4, including:
s201: acquiring a JNLP client from an application server side, and determining a storage path of the file transmission application;
s202: acquiring the file transmission application from the storage path in the application server by using an authentication key in the target thin client;
s203: and carrying out file transmission by utilizing the file transmission application and the application server.
Therefore, the file transmission application existing in the server is downloaded to the local and operated based on the JNLP protocol, the file transmission application realizes file transmission with the server based on SSH, and then super-large files such as operating system images, large software installation packages and the like which are more than 1G can be transmitted. The method and the device really realize the transmission of the oversized file by using the web without fragmentation, and improve the file transmission efficiency.
An application embodiment of the present application is described below, which may specifically include the following steps:
the method comprises the following steps: a user clicks a 'file uploading/downloading' button on a web client, namely a browser, and the browser is triggered to download a JNLP client from an application server;
step two: and after downloading, the JNLP client is matched with the java environment of the local of the user to automatically run, downloads the file transmission application from the application server to the local according to self configuration, and starts the file transmission application (based on a jar packet developed by ssh) by taking the user name, the password and the port of the server as parameters.
Step three: after the file transmission application is started, a dialog box with an uploading component and a downloading component can pop up, and a user can upload and download files according to prompts. And after the uploading and downloading are finished, closing the dialog box to finish the uploading/downloading process.
In the following, a document transmission device provided in the embodiments of the present application is introduced, and a document transmission device described below and a document transmission method described above may be referred to each other.
Referring to fig. 5, a block diagram of a file transfer device according to an exemplary embodiment is shown, as shown in fig. 5, including:
an obtaining module 501, configured to obtain a file transfer application from an application server; the file transmission application is an application program based on an SSH protocol;
a transmission module 502, configured to perform file transmission with the application server by using the file transmission application.
According to the file transmission device provided by the embodiment of the application, the file transmission application existing in the application server is downloaded to the local and operated, the file transmission application is transmitted with the application server based on SSH, then the super-large file can be transmitted, fragment transmission is not needed, and the file transmission efficiency is improved.
On the basis of the foregoing embodiment, as a preferred implementation, the obtaining module 501 includes:
the first acquisition unit is used for acquiring a target thin client from the application server and determining a storage path of the file transfer application;
a second obtaining unit, configured to obtain the file transfer application from the storage path in the application server by using an authentication key in the target thin client.
On the basis of the above embodiment, as a preferred implementation, the target thin client is specifically a JNLP client.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present application also provides an electronic device, that is, the client described above, referring to fig. 6, a structure diagram of an electronic device 600 provided in this embodiment of the present application, as shown in fig. 6, may include a processor 11 and a memory 12. The electronic device 600 may also include one or more of a multimedia component 13, an input/output (I/O) interface 14, and a communication component 15.
The processor 11 is configured to control the overall operation of the electronic device 600, so as to complete all or part of the steps in the file transmission method. The memory 12 is used to store various types of data to support operation at the electronic device 600, such as instructions for any application or method operating on the electronic device 600 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 12 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia component 13 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 12 or transmitted via the communication component 15. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 14 provides an interface between the processor 11 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication module 15 is used for wired or wireless communication between the electronic device 600 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so that the corresponding Communication component 15 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the file transfer method described above.
In another exemplary embodiment, there is also provided a computer readable storage medium including program instructions which, when executed by a processor, implement the steps of the above-described file transfer method. For example, the computer readable storage medium may be the memory 12 described above including program instructions that are executable by the processor 11 of the electronic device 600 to perform the file transfer method described above.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (8)

1. A file transmission method is applied to a client and comprises the following steps:
acquiring a file transmission application from an application server; the file transmission application is an application program based on an SSH protocol, and the application server side corresponds to the file transmission application one by one;
carrying out file transmission by utilizing the file transmission application and the application server;
the obtaining of the file transfer application from the application server includes:
acquiring a target thin client from the application server side, and determining a storage path of the file transfer application;
and acquiring the file transmission application from the storage path in the application server by using the authentication key in the target thin client.
2. The file transmission method according to claim 1, wherein the authentication key comprises a user name, a password, and a port of the application server.
3. The file transfer method according to claim 1, wherein the target thin client is specifically a JNLP client.
4. A file transmission device is applied to a client and comprises:
the acquisition module is used for acquiring the file transmission application from the application server; the file transmission application is an application program based on an SSH protocol, and the application server side corresponds to the file transmission application one by one;
the transmission module is used for transmitting the file by utilizing the file transmission application and the application server side;
wherein the acquisition module comprises:
the first acquisition unit is used for acquiring a target thin client from the application server and determining a storage path of the file transfer application;
a second obtaining unit, configured to obtain the file transfer application from the storage path in the application server by using an authentication key in the target thin client.
5. The file transfer device according to claim 4, wherein the target thin client is specifically a JNLP client.
6. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the file transfer method according to any one of claims 1 to 3 when executing said computer program.
7. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the file transfer method according to any one of claims 1 to 3.
8. A file transfer system, comprising:
the application server is used for storing the file transmission application; the application server side corresponds to the file transmission application one by one;
the client is used for acquiring the file transmission application from the application server and transmitting the file with the application server by using the file transmission application;
the client is specifically configured to acquire a target thin client from the application server, determine a storage path of the file transfer application, and acquire the file transfer application from the storage path in the application server by using an authentication key in the target thin client.
CN201910656865.6A 2019-07-19 2019-07-19 File transmission method, device and system, electronic equipment and storage medium Active CN110392105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910656865.6A CN110392105B (en) 2019-07-19 2019-07-19 File transmission method, device and system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910656865.6A CN110392105B (en) 2019-07-19 2019-07-19 File transmission method, device and system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110392105A CN110392105A (en) 2019-10-29
CN110392105B true CN110392105B (en) 2022-07-08

Family

ID=68286755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910656865.6A Active CN110392105B (en) 2019-07-19 2019-07-19 File transmission method, device and system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110392105B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995222A (en) * 2017-12-26 2018-05-04 中国广核电力股份有限公司 A kind of exchange method of business's ciphertext part
CN109861973A (en) * 2018-12-21 2019-06-07 北京天融信网络安全技术有限公司 Information transferring method, device, electronic equipment and computer-readable medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7424543B2 (en) * 1999-09-08 2008-09-09 Rice Iii James L System and method of permissive data flow and application transfer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995222A (en) * 2017-12-26 2018-05-04 中国广核电力股份有限公司 A kind of exchange method of business's ciphertext part
CN109861973A (en) * 2018-12-21 2019-06-07 北京天融信网络安全技术有限公司 Information transferring method, device, electronic equipment and computer-readable medium

Also Published As

Publication number Publication date
CN110392105A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
US11340961B2 (en) Dynamically integrating a client application with third-party services
US9706371B2 (en) Push notification middleware
CN109542361B (en) Distributed storage system file reading method, system and related device
US11665052B2 (en) Internet of things gateway onboarding
KR102308269B1 (en) Transmission of control data in proxy-based network communications
CN104808971B (en) Network application program manager, method and device and mobile terminal
US20160050128A1 (en) System and Method for Facilitating Communication with Network-Enabled Devices
US9047308B2 (en) Methods and apparatus for providing unified access to various data resources using virtualized services
US9563449B2 (en) Mobilizing a web application to take advantage of a native device capability
CN109510754B (en) Online document generation method, device and system and electronic equipment
CN111031110A (en) File uploading method and device, electronic equipment and storage medium
CN109218389B (en) Method, device and storage medium for processing service request and electronic equipment
US20150011187A1 (en) Location based applications
US10776081B2 (en) Systems and methods for utilizing webhooks integrated in platform-as-a-service supported application development and deployment
CN113170283A (en) Triggering event notifications based on messages to application users
CN113647113A (en) Network-based media processing security
CN105554136A (en) Backup data restoration method, device and system
CN114327710A (en) Function management method, management device, terminal equipment and readable storage medium
CN113170517B (en) Short message service linking for active feed communications
CN110392105B (en) File transmission method, device and system, electronic equipment and storage medium
WO2015003570A1 (en) Data downloading method,device and system thereof
CN112217880A (en) Attribution method, attribution device, attribution medium and electronic equipment for application program activation
WO2015074450A1 (en) Instant messaging (im) client side data transmission processprocess and apparatus
CN110574006B (en) System and method for automatically synchronizing responses and conditions on a device
CN103631621A (en) Method and device for prompting information

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
GR01 Patent grant
GR01 Patent grant