TW201805832A - File transfer method and apparatus - Google Patents

File transfer method and apparatus Download PDF

Info

Publication number
TW201805832A
TW201805832A TW106119496A TW106119496A TW201805832A TW 201805832 A TW201805832 A TW 201805832A TW 106119496 A TW106119496 A TW 106119496A TW 106119496 A TW106119496 A TW 106119496A TW 201805832 A TW201805832 A TW 201805832A
Authority
TW
Taiwan
Prior art keywords
client
file
built
server
address information
Prior art date
Application number
TW106119496A
Other languages
Chinese (zh)
Other versions
TWI686702B (en
Inventor
狄群
Original Assignee
阿里巴巴集團服務有限公司
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 阿里巴巴集團服務有限公司 filed Critical 阿里巴巴集團服務有限公司
Publication of TW201805832A publication Critical patent/TW201805832A/en
Application granted granted Critical
Publication of TWI686702B publication Critical patent/TWI686702B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/457Network directories; Name-to-address mapping containing identifiers of data entities on a computer, e.g. file names
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Landscapes

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

Abstract

Disclosed in the present application are a file transfer method and apparatus, for solving the problem, in the prior art, of increased data leakage risk of picture transfer between mobile devices by means of a cloud drive. A first client and a second client are located in a same local area network. The method comprises: the first client obtaining address information of a built-in server of the first client in the local area network; the first client generating, according to the address information, the DOI containing the address information, so as to facilitate the second client to send, by means of scanning the DOI, a file to the built-in server; the first client obtaining the file received by the built-in server.

Description

檔案傳輸方法及裝置 File transmission method and device

本發明涉及網路技術領域,尤其涉及檔案傳輸方法及裝置。 The present invention relates to the field of network technology, and in particular, to a file transmission method and device.

隨著移動設備的使用普及,用戶越來越多地透過移動設備(比如,手機、平板電腦、智慧手錶等)來分享各類檔案,這種分享是基於檔案傳輸實現的。 With the popularization of mobile devices, users are increasingly sharing various files through mobile devices (such as mobile phones, tablets, smart watches, etc.), and this sharing is based on file transfer.

圖片是用戶最常傳輸的一類檔案之一。例如,在某些商業運營活動中,商戶需要用戶提供其手機內的圖片來做驗證或者其他用途,假定商戶為用戶提供免費的照片列印功能,則需要用戶提供其手機內待列印的照片。 Pictures are one of the most common types of files transmitted by users. For example, in some business operations, merchants need users to provide pictures on their mobile phones for verification or other purposes. Assuming that merchants provide users with free photo printing functions, users are required to provide photos to be printed on their mobile phones. .

在現有技術中,用戶往往透過網際網路中的雲盤間接地傳輸圖片。假定用戶A要將自己手機裡的圖片傳輸給用戶B,用戶A可以將自己的手機接入網際網路,再將手機中待分享的圖片上傳至雲盤中保存,用戶B也需要將自己的手機接入網際網路,以訪問用戶A的雲盤,進而可以從雲盤中下載獲得用戶A上傳的圖片。 In the prior art, users often transfer pictures indirectly through a cloud disk in the Internet. Assume that user A wants to transfer the pictures in his mobile phone to user B. User A can connect his mobile phone to the Internet and upload the pictures to be shared in the mobile phone to the cloud disk for storage. User B also needs to upload his own The mobile phone is connected to the Internet to access the cloud disk of user A, and the picture uploaded by user A can be downloaded from the cloud disk.

但是,對於現有技術中移動設備間透過雲盤傳輸圖片的方式,無論是雲盤本身,還是雲盤至用戶手機之間的網 際網路傳輸路徑,安全性都難以保障,導致資料洩漏風險較高。 However, in the prior art, the method of transmitting pictures between mobile devices through a cloud disk, whether it is the cloud disk itself, or the network between the cloud disk and the user's mobile phone It is difficult to guarantee the security of Internet transmission paths, leading to a higher risk of data leakage.

本發明實施例提供一種檔案傳輸方法及裝置,用以解決現有技術中移動設備間透過雲盤傳輸圖片的方式的資料洩漏風險較高的問題。 The embodiments of the present invention provide a file transmission method and device, which are used to solve the problem of high data leakage risk in the way of transmitting pictures between mobile devices through a cloud disk in the prior art.

本發明實施例還提供另一種檔案傳輸方法及裝置。 Embodiments of the present invention also provide another file transmission method and device.

本發明實施例採用下述技術方案:本發明實施例提供的一種檔案傳輸方法,第一用戶端與第二用戶端處於同一區域網路中,所述方法包括:所述第一用戶端獲得所述第一用戶端的內建伺服器在所述區域網路中的位址資訊;所述第一用戶端根據所述位址資訊,生成包含所述位址資訊的數位物件唯一識別碼DOI,以便於所述第二用戶端透過掃描所述DOI,向所述內建伺服器發送檔案;所述第一用戶端獲得所述內建伺服器接收到的所述檔案。 The embodiment of the present invention adopts the following technical solution: a file transmission method provided by the embodiment of the present invention, in which the first client and the second client are in the same local area network, and the method includes that the first client obtains The address information of the built-in server of the first client in the local network; the first client generates a unique identifier DOI of a digital object containing the address information according to the address information, so that Scan the DOI at the second client to send a file to the built-in server; the first client obtains the file received by the built-in server.

本發明實施例提供的一種檔案傳輸裝置,第一用戶端與第二用戶端處於同一區域網路中,所述裝置位於所述第一用戶端上,所述裝置包括:位址資訊獲得模組,獲得所述第一用戶端的內建伺服器在所述區域網路中的位址資訊;DOI生成模組,根據所述位址資訊,生成包含所述位 址資訊的DOI,以便於所述第二用戶端透過掃描所述DOI,向所述內建伺服器發送檔案;檔案獲得模組,獲得所述內建伺服器接收到的所述檔案。 According to an embodiment of the present invention, a file transmission device is provided. A first client and a second client are in the same local area network. The device is located on the first client. The device includes an address information obtaining module. To obtain the address information of the built-in server of the first client in the local network; the DOI generation module generates, based on the address information, DOI of the address information, so that the second client sends a file to the built-in server by scanning the DOI; a file obtaining module obtains the file received by the built-in server.

本發明實施例提供的另一種檔案傳輸方法,第一用戶端與第二用戶端處於同一區域網路中,所述方法包括:所述第二用戶端掃描所述第一用戶端生成的DOI,其中,所述DOI中包含所述第一用戶端中的內建伺服器在所述區域網路中的位址資訊;所述第二用戶端獲得所述DOI中包含的所述位址資訊;所述第二用戶端根據所述位址資訊,向所述內建伺服器發送檔案,以便於所述第一用戶端獲得所述內建伺服器接收到的所述檔案。 According to another file transmission method provided by an embodiment of the present invention, a first client and a second client are in a same local area network, and the method includes: the second client scans a DOI generated by the first client, Wherein, the DOI includes address information of a built-in server in the first client in the local network, and the second client obtains the address information included in the DOI; The second client sends a file to the built-in server according to the address information, so that the first client obtains the file received by the built-in server.

本發明實施例提供的另一種檔案傳輸裝置,第一用戶端與第二用戶端處於同一區域網路中,所述裝置位於所述第二用戶端上,所述裝置包括:DOI掃描模組,掃描所述第一用戶端生成的DOI,其中,所述DOI中包含所述第一用戶端中的內建伺服器在所述區域網路中的位址資訊;位址資訊獲得模組,獲得所述DOI中包含的所述位址資訊;檔案發送模組,根據所述位址資訊,向所述內建伺服器發送檔案,以便於所述第一用戶端獲得所述內建伺服器 接收到的所述檔案。 According to another file transmission device provided by an embodiment of the present invention, a first client and a second client are located in the same local area network, the device is located on the second client, and the device includes a DOI scanning module, Scanning the DOI generated by the first client, wherein the DOI includes address information of a built-in server in the first client in the local network; the address information obtaining module obtains The address information included in the DOI; a file sending module sends a file to the built-in server according to the address information, so that the first client obtains the built-in server Received the file.

本發明實施例採用的上述至少一個技術方案能夠達到以下有益效果:第一用戶端與第二用戶端可以分別位於要傳輸檔案的兩個移動設備上,圖片屬於檔案的一種,這兩個移動設備無需接入網際網路,也無需與諸如雲盤伺服器等協力廠商伺服器進行交互,只需要利用區域網路即可完成移動設備間的圖片傳輸,相比於網際網路,區域網路的安全性更容易保障,可以減少資料洩漏風險,因此,可以部分或全部地解決現有技術中的問題。 The above at least one technical solution adopted in the embodiment of the present invention can achieve the following beneficial effects: the first client and the second client can be located on two mobile devices to transmit files, and the picture belongs to one of the files, and the two mobile devices No need to access the Internet, and no need to interact with third-party servers such as cloud disk servers. You only need to use the local network to complete the transfer of pictures between mobile devices. Compared to the Internet, the local network Security is easier to guarantee, and the risk of data leakage can be reduced. Therefore, the problems in the prior art can be partially or completely solved.

701‧‧‧位址資訊獲得模組 701‧‧‧Address information acquisition module

702‧‧‧DOI生成模組 702‧‧‧DOI generation module

703‧‧‧檔案獲得模組 703‧‧‧File Acquisition Module

704‧‧‧內建伺服器啟動模組 704‧‧‧Built-in server startup module

705‧‧‧檔案傳輸介面模組 705‧‧‧File Transfer Interface Module

706‧‧‧檔案保存模組 706‧‧‧File save module

801‧‧‧DOI掃描模組 801‧‧‧DOI scanning module

802‧‧‧位址資訊獲得模組 802‧‧‧Address information acquisition module

803‧‧‧檔案發送模組 803‧‧‧File sending module

此處所說明的圖式用來提供對本發明的進一步理解,構成本發明的一部分,本發明的示意性實施例及其說明用於解釋本發明,並不構成對本發明的不當限定。在圖式中:圖1為本發明實施例提供的一種檔案傳輸方法的流程示意圖;圖2為本發明實施例提供的另一種檔案傳輸方法的流程示意圖;圖3為本發明實施例提供的一種實際應用場景下,本發明的方案中的交互過程示意圖;圖4為本發明實施例提供的一種用於實現本發明的方案的軟體架構示意圖;圖5為一種實際應用場景下,現有技術的方案的原理 示意圖;圖6為本發明實施例提供的一種實際應用場景下,本發明的方案的原理示意圖;圖7為本發明實施例提供的對應於圖1的檔案傳輸裝置的結構示意圖;圖8為本發明實施例提供的對應於圖2的檔案傳輸裝置的結構示意圖。 The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and the description thereof are used to explain the present invention, and do not constitute an improper limitation on the present invention. In the drawings: FIG. 1 is a schematic flowchart of a file transmission method according to an embodiment of the present invention; FIG. 2 is a schematic flowchart of another file transmission method according to an embodiment of the present invention; FIG. 3 is a method provided by an embodiment of the present invention The schematic diagram of the interaction process in the solution of the present invention in an actual application scenario; FIG. 4 is a schematic diagram of a software architecture for implementing the solution of the present invention according to an embodiment of the present invention; FIG. 5 is a solution of the prior art in an actual application scenario Principle Schematic diagram; FIG. 6 is a schematic diagram of the principle of the solution of the present invention in an actual application scenario provided by an embodiment of the present invention; FIG. 7 is a schematic structural diagram of a file transmission device corresponding to FIG. 1 provided by an embodiment of the present invention; The structure diagram of the file transmission device corresponding to FIG. 2 provided by the embodiment of the invention.

為使本發明的目的、技術方案和優點更加清楚,下面將結合本發明具體實施例及相應的圖式對本發明技術方案進行清楚、完整地描述。顯然,所描述的實施例僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 In order to make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described in combination with specific embodiments of the present invention and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

如前所述,現有技術存在安全性的問題,除此之外,現有技術還存在其他問題。比如,傳輸圖片的過程需要耗費雙方用戶移動設備的付費網路流量;當圖片的資料量較大時傳輸耗時較多;雲盤本身可能需要用戶額外付費使用;等等。本發明的方案可以部分或全部地解決背景技術中提到的問題,以及列舉的這些問題。下面對本發明的方案進行說明。 As mentioned above, the existing technology has security problems. In addition, the existing technology also has other problems. For example, the process of transmitting pictures requires the user ’s mobile device ’s paid network traffic; when the amount of picture data is large, the transmission takes more time; the cloud disk itself may require the user to pay an extra fee; and so on. The solution of the present invention can partially or completely solve the problems mentioned in the background, as well as the problems listed. The scheme of the present invention will be described below.

在本發明實施例中,對於傳輸檔案的雙方設備,為了便於描述,將接收檔案的一方設備稱為“第一設備”,將發 送檔案的一方設備稱為“第二設備”。第一設備和/或第二設備可以是移動設備,比如,手機、平板電腦、筆記型電腦、智慧手錶、智慧手環、車載移動台等;第一設備和/或第二設備也可以是非移動設備,比如,個人電腦(PC)、大中型電腦、電腦集群等。 In the embodiment of the present invention, for both devices transmitting files, for convenience of description, the device receiving the file is referred to as the "first device", and The device that sends the file is called the "second device." The first device and / or the second device may be a mobile device, such as a mobile phone, a tablet computer, a notebook computer, a smart watch, a smart bracelet, a car mobile station, etc .; the first device and / or the second device may also be non-mobile Equipment, such as personal computers (PC), large and medium computers, computer clusters, etc.

列舉的這些設備只是作為示例,並不構成對本發明的限定。例如,在背景技術的例子中,第一設備和第二設備均為手機。 These devices are listed as examples only and are not intended to limit the present invention. For example, in the background art example, the first device and the second device are both mobile phones.

進一步地,第一設備上搭載第一用戶端,第二設備上搭載第二用戶端。一般地,第一用戶端、第二用戶端屬於同一個應用程式(App)。 Further, a first client is mounted on the first device, and a second client is mounted on the second device. Generally, the first client and the second client belong to the same application.

圖1為本發明實施例提供的一種檔案傳輸方法的流程示意圖,第一用戶端與第二用戶端處於同一區域網路中(也即,第一設備與第二設備處於同一區域網路中),圖1中的流程以第一用戶端作為執行主體,可以包括以下步驟: S101:所述第一用戶端獲得所述第一用戶端的內建伺服器在所述區域網路中的位址資訊。 FIG. 1 is a schematic flowchart of a file transmission method according to an embodiment of the present invention. The first client and the second client are in the same local network (that is, the first device and the second device are in the same local network). The process in Figure 1 uses the first client as the execution body and can include the following steps: S101: The first client obtains address information of the built-in server of the first client in the local area network.

在本發明實施例中,所述區域網路可以是無線區域網路,比如無線保真(Wireless Fidelity,WiFi)網路、全球微波互聯接入(Worldwide Interoperability for Microwave Access,WiMAX)網路等;所述區域網路也可以是透過網線、電纜、或光纖等互聯的有線區域網路。 In the embodiment of the present invention, the local area network may be a wireless local area network, such as a Wireless Fidelity (WiFi) network, a Worldwide Interoperability for Microwave Access (WiMAX) network, and the like; The local area network may also be a wired local area network interconnected through a network cable, cable, or optical fiber.

在本發明實施例中,第一用戶端的內建伺服器可以是 預先建立的,也可以是在執行步驟S101時即時地建立的。內建伺服器可以建立於第一設備上的至少一個應用程式中,也可以不依賴於應用程式,而是建立於第一設備的作業系統中,甚至還可以建立於第一設備的至少一個硬體的驅動程式中。 In the embodiment of the present invention, the built-in server of the first client may be It may be established in advance, or may be established immediately when step S101 is performed. The built-in server can be built in at least one application on the first device, or not depend on the application, but in the operating system of the first device, and can even be built in at least one hardware of the first device. In the driver.

內建伺服器至少可以提供區域網路內的資料傳輸服務。本發明對所述資料傳輸服務所基於的傳輸協定並不做限定,可以是超文字傳輸協定(Hyper Text Transfer Protocol,HTTP)、檔案傳輸通訊協定(File Transfer Protocol,FTP)、或簡單檔案傳輸通訊協定(Trivial File Transfer Protocol,TFTP)等。以HTTP為例,內建服務器具體可以是HTTP伺服器(HTTPServer)。 The built-in server can provide at least data transmission services in the local area network. The present invention does not limit the transmission protocol on which the data transmission service is based, and may be a Hyper Text Transfer Protocol (HTTP), a File Transfer Protocol (FTP), or a simple file transfer communication Protocol (Trivial File Transfer Protocol, TFTP), etc. Taking HTTP as an example, the built-in server may specifically be an HTTP server (HTTPServer).

在本發明實施例中,內建伺服器在區域網路中的位址資訊可以是由區域網路自動分配的,也可以是由第一用戶端自動配置的,也可以是用戶預先手動配置的。 In the embodiment of the present invention, the address information of the built-in server in the local area network may be automatically allocated by the local area network, or may be automatically configured by the first client, or may be manually configured by the user in advance. .

位址資訊可以包括區域網路IP位址和埠號,另外,若第一用戶端在區域網路內擁有功能變數名稱,則位址資訊可以包括功能變數名稱和埠號。為了便於使用,位址資訊一般是用統一資源定位器(Uniform Resource Locator,URL)的形式表示的,比如,某個第一用戶端的某個內建伺服器的位址資訊可以表示如下:“http://192.168,0.100:15000”。 The address information may include a local network IP address and a port number. In addition, if the first client has a function variable name in the local network, the address information may include a function variable name and a port number. For ease of use, the address information is generally expressed in the form of a Uniform Resource Locator (URL). For example, the address information of a built-in server of a certain first client can be expressed as follows: "http : //192.168,0.100:15000 ".

其中,“192.168,0.100”為該內建伺服器的區域網路IP位址,“15000”為該內建伺服器的埠號。 Among them, "192.168,0.100" is the LAN IP address of the built-in server, and "15000" is the port number of the built-in server.

需要說明的是,URL是位址資訊的一種表示形式示例,並非是對本發明的限定,在實際應用中,也可以採用其他的表示形式表示位址資訊,比如,可延伸標記語言(Extensible Markup Language,XML)等。 It should be noted that URL is an example of a representation form of address information, and is not a limitation on the present invention. In practical applications, other representation forms may also be used to represent address information, such as Extensible Markup Language , XML), etc.

