A file transmission method and device for remote desktop access based on a BS architecture
Through the remote desktop access method of BS architecture, the file path is obtained and data is transmitted using the mouse position and action monitoring service, which solves the problem that files cannot be directly dragged and dropped in the existing technology, realizes efficient remote server access and storage intercommunication, and enhances security.
Patent Information
- Application Number
- CN202510679291.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-26
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2045-05-26
AI Technical Summary
Existing remote desktop access methods cannot directly drag local files into the specified location of the remote visual desktop on the browser side by dragging and dropping, and remote visual desktop files on the browser side cannot be directly dragged into the local specified location by dragging and dropping, resulting in low data transmission efficiency.
A remote desktop access method based on BS architecture displays the remote visual desktop through the browser, obtains the user ID and remote visual desktop ID, uses the mouse position and motion monitoring service to obtain the file path, and records it to the remote service database through the remote data acquisition interface, and calls the file transfer interface to perform file transfer.
It realizes storage intercommunication between local devices and remote servers, improves data transmission efficiency and effectiveness, enhances access security, and simplifies user authority control.
Smart Images

Figure CN120201023B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a file transmission method, apparatus, device, and medium for remote desktop access based on a BS (Browser / Server) architecture. Background Art
[0002] With the development of cloud computing technology, users' demand for access to cloud computing resources has gradually increased. Currently, users directly access cloud devices through the external network.
[0003] However, the existing access method has the technical problem that local files cannot be directly dragged into the specified location of the remote visual desktop on the browser side by dragging and dropping, and files in the remote visual desktop on the browser side cannot be directly dragged into the local specified location by dragging and dropping. Summary of the Invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a file transmission method and device for remote desktop access based on a BS architecture.
[0005] An embodiment of the present disclosure provides a file transfer method for remote desktop access based on a BS architecture, comprising: in response to a browser open request of a local device, displaying a remote visual desktop based on the browser of the local device, obtaining a user identifier and a remote visual desktop identifier, and clearing recorded data corresponding to the user identifier and the remote visual desktop identifier in a remote service database; obtaining a local file path during mouse operation based on a mouse position and motion monitoring service of the local device, and recording the local file path during mouse operation to the remote service database through a remote data acquisition interface according to the user identifier and the remote visual desktop identifier; obtaining a remote visual desktop file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop, and recording the remote visual desktop file path to the remote service database through the remote data acquisition interface according to the user identifier and the remote visual desktop identifier; and calling a file transfer interface based on the local file path and the remote visual desktop file path recorded in the remote service database through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop to perform file transfer processing.
[0006] Optionally, the obtaining of the local file path during mouse operation based on the mouse position and motion monitoring service of the local device and recording it to the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface includes: determining that the mouse position is not located within the browser when the mouse is clicked or released based on the mouse position and motion monitoring service of the local device, and determining whether the mouse position is on any file path of the local device based on the mouse position and motion monitoring service of the local device; when the mouse position is on any file path of the local device, obtaining the local file path corresponding to the mouse position based on the mouse position and motion monitoring service of the local device and recording it to the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface; and when the mouse position is not on any file path of the local device, clearing the recorded data corresponding to the user identifier and the remote visual desktop identifier in the remote service database.
[0007] Optionally, the acquiring of the remote visual desktop file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop and recording the same to the remote service database through the remote data acquisition interface according to the user identifier and the remote visual desktop identifier includes: determining, based on the mouse position and motion monitoring service of the local device, whether the mouse position is located within the browser when the mouse is clicked or released, and determining, based on the mouse position and motion monitoring service of the remote visual desktop, whether the mouse position is on any file path of the remote visual desktop; when the mouse position is on any file path of the remote visual desktop, acquiring, based on the mouse position and motion monitoring service of the remote visual desktop, the remote visual desktop file path corresponding to the mouse position, and recording the same to the remote service database through the remote data acquisition interface according to the user identifier and the remote visual desktop identifier; and, when the mouse position is not on any file path of the remote visual desktop, clearing the recorded data corresponding to the user identifier and the remote visual desktop identifier from the remote service database.
[0008] Optionally, based on the local file path and the remote visual desktop file path recorded in the remote service database, a file transfer interface is called through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop to perform file transfer processing, including: based on the mouse position and motion monitoring service of the local device, a file transfer interface is called to transfer the file corresponding to the remote visual desktop file path in the remote server to the local file path of the local device.
[0009] Optionally, based on the local file path and the remote visual desktop file path recorded in the remote service database, a file transfer interface is called through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop to perform file transfer processing, including: based on the mouse position and motion monitoring service of the remote visual desktop, a file transfer interface is called to transfer the file corresponding to the local file path to the remote visual desktop file path for transmission to the remote server.
[0010] Optionally, the method further includes: acquiring a remote access application program interface of a remote server; and binding the user identifier with the remote access application program interface.
[0011] Optionally, the method further includes: installing a mouse position and motion monitoring service of the local device on the local device based on a preset first service technology; and installing a mouse position and motion monitoring service of the remote visual desktop on a remote server based on a preset second service technology.
[0012] The present disclosure also provides a file transfer device for remote desktop access based on a BS architecture, comprising: a response processing module for responding to a browser open request from a local device, displaying a remote visual desktop based on the browser of the local device, obtaining a user identifier and a remote visual desktop identifier, and clearing recorded data corresponding to the user identifier and the remote visual desktop identifier in a remote service database; a first acquisition and recording module for acquiring a local file path during mouse operation based on a mouse position and motion monitoring service of the local device, and recording the local file path during mouse operation to the remote service database through a remote data acquisition interface according to the user identifier and the remote visual desktop identifier; a second acquisition and recording module for acquiring a remote file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop, and recording the remote file path to the remote service database through the remote data acquisition interface according to the user identifier and the remote visual desktop identifier; and a transmission processing module for performing file transmission processing by calling a file transmission interface through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop based on the local file path and the remote visual desktop file path recorded in the remote service database.
[0013] An embodiment of the present disclosure also provides an electronic device, which includes: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the file transfer method for remote desktop access based on the BS architecture provided in the embodiment of the present disclosure.
[0014] An embodiment of the present disclosure further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the file transmission method for remote desktop access based on the BS architecture provided by the embodiment of the present disclosure.
[0015] An embodiment of the present disclosure further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the file transmission method for remote desktop access based on the BS architecture described in the aforementioned aspect is implemented.
[0016] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages: the file transfer solution for remote desktop access based on the BS architecture provided by the embodiments of the present disclosure includes: in response to a browser open request of a local device, displaying a remote visual desktop based on the browser of the local device, obtaining a user identifier and a remote visual desktop identifier, and clearing the recorded data corresponding to the user identifier and the remote visual desktop identifier in a remote service database; obtaining a local file path during mouse operation based on a mouse position and motion monitoring service of the local device, and recording the local file path during mouse operation to the remote service database through a remote data acquisition interface according to the user identifier and the remote visual desktop identifier; obtaining a remote visual desktop file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop, and recording the remote visual desktop file path to the remote service database through a remote data acquisition interface according to the user identifier and the remote visual desktop identifier; and calling a file transfer interface to perform file transfer processing based on the local file path and the remote visual desktop file path recorded in the remote service database through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop. It solves the technical problems that local files cannot be directly dragged into the specified location of the remote visual desktop on the browser side by dragging and dropping, and files in the remote visual desktop on the browser side cannot be directly dragged into the local specified location by dragging and dropping. It can access the remote server desktop through the browser side, realize storage intercommunication between local devices and remote servers, and further improve data transmission efficiency and effectiveness. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0018] Figure 1 A flowchart of a file transfer method for remote desktop access based on a BS architecture provided in an embodiment of the present disclosure;
[0019] Figure 2An example diagram of file transfer for remote desktop access based on a BS architecture provided in an embodiment of the present disclosure;
[0020] Figure 3 An example diagram of file transfer for another remote desktop access based on BS architecture provided by an embodiment of the present disclosure;
[0021] Figure 4A An example diagram of file transfer for remote desktop access based on a BS architecture provided by an embodiment of the present disclosure;
[0022] Figure 4B An example diagram of file transfer for remote desktop access based on a BS architecture provided by another embodiment of the present disclosure;
[0023] Figure 5 A schematic diagram of the structure of a file transfer device for remote desktop access based on a BS architecture provided by an embodiment of the present disclosure;
[0024] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0026] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0027] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0028] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0029] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0030] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0031] With the development of cloud computing technology, users' demand for access to cloud computing resources has gradually increased. Most users access remote servers through methods such as Mstsc (Microsoft Terminal Services Client). If accessed directly through the external network, user access rights cannot be controlled and security is low. If accessed through VPN (Virtual Private Network), the additional step of logging into the VPN is time-consuming. More importantly, the existing access method has technical problems such as local files cannot be dragged and dropped directly to the specified location of the remote visual desktop on the browser side, and files in the remote visual desktop on the browser side cannot be dragged and dropped directly to the local specified location.
[0032] In the disclosed embodiment, when accessing remote server resources in the file transfer method of remote desktop access based on the BS architecture, the step of logging into the VPN is eliminated, saving time; it can also realize the control of the user's remote server access rights; directly access the remote server desktop through the browser; it can also realize the remote server side's access to the supercomputing storage, and realize the storage intercommunication between the local device and the remote server.
[0033] In the embodiment of the present disclosure, an HTTP (Hypertext Transfer Protocol) request is sent to a remote server through the browser of a local device, and after the HTTP request is successful, a novnc (a vnc (virtual network console) client software that accesses a VNC server through a web browser) page is embedded through an Iframe (a page tag that allows a page to be embedded in another page); based on the novnc page, an HTTP request is sent to Nginx (engine x, a high-performance HTTP and reverse proxy web (WorldWideWeb, global wide area network) server) which reverse proxy Django (web framework) backend API (Application Programming Interface, application programming interface), uses the Django backend API to judge the user access rights in the HTTP request, and after the judgment is passed, forwards the HTTP request to the HTTP connection of the remote server to forward it to the novnc service of the remote visualization service, and the novnc service of the remote visualization service returns the novnc visualization data to the HTTP connection of the remote server to forward it to the Django backend API, and forwards it to the Nginx reverse proxy Django backend API through the Django backend API to be displayed on the novnc page; and / or, based on the novnc page, sends a Websockify request to the Nginx reverse proxy Websockify connection, and uses the Nginx reverse proxy Websockify (a tool for forwarding WebSocket (a protocol for full-duplex communication on a single TCP connection) traffic to other protocols) connection to forward the Websockify request to the novnc service of the visualization service, and the novnc service of the visualization service returns the Websockify data to the Nginx reverse proxy Websockify connection to be displayed on the novnc page.
[0034] In the embodiment of the present disclosure, a user account on the browser side and a visualization server remote access API of the remote server are obtained; and the user account and the visualization server remote access API are bound.
[0035] In the embodiment of the present disclosure, a remote server is set up to deploy a VNC service based on tightvnc (remote desktop software) technology; novnc technology is used to implement the proxy of the remote server VNC service, and Websockify technology is used to implement the proxy and interface publishing of the remote server's novnc service; Django technology is used to implement the Http reverse proxy and remote cloud machine access permission control of the remote server's novnc service; and Nginx technology is used to implement the proxy and forwarding of the remote server's Websockify service.
[0036] In the embodiment of the present disclosure, the front end is constructed using vue (a JavaScript framework for building user interfaces) technology, and the novnc remote visualization service is accessed through the page Iframe embedded mode to achieve the hiding of the service link.
[0037] In the embodiment of the present disclosure, rclone (a command line program for managing files on cloud storage) technology and a unified storage interface of a supercomputing cluster are used to implement supercomputing cluster storage mounting, thereby enabling cloud machines to access supercomputing storage resources.
[0038] In the disclosed embodiment, mouse position and status monitoring technology is used to achieve intercommunication between the remote server accessed by the browser and the local device storage, thereby realizing fast upload and download of files.
[0039] As a result, users can directly access the remote visualization server through the browser on the public network, eliminating the traditional VPN login process. Users and remote servers are bound and authorized at the platform level. Unauthorized users cannot access the corresponding remote server. The platform layer controls the user's access rights to the remote visualization server, thereby enhancing security. The remote server side publishes the remote visualization access interface of the remote server by starting the vnc service, starting the novnc service to proxy the vnc service, and starting the Websockify service to proxy the novnc service. The user's access to the remote server is realized by reverse proxying the novnc service Http connection of the visualization server through Django and reverse proxying the Websockify connection of the remote server through Nginx. Control of server access rights and web-based VNC access to remote servers improves cloud desktop access security; through Iframe embedded access, the front-end of the novnc access link is hidden to further ensure access security; the remote server uses rclone technology to mount the supercomputing cluster storage as a drive letter to access supercomputing storage resources, that is, using rclone technology and supercomputing unified storage interface to achieve remote server access to the supercomputing storage system and achieve intercommunication between the remote server and the supercomputing storage system; using mouse position and status monitoring technology to achieve mouse position and status tracking, and then achieve intercommunication between the remote cloud machine and local storage accessed by the web side using novnc technology, and achieve fast file upload and download.
[0040] It should be noted that the release of VNC services can be achieved through tightvnc technology, or through realvnc and other methods; interface encapsulation can be achieved through Django, or through frameworks such as spring; web services and reverse proxy services can be achieved through Nginx, or through tomcat (Web application server) and other technologies, further improving the flexibility of remote desktop access based on BS architecture.
[0041] Example 1:
[0042] The present disclosure provides a file transfer method for remote desktop access based on a BS architecture. The method comprises the following steps: responding to a browser open request of a local device, displaying a remote visual desktop based on the browser of the local device, obtaining a user identifier and a remote visual desktop identifier, and clearing recorded data corresponding to the user identifier and the remote visual desktop identifier in a remote service database; obtaining a local file path during mouse operation based on a mouse position and motion monitoring service of the local device, and recording the local file path during mouse operation in the remote service database according to the user identifier and the remote visual desktop identifier through a remote data acquisition interface; obtaining a remote file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop, and recording the remote file path in the remote service database according to the user identifier and the remote visual desktop identifier through a remote data acquisition interface; and calling a file transfer interface based on the local file path and the remote visual desktop file path recorded in the remote service database through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop to perform file transfer processing. It solves the technical problems that local files cannot be directly dragged into the specified location of the remote visual desktop on the browser side by dragging and dropping, and files in the remote visual desktop on the browser side cannot be directly dragged into the local specified location by dragging and dropping. It can access the remote server desktop through the browser side, realize storage intercommunication between local devices and remote servers, and further improve data transmission efficiency and effectiveness.
[0043] Figure 1 This is a flowchart of a file transfer method for remote desktop access based on a BS architecture provided by an embodiment of the present disclosure. The method can be executed by a file transfer device for remote desktop access based on a BS architecture, wherein the device can be implemented using software and / or hardware and can generally be integrated into an electronic device. Figure 1 As shown, the method includes:
[0044] Step 101: In response to a browser opening request of a local device, a remote visual desktop is displayed based on the browser of the local device, a user identifier and a remote visual desktop identifier are obtained, and record data corresponding to the user identifier and the remote visual desktop identifier in a remote service database is cleared.
[0045] In an embodiment of the present disclosure, before responding to a browser opening request of a local device, a remote access application interface of a remote server is obtained, a user identifier is bound to the remote access application interface, and a mouse position and motion monitoring service of the local device is installed on the local device based on a preset first service technology; and a mouse position and motion monitoring service of a remote visual desktop is installed on the remote server based on a preset second service technology.
[0046] Specifically, the system deploys a mouse position and motion monitoring service on the local device, a browser-based remote visual desktop, and remote database records. The local device deployment of the mouse position and motion monitoring service can be implemented using Node.js; the browser-based remote visual desktop's mouse position and motion monitoring service is implemented using JavaScript technology; and the browser-based remote visual desktop is implemented using commonly used novnc or RDP (Remote Desktop Protocol) technologies.
[0047] Specifically, the local device deploys nodejs plus electron plus robotjs or python plus pyautogui program, so that file transfer between the local device and the remote visual desktop can be realized. It can monitor the mouse click or release operation outside the browser, record the local file path when the mouse is clicked and released, and record the value to the remote service database through the Http data acquisition interface; the js program is deployed in the browser, so that it is possible to monitor the mouse click or release operation on the browser, record the remote visual desktop file path when the mouse is clicked and released, and record the value to the remote service database through the Http data acquisition interface. Finally, the remote service is called based on the local file path and remote visual desktop file path recorded in the remote service database to transfer files through the data transmission interface between the local device and the remote desktop server.
[0048] Step 102: Based on the mouse position and action monitoring service of the local device, the local file path during the mouse operation is obtained and recorded in the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface.
[0049] In an embodiment of the present disclosure, mouse operations include mouse click and mouse release operations. In some embodiments, the local file path during mouse operation is obtained based on the mouse position and action monitoring service of the local device and recorded to the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface, including: when the mouse position is obtained based on the mouse position and action monitoring service of the local device, it is determined that the mouse position is not located in the browser, and based on the mouse position and action monitoring service of the local device, it is determined whether the mouse position is on any file path of the local device; when the mouse position is on any file path of the local device, the local file path corresponding to the mouse position is obtained based on the mouse position and action monitoring service of the local device, and recorded to the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface; when the mouse position is not on any file path of the local device, the recorded data corresponding to the user identifier and the remote visual desktop identifier in the remote service database is cleared.
[0050] Step 103: Based on the mouse position and motion monitoring service of the remote visual desktop, the remote visual desktop file path during the mouse operation is obtained and recorded in the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface.
[0051] In an embodiment of the present disclosure, mouse operations include mouse click and mouse release operations. In some embodiments, a remote visual desktop file path is obtained based on a mouse position and motion monitoring service of a remote visual desktop during mouse operation, and is recorded in a remote service database according to a user identifier and a remote visual desktop identifier through a remote data acquisition interface, including: determining that the mouse position is within a browser when a mouse click or release is obtained based on a mouse position and motion monitoring service of a local device, and determining whether the mouse position is on any file path of the remote visual desktop based on the mouse position and motion monitoring service of the remote visual desktop; if the mouse position is on any file path of the remote visual desktop, obtaining the remote visual desktop file path corresponding to the mouse position based on the mouse position and motion monitoring service of the remote visual desktop, and recording it in a remote service database according to the user identifier and the remote visual desktop identifier through a remote data acquisition interface; if the mouse position is not on any file path of the remote visual desktop, clearing the recorded data corresponding to the user identifier and the remote visual desktop identifier in the remote service database.
[0052] Step 104: Based on the local file path and the remote visual desktop file path recorded in the remote service database, the file transfer process is performed by calling the file transfer interface through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop.
[0053] In the embodiments of the present disclosure, there are many ways to perform file transfer processing by calling a file transfer interface through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop based on the local file path and the remote visual desktop file path recorded in the remote service database. In some embodiments, the file corresponding to the remote visual desktop file path in the remote server is transferred to the local file path of the local device by calling a file transfer interface based on the mouse position and motion monitoring service of the local device.
[0054] In other embodiments, the mouse position and motion monitoring service based on the remote visual desktop calls a file transfer interface to transfer the file corresponding to the local file path to the remote visual desktop file path for transmission to the remote server.
[0055] As an example, the file download scenario, such as Figure 2As shown, it includes: step 2.1, the browser side monitors the mouse position; step 2.2, determines whether the mouse position is on a file or folder; if not, continues to execute step 2.1; if on a file or folder, executes step 2.3, monitors the mouse operation; step 2.4, determines whether a drag operation is performed; if no drag operation is performed, continues to execute step 2.3, monitors the mouse operation; if a drag operation is performed, executes step 2.5, monitors the mouse position; step 2.6, determines whether the mouse position exceeds the browser side screen range; if the mouse position does not exceed the browser side screen range, continues to execute step 2.5, monitors the mouse operation; if the mouse position exceeds the browser side screen range, executes step 2.7, monitors the mouse release operation; step 2.8, determines whether the mouse is released; if the mouse is not released, executes step 2.7, monitors the mouse release operation; if the mouse is released, executes step 2.9, obtains the server file path, obtains the local path, and calls the file transfer interface, thereby calling the file transfer interface to transfer the file according to the server file path and the local path.
[0056] As another example, the file upload scenario, such as Figure 3 As shown, including: Figure 3 As shown, it includes: step 3.1, the browser side monitors the mouse position; step 3.2, determines whether the mouse position is on a file or folder; if not, continues to execute step 3.1; if on a file or folder, executes step 3.3, monitors the mouse operation; step 3.4, determines whether a drag operation is performed; if no drag operation is performed, continues to execute step 3.3, monitors the mouse operation; if a drag operation is performed, executes step 3.5, monitors the mouse position; step 3.6, determines whether the mouse position enters the browser side screen range; if the mouse position does not enter the browser side screen range, continues to execute step 3.5 Monitor mouse operations; if the mouse position enters the browser screen range, execute step 3.7 to monitor the mouse position; step 3.8 determines whether the mouse position is on the folder; if not, continue to execute step 3.7; if on the folder, execute step 3.9 to monitor the mouse release operation; step 3.10 determines whether the mouse; if the mouse is not released, execute step 3.9 to monitor the mouse release operation; if the mouse is released, execute step 3.11 to obtain the server file path, obtain the local path and call the file transfer interface, thereby calling the file transfer interface to transfer files according to the server file path and the local path.
[0057] As another example, Figure 4A and 4BAs shown, it includes: step 4.1 opening the remote visualization desktop on the browser side; step 4.2 clearing the file operation data corresponding to the current remote desktop of the current user in the remote database (if there is file operation data corresponding to the current remote desktop of the current user, clear it to avoid historical data interference and further improve the accuracy of file transfer); step 4.3 judging whether the mouse is clicked; if so, executing step 4.4 using the electron+nodejs+robotjs of the local device to judge whether the mouse is in the browser; step 4.5 judging whether the mouse is in the browser; if the mouse is in the browser, executing step 4.6 using the js in the browser to judge whether the mouse is on a file path of the remote visualization desktop; step 4.7 judging whether it is on a path of the remote visualization desktop; if it is on a path of the remote visualization desktop, executing step 4.8 using the js in the browser to record the remote visualization desktop path to the remote database through the remote data acquisition interface; if it is not on a path of the remote visualization desktop, executing step 4.9 to clear the record data of the current user and the remote visualization desktop recorded in the remote database.
[0058] After determining in step 4.5 that the mouse is in the browser, if the mouse is not in the browser, execute step 4.10 to use the local device's electron+nodejs+robotjs to determine whether the mouse is on a file path on the local computer; step 4.11 determines if the mouse is on a path on the local device; if it is on a path on the local device, execute step 4.12 to use the local device's electron+nodejs+robotjs to record the local computer file path to the remote database through the remote data acquisition interface; if it is not on a path on the local device, execute step 4.13 to clear the recorded data of the current user and the remote visual desktop in the remote database.
[0059] After determining whether the mouse is clicked in step 4.3, if it is not clicked, execute step 4.14 to determine whether the mouse is released; if the mouse is not released, do nothing; if the mouse is released, execute step 4.15 and use the electron+nodejs+robotjs of the local device to determine whether the mouse is in the browser; step 4.16 determines whether the mouse is in the browser; if the mouse is in the browser, execute step 4.17 and use the js in the browser to determine whether the mouse is on a file path of the remote visualization desktop; step 4.18 determines whether it is on a path of the remote visualization desktop; if it is on a path of the remote visualization desktop, execute step 4.19 and use the js in the browser to record the remote visualization desktop path to the remote database through the remote data acquisition interface; 4.20 and use the js in the browser to call the file transfer interface to transfer the local file to the specific path of the remote visualization server; if it is not on a path of the remote visualization desktop, execute step 4.21 to clear the current user and remote visualization desktop record data recorded in the remote database.
[0060] After determining in step 4.16 that the mouse is in the browser, if the mouse is not in the browser, execute step 4.22 and use the local computer's electron+nodejs+robotjs to determine whether the mouse is on a file path on the local computer; step 4.23 determines whether the mouse is on a path on the local device; if it is on a path on the local device, execute step 4.24 and use the local device's electron+nodejs+robotjs to record the local computer file path into the remote database through the remote data acquisition interface; 4.25 4.25 uses the local device's electron+nodejs+robotjs to call the file transfer interface to transfer the file in the remote visualization machine to the corresponding path on the local device; if it is not on a path on the local device, execute step 4.26 to clear the recorded data of the current user and remote visualization desktop in the remote database.
[0061] The file transfer solution for remote desktop access based on a BS architecture provided by an embodiment of the present disclosure responds to a browser open request of a local device, displays a remote visual desktop based on the browser of the local device, obtains a user identifier and a remote visual desktop identifier, and clears the recorded data corresponding to the user identifier and the remote visual desktop identifier in a remote service database; obtains the local file path during mouse operation based on a mouse position and motion monitoring service of the local device, and records the local file path during mouse operation to the remote service database through a remote data acquisition interface according to the user identifier and the remote visual desktop identifier; obtains the remote visual desktop file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop, and records the remote visual desktop file path to the remote service database through a remote data acquisition interface according to the user identifier and the remote visual desktop identifier; and calls a file transfer interface based on the local file path and the remote visual desktop file path recorded in the remote service database through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop to perform file transfer processing. It solves the technical problems that local files cannot be directly dragged into the specified location of the remote visual desktop on the browser side by dragging and dropping, and files in the remote visual desktop on the browser side cannot be directly dragged into the local specified location by dragging and dropping. It can access the remote server desktop through the browser side, realize storage intercommunication between local devices and remote servers, and further improve data transmission efficiency and effectiveness.
[0062] Example 2:
[0063] Figure 5 This is a schematic diagram of the structure of a file transfer device for remote desktop access based on a BS architecture provided by an embodiment of the present disclosure. The device can be implemented by software and / or hardware and can generally be integrated into an electronic device. Figure 5 As shown, the device includes:
[0064] Response processing module 501, configured to respond to a browser open request of a local device, display a remote visual desktop based on the browser of the local device, obtain a user identifier and a remote visual desktop identifier, and clear the record data corresponding to the user identifier and the remote visual desktop identifier from a remote service database;
[0065] The first acquisition and recording module 502 is used to obtain the local file path during the mouse operation based on the mouse position and action monitoring service of the local device and record it in the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface;
[0066] The second acquisition and recording module 503 is used to obtain the remote visual desktop file path during mouse operation based on the remote visual desktop mouse position and action monitoring service and record it in the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface;
[0067] The transmission processing module 504 is used to call the file transmission interface to perform file transmission processing based on the local file path and the remote visual desktop file path recorded in the remote service database through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop.
[0068] Optionally, the first acquisition record module 502 is specifically used to: determine that the mouse position is not located in the browser when the mouse is clicked or released based on the mouse position and action monitoring service of the local device, and determine whether the mouse position is on any file path of the local device based on the mouse position and action monitoring service of the local device; when the mouse position is on any file path of the local device, obtain the local file path corresponding to the mouse position based on the mouse position and action monitoring service of the local device and record it to the remote service database according to the user identifier and remote visual desktop identifier through the remote data acquisition interface; when the mouse position is not on any file path of the local device, clear the record data corresponding to the user identifier and remote visual desktop identifier in the remote service database.
[0069] Optionally, the second record acquisition module 503 is specifically used to: determine whether the mouse position is within the browser when the mouse is clicked or released based on the mouse position and motion monitoring service of the local device, and determine whether the mouse position is on any file path of the remote visual desktop based on the mouse position and motion monitoring service of the remote visual desktop; when the mouse position is on any file path of the remote visual desktop, obtain the remote visual desktop file path corresponding to the mouse position based on the mouse position and motion monitoring service of the remote visual desktop and record it to the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface; when the mouse position is not on any file path of the remote visual desktop, clear the record data corresponding to the user identifier and the remote visual desktop identifier in the remote service database.
[0070] Optionally, the transmission processing module 504 is specifically used to: call the file transmission interface based on the mouse position and action monitoring service of the local device to transmit the file corresponding to the remote visual desktop file path in the remote server to the local file path of the local device.
[0071] Optionally, the transmission processing module 504 is specifically configured to: call a file transmission interface based on the mouse position and motion monitoring service of the remote visual desktop to transmit the file corresponding to the local file path to the remote visual desktop file path for transmission to the remote server.
[0072] Optionally, the device further includes: an acquisition binding module, configured to acquire a remote access application program interface of a remote server and bind the user identifier to the remote access application program interface.
[0073] Optionally, the device also includes: an installation service module, which is used to install the mouse position and motion monitoring service of the local device on the local device based on the preset first service technology, and to install the mouse position and motion monitoring service of the remote visual desktop on the remote server based on the preset second service technology.
[0074] Example 3:
[0075] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 6 , which shows a schematic structural diagram of an electronic device 600 suitable for implementing the embodiments of the present disclosure. The electronic device 600 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0076] like Figure 6 As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 602 or programs loaded from a storage device 608 into a random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing device 601, ROM 602, and RAM 603 are interconnected via a bus 604. An input / output (I / O) interface 605 is also connected to bus 604.
[0077] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Figure 6 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed instead.
[0078] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the file transfer method for remote desktop access based on the BS architecture of the embodiment of the present disclosure are performed.
[0079] It should be noted that the computer-readable medium described above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. Computer-readable storage media may include, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such a propagated data signal may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wire, optical cable, RF (radio frequency), or any suitable combination thereof.
[0080] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0081] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0082] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: responds to a browser opening request of a local device, displays a remote visual desktop based on the browser of the local device, obtains a user identifier and a remote visual desktop identifier, and clears the recorded data corresponding to the user identifier and the remote visual desktop identifier in a remote service database; obtains a local file path during mouse operation based on a mouse position and motion monitoring service of the local device, and records the local file path during mouse operation to the remote service database through a remote data acquisition interface according to the user identifier and the remote visual desktop identifier; obtains a remote visual desktop file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop, and records the remote visual desktop file path to the remote service database through a remote data acquisition interface according to the user identifier and the remote visual desktop identifier; and based on the local file path and remote visual desktop file path recorded in the remote service database, calls a file transfer interface through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop to perform file transfer processing. It solves the technical problems that local files cannot be directly dragged into the specified location of the remote visual desktop on the browser side by dragging and dropping, and files in the remote visual desktop on the browser side cannot be directly dragged into the local specified location by dragging and dropping. It can access the remote server desktop through the browser side, realize storage intercommunication between local devices and remote servers, and further improve data transmission efficiency and effectiveness.
[0083] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0084] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0085] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0086] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0087] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fibers, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0088] Example 4:
[0089] According to one or more embodiments of the present disclosure, the present disclosure provides an electronic device, including:
[0090] processor;
[0091] a memory for storing instructions executable by the processor;
[0092] The processor is configured to read the executable instructions from the memory and execute the instructions to implement any of the file transmission methods for remote desktop access based on BS architecture provided in the present disclosure.
[0093] Embodiment 5:
[0094] According to one or more embodiments of the present disclosure, the present disclosure provides a computer-readable storage medium storing a computer program for executing any of the file transfer methods for remote desktop access based on BS architecture provided by the present disclosure.
[0095] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the present disclosure is not limited to technical solutions formed by specific combinations of the aforementioned technical features. It also encompasses other technical solutions formed by any combination of the aforementioned technical features or their equivalents, without departing from the scope of the above disclosure. For example, a technical solution formed by replacing the aforementioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0096] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0097] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A file transfer method for remote desktop access based on BS architecture, characterized in that: include: In response to a browser open request of a local device, a remote visual desktop is displayed based on the browser of the local device, a user identifier and a remote visual desktop identifier are obtained, and the record data corresponding to the user identifier and the remote visual desktop identifier in the remote service database is cleared and processed; wherein, an Http request is sent to a remote server through the browser of the local device, and after the Http request is successful, a novnc page is accessed as the remote visual desktop through an Iframe embedded system; wherein, an Http request is sent to an Nginx reverse proxy Django backend API based on the novnc page, and the Django backend API is used to judge the user access rights in the Http request, and after the judgment is passed, the Http request is forwarded to the Http connection of the remote server to be forwarded to the remote The novnc service of the visualization service, the novnc service of the remote visualization service returns the novnc visualization data to the HTTP connection of the remote server for forwarding to the Django backend API, and forwards it to the Nginx reverse proxy Django backend API through the Django backend API to be displayed on the novnc page; and / or, based on the novnc page, sends a Websockify request to the Nginx reverse proxy Websockify connection, forwards the Websockify request to the novnc service of the visualization service through the Nginx reverse proxy Websockify connection, and the novnc service of the visualization service returns the Websockify data to the Nginx reverse proxy Websockify connection for display on the novnc page; Acquire the local file path during mouse operation based on the mouse position and action monitoring service of the local device and record it in the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface; Acquiring a remote visual desktop file path during mouse operation based on the remote visual desktop mouse position and motion monitoring service and recording the path in the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface; Based on the local file path and the remote visual desktop file path recorded in the remote service database, calling a file transfer interface through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop to perform file transfer processing; The method of obtaining the local file path during mouse operation based on the mouse position and action monitoring service of the local device and recording the path to the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface includes: Determining that the mouse position is not located within the browser when the mouse is clicked or released based on the mouse position and action monitoring service of the local device, and determining whether the mouse position is on any file path of the local device based on the mouse position and action monitoring service of the local device; When the mouse position is on any file path of the local device, obtaining the local file path corresponding to the mouse position based on the mouse position and motion monitoring service of the local device and recording it in the remote service database according to the user identifier and the remote visual desktop identifier through a remote data acquisition interface; If the mouse position is not on any file path of the local device, clearing the record data corresponding to the user identifier and the remote visual desktop identifier in the remote service database; The method of obtaining the remote visual desktop file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop and recording the path in the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface includes: Determining that the mouse position is located within the browser when the mouse is clicked or released based on the mouse position and motion monitoring service of the local device, and determining whether the mouse position is on any file path of the remote visual desktop based on the mouse position and motion monitoring service of the remote visual desktop; When the mouse position is on any file path of the remote visual desktop, obtaining the remote visual desktop file path corresponding to the mouse position based on the mouse position and motion monitoring service of the remote visual desktop, and recording the remote visual desktop file path according to the user identifier and the remote visual desktop identifier in the remote service database through a remote data acquisition interface; If the mouse position is not on any file path of the remote visual desktop, record data corresponding to the user identifier and the remote visual desktop identifier is cleared from a remote service database.
2. The file transmission method for remote desktop access based on BS architecture according to claim 1, characterized in that: Based on the local file path and the remote visual desktop file path recorded in the remote service database, a file transfer process is performed by calling a file transfer interface through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop, including: Based on the mouse position and action monitoring service of the local device, a file transfer interface is called to transfer the file corresponding to the remote visual desktop file path in the remote server to the local file path of the local device.
3. The file transmission method for remote desktop access based on BS architecture according to claim 1, characterized in that: Based on the local file path and the remote visual desktop file path recorded in the remote service database, a file transfer process is performed by calling a file transfer interface through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop, including: The mouse position and action monitoring service based on the remote visual desktop calls a file transfer interface to transfer the file corresponding to the local file path to the remote visual desktop file path so as to be transmitted to the remote server.
4. The file transmission method for remote desktop access based on BS architecture according to claim 1, characterized in that: The method further comprises: Get the remote server's remote access API; Binding the user identification to the remote access application program interface.
5. The file transmission method for remote desktop access based on BS architecture according to claim 1, characterized in that: The method further comprises: installing a mouse position and motion monitoring service of the local device on the local device based on a preset first service technology; The mouse position and motion monitoring service of the remote visual desktop is installed on the remote server based on the preset second service technology.
6. A file transfer device for remote desktop access based on BS architecture, characterized in that: include: The response processing module is used to respond to the browser opening request of the local device, display the remote visual desktop based on the browser of the local device, obtain the user identifier and the remote visual desktop identifier and clear the record data corresponding to the user identifier and the remote visual desktop identifier in the remote service database; wherein, an Http request is sent to the remote server through the browser of the local device, and after the Http request is successful, the novnc page is accessed as the remote visual desktop through the Iframe embedded; wherein, based on the novnc page, an Http request is sent to the Nginx reverse proxy Django backend API, and the Django backend API is used to judge the user access rights in the Http request, and after the judgment is passed, the Http request is forwarded to the Http connection of the remote server to forward To the novnc service of the remote visualization service, the novnc service of the remote visualization service returns the novnc visualization data to the HTTP connection of the remote server for forwarding to the Django backend API, and forwarding to the Nginx reverse proxy Django backend API through the Django backend API for display on the novnc page; and / or, based on the novnc page, sending a Websockify request to the Nginx reverse proxy Websockify connection, forwarding the Websockify request to the novnc service of the visualization service through the Nginx reverse proxy Websockify connection, and the novnc service of the visualization service returns the Websockify data to the Nginx reverse proxy Websockify connection for display on the novnc page; A first acquisition and recording module is used to obtain the local file path during the mouse operation based on the mouse position and action monitoring service of the local device and record it in the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface; a second acquisition and recording module, configured to acquire a remote visual desktop file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop, and record the acquired file path in the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface; a transmission processing module, configured to perform file transmission processing by calling a file transmission interface through the mouse position and motion monitoring service of the local device or the mouse position and motion monitoring service of the remote visual desktop based on the local file path and the remote visual desktop file path recorded in the remote service database; Wherein, the obtaining of the local file path during mouse operation based on the mouse position and motion monitoring service of the local device and recording the same to the remote service database through the remote data acquisition interface according to the user identifier and the remote visual desktop identifier include: determining that the mouse position is not located within the browser when the mouse is clicked or released based on the mouse position and motion monitoring service of the local device, and determining whether the mouse position is on any file path of the local device based on the mouse position and motion monitoring service of the local device; when the mouse position is on any file path of the local device, obtaining the local file path corresponding to the mouse position based on the mouse position and motion monitoring service of the local device and recording the same to the remote service database through the remote data acquisition interface according to the user identifier and the remote visual desktop identifier; and when the mouse position is not on any file path of the local device, clearing the recorded data corresponding to the user identifier and the remote visual desktop identifier in the remote service database; The acquiring of the remote visual desktop file path during mouse operation based on the mouse position and motion monitoring service of the remote visual desktop and recording the path to the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface includes: determining, based on the mouse position and motion monitoring service of the local device, when a mouse is clicked or released, that the mouse position is located within the browser; determining, based on the mouse position and motion monitoring service of the remote visual desktop, whether the mouse position is located on any file path of the remote visual desktop; if the mouse position is located on any file path of the remote visual desktop, acquiring, based on the mouse position and motion monitoring service of the remote visual desktop, the remote visual desktop file path corresponding to the mouse position, and recording the path to the remote service database according to the user identifier and the remote visual desktop identifier through the remote data acquisition interface; and if the mouse position is not located on any file path of the remote visual desktop, clearing the recorded data corresponding to the user identifier and the remote visual desktop identifier from the remote service database.
7. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing instructions executable by the processor; The processor is configured to read the executable instructions from the memory and execute the instructions to implement the file transmission method for remote desktop access based on the BS architecture as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and the computer program is used to execute the file transmission method for remote desktop access based on BS architecture as described in any one of claims 1 to 5.
Citation Information
Patent Citations
File transmission method and computing device
CN118802898A