S102:所述第一用戶端根據所述位址資訊,生成包含所述位址資訊的數位物件唯一識別碼(Digital Object Unique Identifier,DOI),以便於所述第二用戶端透過掃描所述DOI,向所述內建伺服器發送檔案。 S102: The first client generates a Digital Object Unique Identifier (DOI) containing the address information according to the address information, so that the second client can scan the DOI by scanning the DOI. To send a file to the built-in server.

在本發明實施例中,DOI包括但不限於:二維碼、條碼、字元碼、網路功能變數名稱等。下面的實施例主要以DOI是二維碼為例進行說明。 In the embodiment of the present invention, the DOI includes, but is not limited to, a two-dimensional code, a bar code, a character code, a network function variable name, and the like. The following embodiments are mainly described by taking DOI as a two-dimensional code as an example.

在本發明實施例中,所述檔案可以是圖片,也可以是諸如視頻、文檔、音樂、或應用程式安裝包等其他檔案。 In the embodiment of the present invention, the file may be a picture, or may be another file such as a video, a document, music, or an application installation package.

在本發明實施例中,在第一用戶端生成DOI後,可以直接透過第一用戶端即時地將DOI進行展示;可以將DOI輸出後以其他方式展示,比如,在實物上列印出來展示,透過某些應用程式發佈展示,等等。 In the embodiment of the present invention, after the DOI is generated by the first client, the DOI can be displayed directly through the first client in real time; the DOI can be displayed in other ways after being output, for example, printed on a physical object for display, Post impressions through certain apps, and more.

進一步地,第二用戶端可以掃描展示的DOI,解析獲得DOI包含的位址資訊,進而可以根據該位址資訊與內建伺服器建立連接,以及透過該連接,向內建伺服器發送檔案。所述檔案即為第二用戶端待傳輸給第一用戶端的檔案,掃描DOI的功能可以由第二設備或者與連接第二設備的相應硬體設備提供支援,如攝像頭等。 Further, the second client can scan the displayed DOI, parse and obtain the address information contained in the DOI, and then establish a connection with the built-in server according to the address information, and send the file to the built-in server through the connection. The file is a file to be transmitted from the second client to the first client, and the function of scanning the DOI may be supported by the second device or a corresponding hardware device connected to the second device, such as a camera.

需要說明的是,在圖1的流程執行期間,第二用戶端 未必要一直與第一用戶端處於同一區域網路中。第二用戶端可以只在需要執行某些具體動作(比如,掃描DOI碼、發送檔案)時,才與第一用戶端處於同一區域網路中。 It should be noted that during the execution of the process in FIG. 1, the second client It is not necessary to be on the same local area network as the first client. The second client may be in the same local network as the first client only when it needs to perform certain specific actions (for example, scanning a DOI code and sending a file).

S103:所述第一用戶端獲得所述內建伺服器接收到的所述檔案。 S103: The first client obtains the file received by the built-in server.

在本發明實施例中,由於內建伺服器位於第一用戶端中,屬於第一用戶端的組成部分,因此,“內建伺服器接收檔案”也即“第一用戶端接收檔案”。 In the embodiment of the present invention, since the built-in server is located in the first client and belongs to the component of the first client, the “built-in server receives the file”, that is, the “first client receives the file”.

第一用戶端獲得第二用戶端發送的檔案後,還可以針對檔案執行進一步的動作。比如,將檔案保存至特定位置(如保存至本地相冊中等)、採用特定應用程式(如用圖片檢視器或網頁瀏覽器打開等)將檔案打開、或生成檔案的預覽介面,等等。這些動作可以由內建伺服器繼續執行,也可以由第一用戶端上的其他程式執行。 After the first client obtains the file sent by the second client, it can perform further actions on the file. For example, save the file to a specific location (such as saving to a local album, etc.), use a specific application (such as opening with a picture viewer or web browser, etc.) to open the file, or generate a preview interface of the file, and so on. These actions can be continued by the built-in server or by other programs on the first client.

透過圖1中的方法,第一用戶端與第二用戶端可以分別位於要傳輸檔案的兩個移動設備上,圖片屬於檔案的一種,這兩個移動設備無需接入網際網路,也無需與諸如雲盤伺服器等協力廠商伺服器進行交互,只需要利用區域網路即可完成移動設備間的圖片傳輸,相比於網際網路,區域網路的安全性更容易保障,可以減少資料洩漏風險,因此,可以部分或全部地解決背景技術中的問題。 Through the method shown in Figure 1, the first client and the second client can be located on two mobile devices to transfer files. The picture belongs to the file type. These two mobile devices do not need to be connected to the Internet, Third-party servers such as cloud disk servers interact with each other, and only need to use the local area network to complete the transfer of pictures between mobile devices. Compared with the Internet, the security of the local area network is easier to ensure, which can reduce data leakage. Risk, therefore, can solve the problems in the background art in part or in whole.

不僅如此,由於檔案傳輸的過程是基於區域網路進行的,因此,不會耗費雙方用戶移動設備的付費網路流量。 一般而言,區域網路提供給用戶的傳輸頻寬要大於甚至遠大於網際網路的付費網路頻寬,因此,還可以減少檔案傳輸耗時。本發明的方案也無需使用雲盤,因此,也無需用戶為使用雲盤額外付費。 Not only that, because the file transfer process is based on the local area network, it will not consume the paid network traffic of the mobile devices of both users. Generally speaking, the transmission bandwidth provided by the local area network to users is greater than or even much larger than the paid network bandwidth of the Internet. Therefore, the time required for file transmission can also be reduced. The solution of the present invention also does not require the use of a cloud disk, and therefore, it does not require users to pay extra for using the cloud disk.

在實際應用中,現有技術除了背景技術中提到的基於雲盤的圖片傳輸方式以外,還有基於即時通訊應用程式的圖片傳輸方式,但是,後者一般也需要用戶設備接入網際網路,並透過網際網路進行圖片傳輸,因此,也存在與基於雲盤的圖片傳輸方式類似的問題,在此不贅述。另外,現有技術還有基於藍牙或者紅外的圖片傳輸方式,但是這類方式需要諸如藍牙技術、紅外技術等專用的硬體模組和通訊協定的支援,而且可能需要用戶配置複雜的技術參數,實施成本較高,相比於這類方式,本發明的方案無需增加專用的硬體模組和通訊協定,也無需用戶配置複雜的技術參數,因此,實施成本較低。 In actual applications, in addition to the cloud disk-based image transmission method mentioned in the background technology, the existing technology also has an image communication method based on an instant messaging application. However, the latter generally also requires user equipment to access the Internet, and Image transmission is performed through the Internet. Therefore, there are similar problems with cloud disk-based image transmission methods, and details are not described here. In addition, the existing technology also has a picture transmission method based on Bluetooth or infrared, but this method requires the support of dedicated hardware modules and communication protocols such as Bluetooth technology and infrared technology, and may require users to configure complex technical parameters and implement The cost is high. Compared with this method, the solution of the present invention does not need to add dedicated hardware modules and communication protocols, nor does it require users to configure complicated technical parameters, so the implementation cost is lower.

基於圖1中的方法,本發明實施例還提供了該方法的一些具體實施方案,以及擴展方案,下面進行說明。 Based on the method in FIG. 1, the embodiment of the present invention further provides some specific implementation methods and extension solutions of the method, which are described below.

在本發明實施例中,為了減少第一用戶端的資源消耗,第一用戶端的內建伺服器可以不用一直保持已啟動的狀態,而是在需要傳輸檔案時,再由基於用戶的操作而啟動。在這種情況下,對於步驟S102,所述第一用戶端獲得所述第一用戶端的內建伺服器在所述區域網路中的位址資訊前,還可以執行:所述第一用戶端啟動所述第一用戶端的內建伺服器。需要說明的是,若內建伺服器在區域網 路中的位址資訊已經預先配置的話,則第一用戶端也可以在內建伺服器啟動前就執行步驟S101,相應地,內建伺服器也只需要在第二用戶端與內建伺服器建立連接前啟動即可。 In the embodiment of the present invention, in order to reduce the resource consumption of the first client, the built-in server of the first client does not need to keep the activated state all the time, but when the file needs to be transmitted, it is started by the user's operation. In this case, for step S102, before the first client obtains the address information of the built-in server of the first client in the local network, the first client may also execute: the first client Start the built-in server of the first client. It should be noted that if the built-in server is in a local area network If the address information in the road is pre-configured, the first client can also execute step S101 before the built-in server starts. Accordingly, the built-in server only needs to perform the second client and the built-in server. Just start before establishing a connection.

進一步地,為了便於用戶使用,內建伺服器還可以有相應的操作介面(可以保存為相應的操作介面資訊),所述操作介面可以包括:用於在第一用戶端上展示的介面(比如,用於啟動內建伺服器的控制介面等)、和/或用於在第二用戶端上展示的介面(比如,用於選取待傳輸檔案的檔案傳輸介面等)。操作介面中可以包含相應的操作提示資訊和操作控制項。 Further, for the convenience of users, the built-in server may also have a corresponding operation interface (which can be saved as corresponding operation interface information), and the operation interface may include: an interface for displaying on the first client (such as , A control interface for starting a built-in server, etc.), and / or an interface for displaying on a second client (for example, a file transfer interface for selecting a file to be transferred, etc.). The operation interface can include corresponding operation prompt information and operation controls.

本發明對所述操作介面的構建方式並不做限定。一般地,可以使用基於的超文字標記語言(HyperText Markup Language,HTML)、層疊樣式表(Cascading Style Sheets,CSS),以及至少一種指令碼語言(比如,javascript、python等)的網頁視圖(webview)解決方案來構建操作介面。 The invention does not limit the manner of constructing the operation interface. Generally, a Hypertext Markup Language (HTML), Cascading Style Sheets (CSS), and at least one scripting language (eg, JavaScript, Python, etc.) can be used. Solution to build the interface.

以所述操作介面是檔案傳輸介面為例,對於步驟S102,生成包含所述位址資訊的DOI後,第一用戶端還可以執行:向所述第二用戶端提供檔案傳輸介面資訊,以便於所述第二用戶端根據所述檔案傳輸介面資訊,展示用於發送所述檔案的檔案傳輸介面。從而可以提高第二用戶端用戶的操作便利性。 Taking the operation interface as a file transmission interface as an example, for step S102, after generating a DOI containing the address information, the first client can also execute: provide the file transmission interface information to the second client so as to facilitate The second client terminal displays a file transmission interface for sending the file according to the file transmission interface information. Thereby, the operation convenience of the user of the second user end can be improved.

在本發明實施例中,前面已經提到所述的區域網路可 以為無線區域網路,也可以為有線區域網路。考慮到用戶一般更多地使用移動設備傳輸圖片,而移動設備採用無線通訊方式,因此,在實際應用中,本發明的方案可能會更多地在無線區域網路的場景下使用。 In the embodiment of the present invention, the local area network mentioned earlier may be Think wireless LAN or wired LAN. Considering that users generally use mobile devices to transmit pictures, and mobile devices use wireless communication methods, therefore, in practical applications, the solution of the present invention may be used more in the scenario of wireless local area networks.

目前,WiFi網路是使用最為廣泛的無線區域網路,日常生活中幾乎隨處可見,WiFi網路的使用普及,可以給本發明的方案的實際應用帶來極大便利。沿用背景技術中的例子,在商業運營活動中,商家一般會提供免費的WiFi網路以供用戶使用,則基於本發明的方案和該WiFi網路,用戶可以便利地分享圖片或圖片以外的其他檔案。 At present, the WiFi network is the most widely used wireless local area network. It can be seen almost everywhere in daily life. The widespread use of the WiFi network can bring great convenience to the practical application of the solution of the present invention. Following the example in the background technology, in commercial operation activities, businesses generally provide free WiFi networks for users to use. Based on the solution of the present invention and the WiFi network, users can conveniently share pictures or other pictures other than pictures. file.

上面主要以第一用戶端為方法執行主體,對本發明的方案進行了說明。為了進一步地幫助理解,基於同樣的思路,本發明實施例還提供了另一種檔案傳輸方法的流程示意圖,如圖2所示。 The above mainly describes the solution of the present invention by using the first client as the method execution subject. In order to further facilitate understanding, based on the same idea, an embodiment of the present invention also provides a schematic flowchart of another file transmission method, as shown in FIG. 2.

第一用戶端與第二用戶端處於同一區域網路中,圖2中的流程以第二用戶端作為執行主體,可以包括以下步驟: S201:所述第二用戶端掃描所述第一用戶端生成的DOI,其中,所述DOI中包含所述第一用戶端中的內建伺服器在所述區域網路中的位址資訊。 The first client and the second client are in the same local area network. The process in FIG. 2 uses the second client as the execution body and may include the following steps: S201: The second client scans a DOI generated by the first client, where the DOI includes address information of a built-in server in the first client in the local network.

S202:所述第二用戶端獲得所述DOI中包含的所述位址資訊。 S202: The second client obtains the address information included in the DOI.

在本發明實施例中,第二用戶端透過掃描DOI,並進行解析獲得DOI中包含的位址資訊。 In the embodiment of the present invention, the second client scans the DOI and performs analysis to obtain the address information contained in the DOI.

S203:所述第二用戶端根據所述位址資訊,向所述內建伺服器發送檔案,以便於所述第一用戶端獲得所述內建伺服器接收到的所述檔案。 S203: The second client sends a file to the built-in server according to the address information, so that the first client obtains the file received by the built-in server.

在本發明實施例中,第二用戶端與內建伺服器之間的檔案傳輸是依賴於第一用戶端與第二用戶端同處的區域網路進行的,而無需依賴網際網路。第二用戶端在該區域網路中也具有區域網路IP位址,第二客戶端正是透過自己的區域網路IP位址(以及某個埠號)與內建伺服器進行通信的。 In the embodiment of the present invention, the file transmission between the second client and the built-in server is performed on the local area network where the first client and the second client are located, without relying on the Internet. The second client also has a local network IP address in the local network. The second client communicates with the built-in server through its own local network IP address (and a certain port number).

圖2的方法與圖1的方法實質相同,只是從不同的角度描述的,因此,兩者的技術效果也相同,前面已經對圖1的方法的技術效果進行了詳細說明,在此不贅述。 The method of FIG. 2 is substantially the same as the method of FIG. 1, but is described from different perspectives. Therefore, the technical effects of the two are also the same. The technical effects of the method of FIG. 1 have been described in detail above, and are not described here.

基於圖2中的方法,本發明實施例還提供了該方法的一些具體實施方案,以及擴展方案,下面進行說明。 Based on the method in FIG. 2, the embodiment of the present invention further provides some specific implementation methods and extension solutions of the method, which are described below.

在本發明實施例中,對於步驟S203,所述第二用戶端根據所述位址資訊,向所述內建伺服器發送檔案,具體可以包括:所述第二用戶端根據所述位址資訊,透過所述區域網路,與所述內建伺服器建立連接;所述第二用戶端透過所述連接,向所述內建伺服器發送檔案。 In the embodiment of the present invention, for step S203, the second client sends a file to the built-in server according to the address information, which may specifically include: the second client according to the address information Establishing a connection with the built-in server through the local area network; the second client sends a file to the built-in server through the connection.

當區域網路內要向第一用戶端傳輸檔案的第二用戶端有多個時,也未必需要所有的第二用戶端分別與內建伺服器建立連接,至少有一個第二用戶端與內建伺服器建立連接即可。在這種情況下,未與內建伺服器建立連接的各第二用戶端可以透過已與內建伺服器建立了連接的第二用戶 端的中轉,向內建伺服器發送檔案。 When there are multiple second clients in the local network that need to transmit files to the first client, it is not necessary that all the second clients establish connections with the built-in server. At least one second client and internal Create a server and establish a connection. In this case, each second client that has not established a connection with the built-in server can pass through the second user that has established a connection with the built-in server Send the file to the built-in server.

在本發明實施例中,前面已經提到,為了便於用戶使用,內建伺服器可以有用於在第二用戶端上展示的介面,該介面是提供給第二用戶端使用的,該介面具體可以是檔案傳輸介面。在這種情況下,對於上述的所述第二用戶端透過所述連接,向所述內建伺服器發送檔案,具體可以包括:所述第二用戶端透過所述連接,獲得所述第一用戶端提供的檔案傳輸介面資訊;根據所述檔案傳輸介面資訊,展示檔案傳輸介面;確定用戶透過所述檔案傳輸介面在所述第二用戶端上選取的檔案,並向所述內建伺服器發送所述檔案。 In the embodiment of the present invention, as mentioned earlier, for the convenience of users, the built-in server may have an interface for displaying on the second client. The interface is provided for use by the second client. The interface may specifically Is a file transfer interface. In this case, sending the file to the built-in server for the second client through the connection may specifically include: the second client obtains the first through the connection. File transmission interface information provided by the client; displaying the file transmission interface according to the file transmission interface information; determining a file selected by the user on the second client through the file transmission interface, and sending the file to the built-in server Send the file.

第二用戶端從第一用戶端獲得檔案傳輸介面資訊的過程類似於透過瀏覽器打開網頁的過程。在這種類比中,檔案傳輸介面資訊相當於是該網頁檔案本身或該網頁的原始程式碼,內建伺服器的位址資訊相當於是該網頁的網址。 The process for the second client to obtain the file transfer interface information from the first client is similar to the process of opening a webpage through a browser. In this analogy, the file transfer interface information is equivalent to the webpage file itself or the source code of the webpage, and the address information of the built-in server is equivalent to the webpage URL.

上面分別從第一用戶端、第二用戶端的角度對本發明的方案進行了說明。本發明實施例還提供了一種實際應用場景下,本發明的方案中的交互過程示意圖,以幫助從整體上理解本發明的方案,該交互過程如圖3所示。 The solutions of the present invention have been described above from the perspectives of the first client and the second client, respectively. An embodiment of the present invention also provides a schematic diagram of an interaction process in a solution of the present invention in an actual application scenario to help understand the solution of the present invention as a whole. The interaction process is shown in FIG. 3.

在圖3的應用場景下,上述的第一用戶端搭載於手機a上,上述的第二用戶端搭載於手機b上,上述的檔案為圖片,上述的DOI為二維碼,上述的區域網路為WiFi網路。在實際應用中,是手機a與手機b這兩端進行交互,但是,由於交互過程可以涉及到手機a生成的二維碼,以 及手機b上展示的檔案傳輸介面,因此,為了使交互過程看起來邏輯更加清晰,將二維碼、檔案傳輸介面也分別獨立作為交互過程中的一端。 In the application scenario of FIG. 3, the first client is installed on the mobile phone a, the second client is installed on the mobile phone b, the file is a picture, the DOI is a two-dimensional code, and the regional network is The road is WiFi network. In practical applications, it is the mobile phone a and mobile phone b that interact with each other. However, since the interaction process may involve a two-dimensional code generated by the mobile phone a, And the file transmission interface displayed on the mobile phone b. Therefore, in order to make the interaction process look more logical, the two-dimensional code and the file transmission interface are also independently used as one end of the interaction process.

在圖3中,手機a與手機b處於同一WiFi網路中。 In FIG. 3, the mobile phone a and the mobile phone b are in the same WiFi network.

手機a啟動內建伺服器,並根據內建伺服器在該WiFi網路中的位址資訊,生成二維碼並展示;手機b透過掃描該二維碼,連接內建伺服器,生成檔案傳輸介面,以供用於選取待傳輸的圖片,進而,將用戶選取的圖片向內建伺服器發送;手機a接收圖片並保存至本地相冊中,從而完成了手機間的圖片分享。 Mobile phone a starts the built-in server and generates a QR code and displays it based on the address information of the built-in server in the WiFi network. Mobile phone b scans the QR code and connects to the built-in server to generate file transmission. Interface for selecting pictures to be transmitted, and then sending the pictures selected by the user to the built-in server; phone a receives the pictures and saves them to a local album, thereby completing picture sharing between phones.

本發明的方案可以基於現有的移動設備實現,無需更新硬體,從軟體層面即可實現。本發明實施例提供了一種用於實現本發明的方案的軟體架構示意圖,如圖4所示。 The solution of the present invention can be implemented based on existing mobile devices, and can be implemented from a software level without updating hardware. An embodiment of the present invention provides a schematic diagram of a software architecture for implementing the solution of the present invention, as shown in FIG. 4.

在圖4中,軟體架構按照功能不同可以劃分為視圖層、工具層、網路層這四層。 In Figure 4, the software architecture can be divided into four layers: the view layer, the tool layer, and the network layer.

在視圖層,採用了javascript+CSS+HTML的解決方案用以構建視覺化介面。 In the view layer, a javascript + CSS + HTML solution is used to build a visual interface.

在工具層,採用DOI生成器生成DOI,以及採用FileSource模組對第一用戶端接收到的檔案執行保存(可以透過調用相應的應用程式介面實現)等處理動作。 At the tool level, DOI generators are used to generate DOIs, and FileSource modules are used to perform file operations such as saving (received by calling the corresponding application program interface) the files received by the first client.

在網路層,HTTPServer用於處理啟動內建伺服器的服務,HTTPResponse用於處理檔案傳輸的回應,HTTPConnection用於建立內建伺服器與第二用戶端之間 連接,AsyncSocket用於提供Socket協議以進行長連接,保證檔案傳輸過程不中斷。 At the network layer, HTTPServer is used to handle the service that starts the built-in server, HTTPResponse is used to handle the response of the file transfer, and HTTPConnection is used to establish the connection between the built-in server and the second client For connection, AsyncSocket is used to provide the Socket protocol for long-term connection to ensure that the file transfer process is not interrupted.

需要說明的是,圖4中的軟體架構僅是一種示例,在實際應用中,其分層方式和架構中的各模組名稱可以不同於圖4。 It should be noted that the software architecture in FIG. 4 is only an example. In practical applications, the layering manner and the names of modules in the architecture may be different from those in FIG. 4.

為了便於對比現有技術的方案與本發明的方案的差異,以下還提供了更直觀的方案原理示意圖,如圖5、圖6所示。 In order to facilitate the comparison between the solutions of the prior art and the solutions of the present invention, a more intuitive schematic diagram of the principle of the solution is also provided below, as shown in FIGS. 5 and 6.

圖5為一種實際應用場景(沿用圖3的場景)下,現有技術的方案的原理示意圖。當採用現有技術時,若手機b要分享圖片給手機a,則雙方手機均需要安裝雲盤應用程式,並均需要接入網際網路。手機b透過手機b上的雲盤應用程式,將手機b的本地相冊中待分享的圖片上傳至網際網路中的雲盤伺服器,手機a透過手機a上的雲盤應用程式,將手機b分享的圖片從雲盤伺服器中下載下來,並保存至手機a的本地相冊中。 FIG. 5 is a schematic diagram of a prior art solution in an actual application scenario (the scenario in FIG. 3 is used). When the existing technology is adopted, if the mobile phone b wants to share pictures with the mobile phone a, both mobile phones need to install a cloud disk application and both need to access the Internet. Cell phone b uploads the pictures to be shared in the local album of cell phone b to the cloud disk server on the Internet through the cloud disk application on cell phone b. Cell phone b uses the cloud disk application on cell phone a to transfer cell phone b The shared picture is downloaded from the cloud disk server and saved to the local album of phone a.

圖6為本發明實施例提供的一種實際應用場景(沿用圖3的場景)下,本發明的方案的原理示意圖。圖6中的交互過程參見對圖3的說明,在此不贅述。 FIG. 6 is a schematic diagram of the principle of the solution of the present invention in an actual application scenario (in the scenario of FIG. 3) provided by an embodiment of the present invention. For the interaction process in FIG. 6, refer to the description of FIG. 3, and details are not described herein.

以上為本發明實施例提供的檔案傳輸方法,基於同樣的思路,本發明實施例還提供相應的檔案傳輸裝置,如圖7、圖8所示。 The above is the file transmission method provided by the embodiment of the present invention. Based on the same idea, the embodiment of the present invention also provides a corresponding file transmission device, as shown in FIG. 7 and FIG. 8.

圖7為本發明實施例提供的對應於圖1的檔案傳輸裝置的結構示意圖,該裝置位於第一用戶端上,第一用戶端 與第二用戶端處於同一區域網路中,該裝置可以包括:位址資訊獲得模組701,獲得所述第一用戶端的內建伺服器在所述區域網路中的位址資訊;DOI生成模組702,根據所述位址資訊,生成包含所述位址資訊的DOI,以便於所述第二用戶端透過掃描所述DOI,向所述內建伺服器發送檔案;檔案獲得模組703,獲得所述內建伺服器接收到的所述檔案。 FIG. 7 is a schematic structural diagram of a file transmission device corresponding to FIG. 1 according to an embodiment of the present invention. The device is located on a first client. The first client In the same local area network as the second client, the device may include: an address information obtaining module 701 to obtain address information of the built-in server of the first client in the local area network; DOI generation Module 702, generating a DOI containing the address information according to the address information, so that the second client can send a file to the built-in server by scanning the DOI; a file obtaining module 703 To obtain the file received by the built-in server.

可選地,所述裝置還包括:內建伺服器啟動模組704,在所述位址資訊獲得模組獲得所述第一用戶端的內建伺服器在所述區域網路中的位址資訊前,啟動所述第一用戶端的內建伺服器,其中,所述內建伺服器建立於所述第一用戶端上的至少一個應用程式中。 Optionally, the device further includes: a built-in server startup module 704, and obtaining address information of the built-in server of the first client in the local network at the address information obtaining module. Before, the built-in server of the first client is started, wherein the built-in server is built in at least one application on the first client.

可選地,所述裝置還包括:檔案傳輸介面模組705,在所述DOI生成模組702生成包含所述位址資訊的DOI後,向所述第二用戶端提供檔案傳輸介面資訊,以便於所述第二用戶端根據所述檔案傳輸介面資訊,展示用於發送所述檔案的檔案傳輸介面。 Optionally, the device further includes a file transmission interface module 705, which provides the file transmission interface information to the second client after the DOI generating module 702 generates a DOI including the address information, so that Displaying the file transmission interface for sending the file at the second client according to the file transmission interface information.

可選地,所述位址資訊包括區域網路IP位址和埠號。 Optionally, the address information includes a local area network IP address and a port number.

可選地,所述檔案為圖片。 Optionally, the archive is a picture.

可選地,所述裝置還包括:檔案保存模組706,將所述檔案保存到本地相冊中。 Optionally, the device further includes: an archive saving module 706, which saves the archive to a local album.

可選地,所述區域網路為WiFi網路。 Optionally, the local area network is a WiFi network.

可選地,所述DOI為二維碼。 Optionally, the DOI is a two-dimensional code.

圖8為本發明實施例提供的對應於圖2的檔案傳輸裝置的結構示意圖,該裝置位於第二用戶端上,第一用戶端與第二用戶端處於同一區域網路中,該裝置可以包括:DOI掃描模組801,掃描所述第一用戶端生成的DOI,其中,所述DOI中包含所述第一用戶端中的內建伺服器在所述區域網路中的位址資訊;位址資訊獲得模組802,獲得所述DOI中包含的所述位址資訊;檔案發送模組803,根據所述位址資訊,向所述內建伺服器發送檔案,以便於所述第一用戶端獲得所述內建伺服器接收到的所述檔案。 8 is a schematic structural diagram of a file transmission device corresponding to FIG. 2 according to an embodiment of the present invention. The device is located on a second client, and the first client and the second client are in the same local area network. The device may include: : A DOI scanning module 801 that scans a DOI generated by the first client, wherein the DOI includes address information of a built-in server in the first client in the local network; The address information obtaining module 802 obtains the address information contained in the DOI; the file sending module 803 sends a file to the built-in server according to the address information, so as to facilitate the first user To obtain the file received by the built-in server.

可選地,檔案發送模組803,根據所述位址資訊,透過所述區域網路,與所述內建伺服器建立連接,透過所述連接,向所述內建伺服器發送檔案。 Optionally, the file sending module 803 establishes a connection with the built-in server through the local area network according to the address information, and sends a file to the built-in server through the connection.

可選地,檔案發送模組803,透過所述連接,獲得所述第一用戶端提供的檔案傳輸介面資訊,根據所述檔案傳輸介面資訊,展示檔案傳輸介面,確定用戶透過所述檔案傳輸介面在所述第二用戶端上選取的檔案,並向所述內建伺服器發送所述檔案。 Optionally, the file sending module 803 obtains the file transmission interface information provided by the first client through the connection, displays the file transmission interface according to the file transmission interface information, and determines the user through the file transmission interface. Selecting a file on the second client and sending the file to the built-in server.

可選地,所述位址資訊包括區域網路IP位址和埠號。 Optionally, the address information includes a local area network IP address and a port number.

可選地,所述檔案為圖片。 Optionally, the archive is a picture.

可選地,所述區域網路為WiFi網路。 Optionally, the local area network is a WiFi network.

可選地,所述DOI為二維碼。 Optionally, the DOI is a two-dimensional code.

本發明提供的裝置是與本發明提供的方法一一對應的,因此,所述裝置也具有與所述方法類似的技術效果,由於上面已經對所述方法的技術效果進行了詳細說明,因此,這裡不再贅述所述裝置的技術效果。 The device provided by the present invention corresponds one-to-one to the method provided by the present invention. Therefore, the device also has technical effects similar to the method. Since the technical effects of the method have been described in detail above, therefore, The technical effects of the device are not repeated here.

本領域內的技術人員應明白,本發明的實施例可提供為方法、系統、或電腦程式產品。因此,本發明可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本發明可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。 Those skilled in the art should understand that the embodiments of the present invention may be provided as a method, a system, or a computer program product. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk memory, CD-ROM, optical memory, etc.) containing computer-usable code therein. .

本發明是參照根據本發明實施例的方法、設備(系統)、和電腦程式產品的流程圖和/或方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方塊圖中的每一流程和/或方塊、以及流程圖和/或方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可程式設計資料處理設備的處理器以產生一個機器,使得透過電腦或其他可程式設計資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的裝置。 The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram, and a combination of the flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special purpose computer, embedded processor, or other programmable data processing device to generate a machine for instructions executed by the processor of the computer or other programmable data processing device Generate means for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.

這些電腦程式指令也可儲存在能引導電腦或其他可程 式設計資料處理設備以特定方式工作的電腦可讀記憶體中,使得儲存在該電腦可讀記憶體中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能。 These computer program instructions can also be stored in a computer or other program The computer-readable memory in which the design data processing device works in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including a command device that implements a process or processes in a flowchart And / or block diagrams of the function specified in one or more boxes.

這些電腦程式指令也可裝載到電腦或其他可程式設計資料處理設備上,使得在電腦或其他可程式設計設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式設計設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的步驟。 These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operating steps can be performed on the computer or other programmable equipment to generate computer-implemented processing, and thus on the computer or other programmable equipment The instructions executed on the steps provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.

在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。 In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非易失性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒體的示例。 Memory may include non-permanent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory ( flash RAM). Memory is an example of a computer-readable medium.

電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可程式設計唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯 讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁磁片儲存或其他磁性存放裝置或任何其他非傳輸媒體,可用於儲存可以被計算設備訪問的資訊。按照本文中的界定,電腦可讀媒體不包括暫存電腦可讀媒體(transitory media),如調變的資料信號和載波。 Computer-readable media includes permanent and non-permanent, removable and non-removable media. Information can be stored by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable and programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only discs Read memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic tape cartridges, magnetic disk storage or other magnetic storage devices or any other non-transmitting medium, which can be used to store computing devices Accessed information. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.

還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個......”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 It should also be noted that the terms "including," "including," or any other variation thereof are intended to encompass non-exclusive inclusion, so that a process, method, product, or device that includes a range of elements includes not only those elements, but also Other elements not explicitly listed, or those that are inherent to such a process, method, product, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, product, or equipment that includes the elements.

以上所述僅為本發明的實施例而已,並不用於限制本發明。對於本領域技術人員來說,本發明可以有各種更改和變化。凡在本發明的精神和原理之內所作的任何修改、等同替換、改進等,均應包含在本發明的申請專利範圍範疇之內。 The above description is only an embodiment of the present invention and is not intended to limit the present invention. It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the scope of the patent application of the present invention.

Claims (30)

一種檔案傳輸方法,其特徵在於,第一用戶端與第二用戶端處於同一區域網路中,該方法包括:該第一用戶端獲得該第一用戶端的內建伺服器在該區域網路中的位址資訊;該第一用戶端根據該位址資訊,生成包含該位址資訊的數位物件唯一識別碼(DOI),以便於該第二用戶端透過掃描該DOI,向該內建伺服器發送檔案;該第一用戶端獲得該內建伺服器接收到的該檔案。 A file transmission method, characterized in that the first client and the second client are in the same local network, and the method includes that the first client obtains a built-in server of the first client in the local network. Based on the address information, the first client generates a digital object unique identifier (DOI) containing the address information, so that the second client can scan the DOI to the built-in server Send the file; the first client obtains the file received by the built-in server. 如申請專利範圍第1項的方法,其中,該第一用戶端獲得該第一用戶端的內建伺服器在該區域網路中的位址資訊前,該方法還包括:該第一用戶端啟動該第一用戶端的內建伺服器,其中,該內建伺服器建立於該第一用戶端上的至少一個應用程式中。 For example, before the first client obtains the address information of the built-in server of the first client in the local network, the method further includes: the first client starts The built-in server of the first client, wherein the built-in server is built in at least one application on the first client. 如申請專利範圍第1項的方法,其中,生成包含該位址資訊的DOI後,該方法還包括:向該第二用戶端提供檔案傳輸介面資訊,以便於該第二用戶端根據該檔案傳輸介面資訊,展示用於發送該檔案的檔案傳輸介面。 For example, the method of applying for the first item of the patent scope, wherein after generating a DOI including the address information, the method further includes: providing file transmission interface information to the second client so that the second client can transmit the file according to the file. Interface information showing the file transfer interface used to send the file. 如申請專利範圍第1項的方法,其中,該位址資訊包括區域網路IP位址和埠號。 For example, the method in the first scope of the patent application, wherein the address information includes a local area network IP address and a port number. 如申請專利範圍第1項的方法,其中,該檔案為圖片。 For example, the method of applying for the first item of the patent scope, wherein the file is a picture. 如申請專利範圍第5項的方法,其中,該方法還包括:該第一用戶端將該檔案保存到本地相冊中。 For example, the method of claim 5 in the patent scope, wherein the method further includes: the first client terminal saves the file in a local album. 如申請專利範圍第1至6項中任一項的方法,其中,該區域網路為WiFi網路。 For example, the method according to any one of claims 1 to 6, wherein the local area network is a WiFi network. 如申請專利範圍第1至6項中任一項的方法,其中,該DOI為二維碼。 For example, the method according to any one of claims 1 to 6, wherein the DOI is a two-dimensional code. 一種檔案傳輸方法,其特徵在於,第一用戶端與第二用戶端處於同一區域網路中,該方法包括:該第二用戶端掃描該第一用戶端生成的數位物件唯一識別碼(DOI),其中,該DOI中包含該第一用戶端中的內建伺服器在該區域網路中的位址資訊;該第二用戶端獲得該DOI中包含的該位址資訊;該第二用戶端根據該位址資訊,向該內建伺服器發送檔案,以便於該第一用戶端獲得該內建伺服器接收到的該 檔案。 A file transmission method, characterized in that a first client and a second client are in the same local area network, and the method includes: the second client scans a digital object unique identification code (DOI) generated by the first client , Wherein the DOI includes address information of a built-in server in the first client in the local network; the second client obtains the address information contained in the DOI; the second client Send a file to the built-in server according to the address information, so that the first client can obtain the file received by the built-in server file. 如申請專利範圍第9項的方法,其中,該第二用戶端根據該位址資訊,向該內建伺服器發送檔案,具體包括:該第二用戶端根據該位址資訊,透過該區域網路,與該內建伺服器建立連接;該第二用戶端透過該連接,向該內建伺服器發送檔案。 For example, the method for applying for item 9 of the patent scope, wherein the second client sends a file to the built-in server according to the address information, which specifically includes: the second client sends the file through the regional network according to the address information To establish a connection with the built-in server; the second client sends a file to the built-in server through the connection. 如申請專利範圍第10項的方法,其中,該第二用戶端透過該連接,向該內建伺服器發送檔案,具體包括:該第二用戶端透過該連接,獲得該第一用戶端提供的檔案傳輸介面資訊;根據該檔案傳輸介面資訊,展示檔案傳輸介面;確定用戶透過該檔案傳輸介面在該第二用戶端上選取的檔案,並向該內建伺服器發送該檔案。 For example, the method for applying for the scope of the patent claim 10, wherein the second client sends a file to the built-in server through the connection, which specifically includes: the second client obtains the file provided by the first client through the connection. File transmission interface information; according to the file transmission interface information, displaying the file transmission interface; determining a file selected by the user on the second client through the file transmission interface, and sending the file to the built-in server. 如申請專利範圍第9項的方法,其中,該位址資訊包括區域網路IP位址和埠號。 For example, the method of claim 9 in the patent scope, wherein the address information includes a local area network IP address and a port number. 如申請專利範圍第9項的方法,其中,該檔案為圖片。 For example, the method of applying for the item 9 of the patent scope, wherein the file is a picture. 如申請專利範圍第9至13項中任一項的方法,其 中,該區域網路為WiFi網路。 If the method of any one of claims 9 to 13 is applied for, The local area network is a WiFi network. 如申請專利範圍第9至13項中任一項的方法,其中,該DOI為二維碼。 For example, the method according to any one of claims 9 to 13, wherein the DOI is a two-dimensional code. 一種檔案傳輸裝置,其特徵在於,第一用戶端與第二用戶端處於同一區域網路中,該裝置位於該第一用戶端上,該裝置包括:位址資訊獲得模組,獲得該第一用戶端的內建伺服器在該區域網路中的位址資訊;數位物件唯一識別碼(DOI)生成模組,根據該位址資訊,生成包含該位址資訊的數位物件唯一識別碼(DOI),以便於該第二用戶端透過掃描該DOI,向該內建伺服器發送檔案;檔案獲得模組,獲得該內建伺服器接收到的該檔案。 A file transmission device, characterized in that a first client and a second client are in the same local area network, the device is located on the first client, and the device includes an address information obtaining module for obtaining the first Address information of the client's built-in server in the local network; Digital Object Unique Identifier (DOI) generation module, based on the address information, generates a Digital Object Unique Identifier (DOI) that contains the address information To facilitate the second client to send a file to the built-in server by scanning the DOI; the file obtaining module obtains the file received by the built-in server. 如申請專利範圍第16項的裝置,其中,該裝置還包括:內建伺服器啟動模組,在該位址資訊獲得模組獲得該第一用戶端的內建伺服器在該區域網路中的位址資訊前,啟動該第一用戶端的內建伺服器,其中,該內建伺服器建立於該第一用戶端上的至少一個應用程式中。 For example, the device under the scope of application for patent No. 16 in which the device further includes: a built-in server activation module, and the address information obtaining module obtains the built-in server of the first client in the local network. Before the address information, the built-in server of the first client is started, wherein the built-in server is established in at least one application program on the first client. 如申請專利範圍第16項的裝置,其中,該裝置還包 括:檔案傳輸介面模組,在該DOI生成模組生成包含該位址資訊的DOI後,向該第二用戶端提供檔案傳輸介面資訊,以便於該第二用戶端根據該檔案傳輸介面資訊,展示用於發送該檔案的檔案傳輸介面。 For example, the device under the scope of patent application No. 16 in which the device also includes Including: a file transmission interface module, after the DOI generating module generates a DOI containing the address information, the file transmission interface information is provided to the second client, so that the second client transmits the interface information according to the file, Shows the file transfer interface used to send the file. 如申請專利範圍第16項的裝置,其中,該位址資訊包括區域網路IP位址和埠號。 For example, the device under the scope of patent application No. 16 in which the address information includes the local area network IP address and port number. 如申請專利範圍第16項的裝置,其中,該檔案為圖片。 For example, the device under the scope of application for patent No. 16 wherein the file is a picture. 如申請專利範圍第20項的裝置,其中,該裝置還包括:檔案保存模組,將該檔案保存到本地相冊中。 For example, the device with a scope of application for patent No. 20, wherein the device further includes: a file saving module, which saves the file to a local album. 如申請專利範圍第16至21項中任一項的裝置,其中,該區域網路為WiFi網路。 For example, the device according to any one of claims 16 to 21, wherein the local area network is a WiFi network. 如申請專利範圍第16至21項中任一項的裝置,其中,該DOI為二維碼。 For example, the device according to any one of claims 16 to 21, wherein the DOI is a two-dimensional code. 一種檔案傳輸裝置,其特徵在於,第一用戶端與第二用戶端處於同一區域網路中,該裝置位於該第二用戶端 上,該裝置包括:數位物件唯一識別碼(DOI)掃描模組,掃描該第一用戶端生成的數位物件唯一識別碼(DOI),其中,該DOI中包含該第一用戶端中的內建伺服器在該區域網路中的位址資訊;位址資訊獲得模組,獲得該DOI中包含的該位址資訊;檔案發送模組,根據該位址資訊,向該內建伺服器發送檔案,以便於該第一用戶端獲得該內建伺服器接收到的該檔案。 A file transmission device, characterized in that the first client and the second client are in the same local area network, and the device is located in the second client The device includes: a digital object unique identification code (DOI) scanning module for scanning the digital object unique identification code (DOI) generated by the first client, wherein the DOI includes a built-in in the first client The address information of the server in the local network; the address information obtaining module obtains the address information contained in the DOI; the file sending module sends a file to the built-in server according to the address information So that the first client can obtain the file received by the built-in server. 如申請專利範圍第24項的裝置,其中,該檔案發送模組,根據該位址資訊,透過該區域網路,與該內建伺服器建立連接,透過該連接,向該內建伺服器發送檔案。 For example, the device under the scope of application for patent No. 24, wherein the file sending module establishes a connection with the built-in server through the local area network based on the address information, and sends to the built-in server through the connection. file. 如申請專利範圍第25項的裝置,其中,該檔案發送模組,透過該連接,獲得該第一用戶端提供的檔案傳輸介面資訊,根據該檔案傳輸介面資訊,展示檔案傳輸介面,確定用戶透過該檔案傳輸介面在該第二用戶端上選取的檔案,並向該內建伺服器發送該檔案。 For example, the device under the scope of application for patent No. 25, wherein the file sending module obtains the file transmission interface information provided by the first client through the connection, displays the file transmission interface according to the file transmission interface information, and determines whether the user passes The file transmission interface selects the file on the second client and sends the file to the built-in server. 如申請專利範圍第24項的裝置,其中,該位址資訊包括區域網路IP位址和埠號。 For example, the device under the scope of patent application No. 24, wherein the address information includes the local area network IP address and port number. 如申請專利範圍第24項的裝置,其中,該檔案為圖片。 For example, the device under the scope of application for patent No. 24, wherein the file is a picture. 如申請專利範圍第24至28項中任一項的裝置,其中,該區域網路為WiFi網路。 For example, the device according to any one of claims 24 to 28, wherein the local area network is a WiFi network. 如申請專利範圍第24至28項中任一項的裝置,其中,該DOI為二維碼。 For example, the device according to any one of claims 24 to 28, wherein the DOI is a two-dimensional code.
TW106119496A 2016-08-09 2017-06-12 File transmission method and device TWI686702B (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201610647617.1 2016-08-09
??201610647617.1 2016-08-09
CN201610647617.1A CN106899653A (en) 2016-08-09 2016-08-09 Document transmission method and device

Publications (2)

Publication Number Publication Date
TW201805832A true TW201805832A (en) 2018-02-16
TWI686702B TWI686702B (en) 2020-03-01

Family

ID=59191665

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106119496A TWI686702B (en) 2016-08-09 2017-06-12 File transmission method and device

Country Status (3)

Country Link
CN (1) CN106899653A (en)
TW (1) TWI686702B (en)
WO (1) WO2018028442A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899653A (en) * 2016-08-09 2017-06-27 阿里巴巴集团控股有限公司 Document transmission method and device
CN107645551B (en) * 2017-09-19 2020-02-11 Oppo广东移动通信有限公司 File transmission method and device
CN108234620A (en) * 2017-12-28 2018-06-29 北京奇虎科技有限公司 Cross-platform data transmission method, apparatus and system
CN111787115B (en) * 2020-07-06 2023-05-09 聚好看科技股份有限公司 Server, display device and file transmission method
CN112887411B (en) * 2021-01-29 2023-04-07 广州优谷信息技术有限公司 Local area network data transmission system, method, computer device and storage medium
CN113132489A (en) * 2021-04-22 2021-07-16 中国工商银行股份有限公司 Method, device, computing equipment and medium for downloading file
CN113194137A (en) * 2021-04-28 2021-07-30 深圳雷曼光电科技股份有限公司 Data transmission method, device, system and storage medium
CN113077252A (en) * 2021-04-30 2021-07-06 中国银行股份有限公司 Bank counter business handling method and device
CN113505328B (en) * 2021-07-27 2023-10-31 北京达佳互联信息技术有限公司 File transmission method, file transmission device, electronic equipment and computer readable storage medium
CN114125024B (en) * 2021-11-12 2023-10-17 兰州乐智教育科技有限责任公司 Audio transmission method, electronic device and readable storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130073364A1 (en) * 2011-09-16 2013-03-21 Ysk Media Ltd. Method of Downloading Contents
KR101329949B1 (en) * 2013-06-07 2013-11-20 이응준 Vending machine for selling/opening mobile phone
CN110764677B (en) * 2014-09-22 2023-05-02 创新先进技术有限公司 Method and device for processing DOI in interaction information
CN104320417B (en) * 2014-11-06 2017-06-06 北京安奇智联科技有限公司 The method of interconnection and streaming and streaming media playing between mobile terminal and web terminals
CN104333598A (en) * 2014-11-06 2015-02-04 北京安奇智联科技有限公司 Two-dimension code and network adaption based mobile terminal and web terminal interconnection method
CN104967668A (en) * 2015-05-28 2015-10-07 百度在线网络技术(北京)有限公司 Inter-equipment file transmission method, apparatus and system based on WIFI hot spot
CN105282218A (en) * 2015-07-08 2016-01-27 深圳市美贝壳科技有限公司 Media file sharing method and system used between mobile terminal and set top box
CN106899653A (en) * 2016-08-09 2017-06-27 阿里巴巴集团控股有限公司 Document transmission method and device

Also Published As

Publication number Publication date
CN106899653A (en) 2017-06-27
TWI686702B (en) 2020-03-01
WO2018028442A1 (en) 2018-02-15

Similar Documents

Publication Publication Date Title
TWI686702B (en) File transmission method and device
US11863537B2 (en) Systems, methods, and media for a cloud based social media network
US10812611B2 (en) Platform-independent application publishing to a personalized front-end interface by encapsulating published content into a container
RU2595632C1 (en) Systems and methods for sharing files among multiple terminals
EP2851833B1 (en) Application Gateway Architecture with Multi-Level Security Policy and Rule Promulgations
CN107836007B (en) Discovering and publishing API information
US9009219B2 (en) Native viewer use for service results from a remote desktop
WO2016127793A1 (en) Message sending method, apparatus, system, and server
JP6215359B2 (en) Providing access to information across multiple computing devices
US11611633B2 (en) Systems and methods for platform-independent application publishing to a front-end interface
US20160100035A1 (en) Personal handheld web server and storage device
TW201443670A (en) Virtual library providing content accessibility irrespective of content format and type
KR20170055530A (en) Systems and methods for enabling access to third party services via service layer
WO2015154666A1 (en) Method for displaying webpage fragment on desktop and system for capturing webpage fragment to desktop for display
CN104378435A (en) Method for transmitting file between browser of computing device and mobile terminal
US10908970B1 (en) Data interface for secure analytic data system integration
CN104376090A (en) Screen synchronization equipment of browser in computing equipment and mobile terminal
JP2017511511A (en) Screen content transmission and display
CN104394208A (en) File transmission method and server
US10021166B2 (en) Mechanism for building normalized service model to expose web APIs
EP3065058B1 (en) A method and a device for flowing data between entities
CN104486371A (en) Equipment and method for downloading file on batch
AU2015404396B2 (en) Federated marketplace portal
WO2015158262A1 (en) Method for sending and generating card/coupon, public account server, and mobile terminal
WO2023024800A1 (en) Web-based interaction method and system for multiple terminal devices, and terminal device