CN104394208B - Document transmission method and server - Google Patents

Document transmission method and server Download PDF

Info

Publication number
CN104394208B
CN104394208B CN201410665762.3A CN201410665762A CN104394208B CN 104394208 B CN104394208 B CN 104394208B CN 201410665762 A CN201410665762 A CN 201410665762A CN 104394208 B CN104394208 B CN 104394208B
Authority
CN
China
Prior art keywords
browser
mobile terminal
message
file
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410665762.3A
Other languages
Chinese (zh)
Other versions
CN104394208A (en
Inventor
姜天鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING ANQI ZHILIAN TECHNOLOGY Co Ltd
Original Assignee
BEIJING ANQI ZHILIAN TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING ANQI ZHILIAN TECHNOLOGY Co Ltd filed Critical BEIJING ANQI ZHILIAN TECHNOLOGY Co Ltd
Priority to CN201410665762.3A priority Critical patent/CN104394208B/en
Publication of CN104394208A publication Critical patent/CN104394208A/en
Application granted granted Critical
Publication of CN104394208B publication Critical patent/CN104394208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a kind of document transmission method performed in the server, which can be connected the browser of computing device with mobile terminal.This method includes:The file request message to mobile terminal is received from the browser of computing device, the mark of requested document is included in the message;File request message is sent to mobile terminal;Receive the file upload request of mobile terminal;And requested file is transmitted to browser in the way of web server client.The invention also discloses a kind of servers.

Description

Document transmission method and server
Technical field
The present invention relates to the necks that field of data communication more particularly to mobile terminal communicate with computing device browser Domain.
Background technology
As user is increasingly improving the frequency of use of the mobile terminals such as smart mobile phone, tablet computer, very To being more than traditional desktop computer (PC) and laptop in many occasions.The calculated performance and memory space of mobile terminal Also in rapid growth, so as to which installation and operation be allowed to widely apply and and then generate mass data.A for example, smart mobile phone By the use of user for a period of time, it is often stored with the pictures of gigabytes, audio, video, application, document, communication The data such as record, short message.
Although user can carry out these data on mobile phone the operations such as browsing, duplication, deletion, if with Before family is located at large screen computing device (such as PC, laptop and smart television), he may be more desirable to calculate by large screen Equipment carries out these operations.One done so is the reason is that there is large screen computing device more powerful I/O equipment (to be shown as big Display screen, mouse, full size keyboard), operating efficiency can be improved;Another reason be with run on mobile terminal Android, IOS operating system is compared with application, operating systems and the application such as Windows, MAC OS of the operation of large screen computing device It tends to provide stronger big various function.
There are some softwares to provide data management function of the large screen computing device to mobile terminal at present.Typical example Son is the iTunes of Apple Inc. and various mobile phone assistants.User is in operating systems such as operation Windows, MAC OS Mobile terminal data management software on traditional computer is installed, mobile terminal is connected to large screen meter by cables such as USB Equipment is calculated, mobile terminal data management software reads the various data in mobile terminal, and user is allowed to be managed accordingly Operation.However, this uses simultaneously inconvenience for user.Even if there are some software support mobile terminals to connect by WLAN Large screen computing device is connected to, but user is soft there is still a need for mobile terminal data management is installed in advance on large screen computing device Part.Installation software is not only cumbersome and takes in advance, and is difficult to realize in some cases.For example, the meter of enterprises The installation permission of software may be limited for security consideration by calculating equipment, alternatively, the large screen calculating as smart television is set It, may be without available mobile terminal data management software for and without using Windows, MAC OS operating systems.
Therefore, user wishes to more be managed the number of mobile terminal on large screen computing device with simple and fast mode According to.
Invention content
For this purpose, the present invention provides a kind of new scheme to try hard to solve or at least alleviate existing above at least one ask Topic.
According to an aspect of the present invention, a kind of document transmission method performed in the server is provided, the server energy It is enough that the browser of computing device is connected with mobile terminal.This method includes:It is received from the browser of computing device to mobile whole The file request message at end includes the mark of requested document in the message;File request message is sent to mobile terminal; Receive the file upload request of mobile terminal;And requested file is transmitted in the way of web server-client Browser.
This method can also include:Immediately to the browsing of computing device after the file upload request for receiving mobile terminal Device sends the notification message for including file web addresses.
This method can also include:The upper transmitting file received is divided into multiple blocks of files storages;According to web server- Multiple blocks of files are transmitted to browser by the mode of client.
According to another aspect of the present invention, a kind of server is provided, it can be by the browser and mobile terminal of computing device It is connected.The server includes:Connection management device, suitable for receiving the file request to mobile terminal from the browser of computing device Message includes the mark of requested document in the message;Message processing apparatus is asked suitable for being extracted from file request message Seek the mark of file;Wherein connection management device is suitable for file request message being sent to mobile terminal, receives mobile terminal File upload request.
Connection management device can be adapted to after the file upload request for receiving mobile terminal immediately to computing device Browser transmission include the notification messages of file web addresses.Server can also include memory.Connection management device may be used also The upper transmitting file for being suitable for receive is divided into multiple blocks of files storages in memory, according to the side of web server-client Multiple blocks of files are transmitted to browser by formula.
Description of the drawings
In order to realize above-mentioned and related purpose, certain illustrative sides are described herein in conjunction with following description and attached drawing Face, these aspects indicate the various modes that can put into practice principles disclosed herein, and all aspects and its equivalent aspect It is intended to fall in the range of theme claimed.Read following detailed description in conjunction with the accompanying drawings, the disclosure it is above-mentioned And other purposes, feature and advantage will be apparent.Throughout the disclosure, identical reference numeral generally refers to identical Component or element.
Fig. 1 shows the structure diagram of a mobile terminal 100;
Fig. 2 shows the browser administration mobile terminals according to an embodiment of the invention using large screen computing device The system 200 of file;
Fig. 3 A show that the client application of mobile terminal according to an embodiment of the invention is established with server and connect Preceding interface schematic diagram;
Fig. 3 B show the interface signal of the browser two-dimensional code display of computing device according to an embodiment of the invention Figure;
Fig. 3 C show that the browser administration according to an embodiment of the invention using large screen computing device moves eventually The interface schematic diagram of the browser of computing device after the foundation connection of system 200 of end file;
Fig. 4 shows the document transmission method 400 that the browser of computing device according to an embodiment of the invention performs Flow chart;
Fig. 5 shows the flow chart of the document transmission method 500 of mobile terminal execution according to an embodiment of the invention;
Fig. 6 shows the block diagram of the browser 600 of computing device according to an embodiment of the invention;
Fig. 7 shows the block diagram of the client application 700 of mobile terminal according to an embodiment of the invention;
Fig. 8 shows the flow chart for the document transmission method 800 that server according to an embodiment of the invention performs;And
Fig. 9 shows the block diagram of server 900 according to an embodiment of the invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Fig. 1 is the structure diagram of mobile terminal 100.Mobile terminal 100 can include memory interface 102, one or more A data processor, image processor and/or central processing unit 104 and peripheral interface 106.
Memory interface 102, one or more processors 104 and/or peripheral interface 106 either discrete component, It can be integrated in one or more integrated circuits.In the mobile terminal 100, various elements can pass through one or more communication Bus or signal wire couple.Sensor, equipment and subsystem may be coupled to peripheral interface 106, a variety of to help to realize Function.
For example, motion sensor 110, optical sensor 112 and range sensor 114 may be coupled to peripheral interface 106, with Facilitate the functions such as orientation, illumination and ranging.Other sensors 116 can equally be connected, such as alignment system with peripheral interface 106 (such as GPS receiver), temperature sensor, biometric sensor or other sensor devices, it is possible thereby to help to implement correlation Function.
Camera sub-system 120 and optical sensor 122 can be used for the camera of convenient such as recording photograph and video clipping The realization of function, wherein the camera sub-system and optical sensor for example can be charge coupling device (CCD) or complementary gold Belong to oxide semiconductor (CMOS) optical sensor.It can help to realize by one or more radio communication subsystems 124 Communication function, wherein radio communication subsystem can include radio-frequency transmitter and transmitter and/or light (such as infrared) receiver And transmitter.The particular design and embodiment of radio communication subsystem 124 can depend on mobile terminal 100 is supported one A or multiple communication networks.For example, mobile terminal 100 can include being designed to support GSM network, GPRS network, EDGE nets Network, Wi-Fi or WiMax network and BlueboothTMThe communication subsystem 124 of network.
Audio subsystem 126 can be coupled with loud speaker 128 and microphone 130, to help to implement to enable voice Function, such as speech recognition, speech reproduction, digital record and telephony feature.I/O subsystems 140 can include touch screen control Device 142 processed and/or other one or more input controllers 144.Touch screen controller 142 may be coupled to touch screen 146.It lifts For example, the touch screen 146 and touch screen controller 142 can be detected using any one of a variety of touch-sensing technologies The contact and movement or pause carried out therewith, wherein detection technology include but is not limited to capacitive character, resistive, infrared and table Face technology of acoustic wave.Other one or more input controllers 144 may be coupled to other input/control devicess 148, such as one Or the pointer device of multiple buttons, rocker switch, thumb wheel, infrared port, USB port, and/or stylus etc.It is described One or more button (not shown)s can include the up/down for 130 volume of controlling loudspeaker 128 and/or microphone Button.
Memory interface 102 can be coupled with memory 150.The memory 150 can be deposited including high random access Reservoir and/or nonvolatile memory, such as one or more disk storage equipment, one or more optical storage apparatus and/ Or flash memories (such as NAND, NOR).Memory 150 can store an operating system 172, for example, Android, IOS or The operating system of Windows Phone etc.The operating system 172 can include handling basic system services and execution The instruction of task dependent on hardware.Memory 150 can also be stored using 174.It, can be from memory in mobile equipment operation Load operating system 172 in 150, and performed by processor 104.Using 174 at runtime, can also add from memory 150 It carries, and is performed by processor 104.It operates on operating system using 174, is provided using operating system and bottom hardware Interface realizes the various desired functions of user, such as instant messaging, web page browsing, pictures management.It can be independently of using 174 That operating system 172 provides or included operating system 172.
In above-mentioned various applications 174, a kind of application therein is that can support mobile terminal document according to the present invention The client application of management, user can be led to by the browser on large screen computing device and the client application of mobile terminal Believe and manage the file of mobile terminal.
Fig. 2 shows the browser administration mobile terminals according to an embodiment of the invention using large screen computing device The system 200 of file.The system 200 includes mobile terminal 210, server 220 and computing device 230.Pacify on mobile terminal 210 Equipped with the client application 212 for supporting mobile terminal document management, and be stored with various files, as photo, audio, video, Document (such as document of Word, PDF form).Applications client 212 may operate in the operating systems such as Android, IOS. Server 220 for example can be the remote cloud server for being physically located at one or more places.Computing device 230 for example can be with There is the computing device of relatively large screen including personal computer (PC), laptop, smart television etc..Computing device Browser 232, such as IE, Chrome and Firefox browser are installed on 230.Browser 232 may operate in such as In the operating systems such as Windows, Mac.
Browser 232 receives user in the address that browser address bar inputs, e.g. domain name first Www.weline.cc corresponds to the IP address of server 220.Browser accesses server 220 according to the address, specific to grasp Make to include such as inquiry DNS and obtain the IP address returned, establish TCP connection, HTTP request requests are sent to server, this In be not repeated.After the access request from browser 232 is received, server 220 distributes the first session identification (Session ID) and gap marker (Channel ID).Server 220 generates invitation address corresponding with gap marker (inviteurl), which is two-dimension code pattern by calling Quick Response Code Transformation Service, and obtains the two-dimension code pattern URL addresses (qrcodeurl).In other words, the content which is included is inviteurl.Server 220 is to clear Look at 232 returning response message of device (200 OK), the URL addresses qrcodeurl containing two-dimension code pattern and the first meeting in the message Words mark.The wherein format sample of qrcodeurl is as follows:
qrcodeurl:"qrcodeContent=http://192.168.0.1/inviteId= 12d345d8z834baef839c0",
Long connection is established between server 220 and browser 232.Browser 232 accesses the URL addresses of two-dimension code pattern Qrcodeurl obtains two-dimension code pattern and shows.For example, Fig. 3 B show that browser according to an embodiment of the invention connects Connect interface schematic diagram during server.Two-dimension code image is shown in the figure to wait for mobile scanning terminal Quick Response Code.
Fig. 3 A show that the client application 212 of mobile terminal according to an embodiment of the invention and server 220 are built Interface schematic diagram before vertical connection.In the surface chart, the operation of user is prompted, to establish the connection with server. User can scan the Quick Response Code figure shown on the browser 232 of computing device 230 by the client application 212 of mobile terminal Shape so as to obtain the content of two-dimension code pattern, that is, invites address inviteurl.Mobile terminal client terminal is accessed using 212 Inviteurl, server 220 are identified to its backward channel, while return to the second session identification.Server can by gap marker To determine the relationship of browser and mobile terminal, i.e., mobile scanning terminal is the Quick Response Code shown on browser.Similar to clothes The process of connection is established between business device and 220 browsers 232, long connect also is established between server 220 and client application 212 It connects.Server 220 is stored with the first session identification of long connection and server 220 and visitor between server 220 and browser 232 The second session identification of long connection between 212 is applied at family end, is associated between the two session identifications by gap marker, logical in this way Gap marker is crossed to form a channel between browser 232 and client application 212, is distinguished and is serviced with session identification The object of device length connection is that mobile terminal client terminal applies 212 or browser 232.In other words, in server 220 and browsing Establish two long connections between device 232 respectively between server 220 and client application 212, server is periodically to browsing Device and client application send heartbeat message.The two length connections are associated with to form a channel by same gap marker, visitor The signaling or data that the application of family end is sent are pushed to browser by the channel via server.
After channel is established, the client application 212 of mobile terminal is by the statistical information of mobile terminal, such as mobile terminal Model, system version, memory space, the contact person stored, short message, Miscellaneous Documents quantity etc., sent by channel To browser 232, specifically, these information for example pass through the second session connection by client application 212 by post modes Server 220 is sent to, server 220 finds associated first session connection according to gap marker, and passes through the first session Connection sends information to browser 232.Browser 232 shows corresponding mobile terminal statistical information.For example, Fig. 3 C are client After the statistical information of mobile terminal is sent to browser by end using 212 by server push, browser shows the statistical message Show surface chart.Establish and include the master catalogues of various document classifications, such as picture master catalogue, audio master catalogue etc., and if into Such as under picture master catalogue, then multiple picture thumbnails can be shown.
User can check the information of mobile terminal on the browser of the computing device of large screen, and be set using calculating Standby input equipment (such as mouse, keyboard) easily carries out the various operations to file, such as from acquisition for mobile terminal file, clear It lookes at, delete file etc..By establishing the channel via server between mobile terminal and the browser of computing device, profit is only needed The management to mobile terminal can be realized with browser existing on computing device, without installation in advance on the computing device Software not only saves the time of user, also saves the work of software developer.Moreover, it is moved eventually using browser administration The scheme at end is especially suitable for the installation limited authority of computing device software or lacks available mobile terminal data management software Situation.
After the browser of computing device and the client application of mobile terminal establish connection by server, work as server When the message or data from client application are received by the second session, server is searched and the second meeting according to gap marker Words identify associated first session identification, and the message or data are sent to the browser of computing device by the first session.By Transit server is transferred through in this, because of referred to herein as indirectly connected communication pattern.The invention also provides one kind without server The data-transmission mode of transfer, i.e., direct-connected communication pattern.Under direct-connected pattern, the browser of computing device and the visitor of mobile terminal Data transmission between the application of family end can by being directly connected to carry out between them, without transit server, so as to Flow and expense may simultaneously be saved by improving transmission speed.Direct-connected communication pattern explained below establishes process.
First, the client application 212 of mobile terminal passes through 220 established channel of server, i.e. the first session and Two sessions send the direct-connected communication invitation message for including the direct-connected mailing address of mobile terminal to the browser 232 of computing device.Disappear The format sample of breath is as follows:
Wherein 192.168.1.119 is the direct-connected mailing address of mobile terminal oneself, such as the inside IP of WLAN Address.The numerical value (id) generated at random can also be included in direct-connected communication notifications message, as authentication information.Browsing Device request after direct-connected communication invitation message is received accesses the direct-connected address included in message.This access is similar to ping behaviour Make, i.e., browser, if other side receives the data packet, can return to an equal amount of number to the direct-connected mailing address transmission data packet According to packet, thereby confirm that connection between the two is unimpeded, otherwise mean that browser can not access direct-connected mailing address, the two It continues to operate under indirectly connected pattern.When the client application of mobile terminal receives the access request message from browser When, it is direct-connected to determine that mobile terminal and computing device can carry out.It, can in the access request message of browser in order to enhance safety With comprising the numerical value in direct-connected communication notifications message, client application 212 can verify the numerical value.If verification one It causes, the client application 212 of mobile terminal sends direct-connected communication response message, example lattice by server 220 to browser 232 Formula is
{
type:"directOK"
}
Client application 212 enters direct-connected pattern, starts web server.Browser disappears receiving direct-connected communication response After breath, also into direct-connected pattern.In this way, with the side of server-client between client application and the browser of computing device Formula carries out data transmission.In addition, after the access request message from browser is received, client application can record source IP address and write-in cookie, the request of file is downloaded for browser later will verify IP address and cookie, if not Matching then returns to 403 mistakes.In addition, due to the client application of server and mobile terminal not same area, and browser and client End application can send access request and in view of browser using AJAX (asynchronous JavaScript and XML) modes The limitation of origin policy, therefore, the client application of mobile terminal can also realize that cross-domain resource shares (CORS), can be straight Even information (the Access-Control-Allow- for allowing the cross-domain access of browser is added in the response header of invitation message Origin), so that cross-domain access can be carried out when browser receives the direct-connected invitation message.
Under direct-connected communication pattern, signaling/message can also be switched to shifting from former channel (i.e. by the channel of server) It is dynamic to be directly connected to channel between terminal and computing device browser, so as to fulfill the localization of message.The correlation of switching channel Message format sample it is as follows:
The directChannel message is sent to the browser of computing device by mobile terminal by server, is informed straight The even address (url) of communication port.Browser is upon receiving the message polled (polling) url addresses.It is mobile whole End can start direct communication channel after the GET request of poll is received, and stop toward former channel POST message.Mobile terminal to Browser send switchChannel message, format sample for
"type":"switchChannel"
}
SwitchChannel message informing browser switching channels.After browser receives the message, stop to server Former channel POST message.
Once into direct-connected pattern, directly it can for example pass through enterprise without high in the clouds between browser and mobile terminal Internal local network transport data.In this way, not only saving the flow of mobile terminal, and substantially increase the speed of data transmission Degree, also improves the user experience by browser administration mobile terminal data.
To the document transmission process under direct-connected communication pattern and indirectly connected communication pattern be described respectively below.
Under direct-connected communication pattern, browser is in response to user's operation, the file in acquisition request mobile terminal.For example, User views the information such as the listed files stored on mobile terminal, thumbnail on a web browser, passes through the inputs such as mouse, keyboard Equipment specifies the file to be obtained.Browser sends file request message (requestFile) to mobile terminal, is wrapped in the message Mark containing requested document.Mobile terminal returns to the logical of the web addresses comprising this document after file request is received Know message.The web addresses of this document indicate absolute url of this document in the web server of mobile terminal.Browser is receiving To after response message, file is downloaded from mobile terminal according to web client-server mode.
In direct-connected communication pattern, it is understood that there may be some special realization methods.For example, PDF.js may be obtained by AJAX Take pdf document, therefore, under direct-connected communication pattern there are it is cross-domain the problem of.At this moment the web server of mobile terminal is needed to realize CORS (across source Resource Sharing Protocol).The setting and confirmation of some heads (Headers) that CORS passes through web server is realized Cross-domain request is not detailed herein.
Under indirectly connected communication pattern, browser is in response to user's operation, the file in acquisition request mobile terminal.Browsing Device sends file request message (requestFile) by server to mobile terminal, includes requested document in the message Mark.Mobile terminal is uploaded to server after file request is received, by this document.Server is returned to browser and is wrapped The notification message of web addresses containing this document.The web addresses of this document indicate this document in the web server of server Address.Browser downloads file after response message is received, according to web client-server mode from server.
In addition to answering browse request, mobile terminal can also actively send the file to browser.For example, user can be Photo is sent to browser in the client application of mobile terminal.Under direct-connected pattern, mobile terminal sends text to browser Part sends message (sendFile).The message format example is
Mobile terminal sends the notification message of the web addresses comprising this document to browser.The web addresses instruction of this document Absolute url of this document in the web server of mobile terminal.Browser is after response message is received, according to web client End-server mode downloads file from mobile terminal.In indirectly connected communication pattern, browser sends file hair to mobile terminal Message is sent, the file that mobile terminal will be sent is uploaded onto the server, and server receives the web addresses for including this document after file Notification message be sent to browser, browser is after response message is received, according to web client-server mode from clothes Business device downloads file.
It should be noted that transmission file here can be two-way, it can both send from mobile terminal to browser, also might be used To be sent from browser to mobile terminal.
In this way, can file transmission easily be carried out with mobile terminal by the browser of computing device, without counting It calculates and software is installed in advance in equipment.
According to one embodiment, under indirectly connected communication pattern, server is when receiving the file that mobile terminal uploads Using a kind of stronger mechanism of real-time.Specifically, when server receives the file upload request of mobile terminal (such as When POST), server notifies the browser of computing device rather than reinforms browser after file has uploaded immediately.Clothes The upper transmitting file received is divided into multiple pieces of storages, such as five pieces by business device.After browser receives the notification message of server, Access web addresses (such as GET) wherein included.The address corresponds to the web addresses of the first blocks of files of server storage, clear Device of looking at obtains blocks of files always from the address, until All Files block end of transmission.In this way, browser can be downloaded more quickly Complete file, this is especially advantageous in the case where file size is larger.
Fig. 4 shows the document transmission method 400 that the browser of computing device according to an embodiment of the invention performs Flow chart.
In step S410, browser in response to the file in acquisition request mobile terminal user's operation, to mobile terminal File request message is sent, the mark of requested document is included in the message.In step S420, browser is received comprising this article The notification message of the web addresses of part.Under direct-connected communication pattern, the web addresses of this document indicate this document in mobile terminal Web addresses in web server, under indirectly connected communication pattern, the web addresses of this document indicate this document in server Web addresses in web server.In step S430, browser downloads file from the web addresses.In addition, browser can also connect The file request message from mobile terminal is received, the mark of requested document is included in the message.Under direct-connected communication pattern, Browser sends the notification message of the web addresses comprising this document to mobile terminal, so that mobile terminal is downloaded from the web addresses File.The web addresses of this document indicate web address of this document in the web server of browser.In indirectly connected communication pattern Under, browser uploads onto the server this document, so that mobile terminal downloads file from server.
Fig. 5 shows the flow chart of the document transmission method 500 of mobile terminal execution according to an embodiment of the invention.
In step S510, mobile terminal receives the file request message of the browser from computing device, is wrapped in the message Mark containing requested document.Under direct-connected communication pattern, in step S520, mobile terminal is sent to browser comprising this article The notification message of the web addresses of part downloads file so as to the browser of computing device from the web addresses.The web addresses of this document Indicate web address of this document in the web server of mobile terminal.It is mobile in step S530 under indirectly connected communication pattern Terminal uploads onto the server this document, and file is downloaded from server so as to the browser of computing device.
Fig. 6 shows the block diagram of the browser 600 of computing device according to an embodiment of the invention.
Browser 600 includes connection management device 610, message processing apparatus 620 and web client 630.Connection management fills The user's operation of 610 files being adapted in acquisition request mobile terminal is put, file request message is sent to mobile terminal, Include the mark of requested document in the message.Connection management device 610 is further adapted for receiving the web addresses comprising this document Notification message.Under direct-connected communication pattern, the web addresses of this document indicate this document in the web server of mobile terminal Web addresses, under indirectly connected communication pattern, the web addresses of this document indicate this document in the web server of server Web addresses.Message processing apparatus 620 is suitable for extracting the web addresses from notification message.Web client 630 is suitable for from the web Download file in address.
Fig. 7 shows the block diagram of the client application 700 of mobile terminal according to an embodiment of the invention.
Client application 700 includes connection management device 710, message processing apparatus 720 and web server 730.Connecting tube The file request message that device 710 is suitable for receiving the browser from computing device is managed, includes requested document in the message Mark.Message processing apparatus 720 is suitable for extracting the mark of requested document from file request message.Connection management device 710 are suitable under direct-connected communication pattern, and the notification message of the web addresses comprising this document is sent to browser.The web of this document Address indicates web address of this document in the web server 730 of mobile terminal, so as to the computing device under direct-connected pattern Browser downloads file from the web addresses.Connection management device 710 is further adapted under indirectly connected communication pattern, will be on this document Server is passed to, file is downloaded from server so as to the browser of computing device.
Fig. 8 shows the flow chart for the document transmission method 800 that server according to an embodiment of the invention performs.
In step S810, server disappears to the file request of the file of mobile terminal from the browser reception of computing device It ceases, the mark of requested document is included in the message.In step S820, file request message is sent to mobile whole by server End.In step S830, the file upload request of mobile terminal is received, in step S840, server is immediately to the clear of computing device Device of looking at sends the notification message for including file web addresses, and the upper transmitting file received is divided into multiple blocks of files and is stored. Multiple blocks of files are transmitted to browser by step S850 in the way of web server-client.
Fig. 9 shows the block diagram of server 900 according to an embodiment of the invention.
Server 900 includes connection management device 910, message processing apparatus 920 and memory 930.Connection management device 910, suitable for receiving the file request message to the file of mobile terminal from the browser of computing device, include in the message The mark of demand file.Message processing apparatus 920 is suitable for extracting the mark of requested document from file request message.Connecting tube Reason device 910 is suitable for file request message being sent to mobile terminal.Connection management device 910 is suitable for receiving the text of mobile terminal Part upload request includes the notification messages of file web addresses to the transmission of the browser of computing device immediately, and will receive Upper transmitting file is divided into multiple blocks of files and is stored in memory 930.Connection management device 910 is suitable for according to web server-client Multiple blocks of files are transmitted to browser by the mode at end.
In the specification provided in this place, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention Example can be put into practice without these specific details.In some instances, well known method, knot is not been shown in detail Structure and technology, so as not to obscure the understanding of this description.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of each inventive aspect, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor Shield the present invention claims the feature more features than being expressly recited in each claim.More precisely, as following As claims reflect, inventive aspect is all features less than single embodiment disclosed above.Therefore, it abides by Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim is in itself Separate embodiments as the present invention.
Those skilled in the art should understand that the modules or unit or group of the equipment in example disclosed herein Part can be arranged in equipment as depicted in this embodiment or alternatively can be positioned at and the equipment in the example In different one or more equipment.Module in aforementioned exemplary can be combined into a module or be segmented into addition multiple Submodule.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment Change and they are arranged in one or more equipment different from the embodiment.It can be the module or list in embodiment Member or component be combined into a module or unit or component and can be divided into addition multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it may be used any Combination is disclosed to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so to appoint Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification is (including adjoint power Profit requirement, abstract and attached drawing) disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed One of meaning mode can use in any combination.
In addition, be described as herein can be by the processor of computer system or by performing for some in the embodiment The method or the combination of method element that other devices of the function are implemented.Therefore, have to implement the method or method The processor of the necessary instruction of element forms the device for implementing this method or method element.In addition, device embodiment Element described in this is the example of following device:The device is for implementing as in order to performed by implementing the element of the purpose of the invention Function.
As used in this, unless specifically stated, come using ordinal number " first ", " second ", " third " etc. Description plain objects are merely representative of the different instances for being related to similar object, and are not intended to imply that the object being described in this way must Must have the time it is upper, spatially, in terms of sequence or given sequence in any other manner.
Although the embodiment according to limited quantity describes the present invention, above description, the art are benefited from It is interior it is clear for the skilled person that in the scope of the present invention thus described, it can be envisaged that other embodiments.Additionally, it should be noted that The language that is used in this specification primarily to readable and introduction purpose and select rather than in order to explain or limit Determine subject of the present invention and select.Therefore, in the case of without departing from the scope and spirit of the appended claims, for this Many modifications and changes will be apparent from for the those of ordinary skill of technical field.For the scope of the present invention, to this The done disclosure of invention is illustrative and not restrictive, and it is intended that the scope of the present invention be defined by the claims appended hereto.

Claims (6)

1. a kind of document transmission method performed in the server, which can be whole with movement by the browser of computing device End is connected, and the data-transmission mode between browser and mobile terminal includes direct-connected communication pattern and indirectly connected communication pattern, should Method includes:
The access request of the browser from computing device is received, the first session identification and gap marker are returned to, and generate to it And two-dimension code pattern corresponding with the gap marker is returned, invite ground containing corresponding with gap marker in the two-dimension code pattern Location;
The client application for receiving mobile terminal is corresponding to access by scanning the two-dimension code pattern of display on a web browser The request of address is invited, and the second session identification and the gap marker corresponding with the invitation address are returned to it;
Long connection is established according to the first session identification and browser, long connection is established according to the second session identification and mobile terminal, And be associated two long connection using the gap marker, form the channel between browser and client;
Client application sends the direct-connected communication comprising the direct-connected mailing address of mobile terminal to browser by the channel and invites Message;
Browser request after direct-connected communication invitation message is received accesses the direct-connected address included in message;
Client application receives the access request message from browser, determines that mobile terminal and computing device can carry out directly Even, direct-connected communication response message is sent to browser by the channel;
Client application and browser enter direct-connected communication pattern;
Under indirectly connected communication pattern:
The file request message to mobile terminal is received from the browser of computing device, includes requested document in the message Mark;
File request message is sent to mobile terminal;
Receive the file upload request of mobile terminal;
Requested file is transmitted to browser in the way of web server-client;
Under direct-connected communication pattern:
Browser sends file request message to mobile terminal, and the mark of requested document is included in the message;
Mobile terminal returns to the notification message of the web addresses comprising this document after file request is received;
Browser downloads file from mobile terminal upon receiving the notification message, according to web client-server mode.
2. the method as described in claim 1 further includes:
It is sent immediately to the browser of computing device comprising file web addresses after the file upload request for receiving mobile terminal Notification message.
3. method as claimed in claim 2, further includes:
The upper transmitting file received is divided into multiple blocks of files storages;
Multiple blocks of files are transmitted to browser in the way of web server-client.
4. the browser of computing device can be connected, between browser and mobile terminal by a kind of server with mobile terminal Data-transmission mode includes direct-connected communication pattern and indirectly connected communication pattern, which includes:
Suitable for receiving the access request of the browser from computing device, the first session identification is returned to it for connection management device And gap marker, and corresponding with gap marker two-dimension code pattern is generated and returned, contain in the two-dimension code pattern and channel Identify corresponding invitation address, be further adapted for receive mobile terminal client application by scan display on a web browser this two Dimension code figure come access it is corresponding invite address request, and to its return second session identification and with the invitation address pair The gap marker answered is further adapted for establishing long connection according to the first session identification and browser, according to the second session identification with Mobile terminal establishes long connection, and is associated two long connection using the gap marker, forms browser and client Between channel, be further adapted under indirectly connected communication pattern, being received from the browser of computing device please to the file of mobile terminal Message is sought, the mark of requested document is included in the message;
Message processing apparatus, suitable for extracting the mark of requested document from file request message;
Wherein connection management device is suitable for file request message being sent to mobile terminal, and the file upload for receiving mobile terminal please It asks;
Wherein, client application and browser enter direct-connected communication pattern as follows:
Client application sends the direct-connected communication comprising the direct-connected mailing address of mobile terminal to browser by the channel and invites Message;
Browser request after direct-connected communication invitation message is received accesses the direct-connected address included in message;
Client application receives the access request message from browser, determines that mobile terminal and computing device can carry out directly Even, direct-connected communication response message is sent to browser by the channel;
Client application and browser enter direct-connected pattern;
Wherein, under direct-connected communication pattern:
Browser sends file request message to mobile terminal, and the mark of requested document is included in the message;
Mobile terminal returns to the notification message of the web addresses comprising this document after file request is received;
Browser downloads file from mobile terminal upon receiving the notification message, according to web client-server mode.
5. server as claimed in claim 4, wherein connection management device are further adapted on the file for receiving mobile terminal Pass the notification message for including file web addresses to the transmission of the browser of computing device immediately after request.
6. server as claimed in claim 5, further includes memory,
The upper transmitting file that wherein connection management device is further adapted for receive is divided into multiple blocks of files storages in memory, according to Multiple blocks of files are transmitted to browser by the mode of web server-client.
CN201410665762.3A 2014-11-20 2014-11-20 Document transmission method and server Active CN104394208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410665762.3A CN104394208B (en) 2014-11-20 2014-11-20 Document transmission method and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410665762.3A CN104394208B (en) 2014-11-20 2014-11-20 Document transmission method and server

Publications (2)

Publication Number Publication Date
CN104394208A CN104394208A (en) 2015-03-04
CN104394208B true CN104394208B (en) 2018-07-03

Family

ID=52612043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410665762.3A Active CN104394208B (en) 2014-11-20 2014-11-20 Document transmission method and server

Country Status (1)

Country Link
CN (1) CN104394208B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105338055A (en) * 2015-09-23 2016-02-17 百度在线网络技术(北京)有限公司 Information interaction method, server, and information interaction system
CN105915603B (en) * 2016-04-14 2019-09-10 北京小米移动软件有限公司 File management method and device
CN106027631B (en) 2016-05-12 2021-03-02 腾讯科技(深圳)有限公司 Data transmission method and device
CN106250455B (en) * 2016-07-27 2020-02-11 北京奇虎科技有限公司 Mobile terminal file management method and system
CN106453230B (en) * 2016-08-08 2019-11-08 腾讯科技(深圳)有限公司 Data processing method and device
CN108848197B (en) * 2018-09-19 2021-06-08 江苏瑞中数据股份有限公司 File transmission method and system
CN114374686B (en) * 2022-01-05 2024-03-01 北京百度网讯科技有限公司 File processing method, device and equipment based on browser

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238523A (en) * 2010-04-20 2011-11-09 苏州彭华信息技术有限公司 Mobile phone information content backup/recovery method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9246999B2 (en) * 2012-05-18 2016-01-26 Andrew Milburn Directed wi-fi network in a venue integrating communications of a central concert controller with portable interactive devices

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238523A (en) * 2010-04-20 2011-11-09 苏州彭华信息技术有限公司 Mobile phone information content backup/recovery method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
AirDroid: Remotely manage your Android from a Web browser;Alvin Ybañez;《http://www.androidauthority.com/airdroid-control-android-from-pc-269186/》;20130918;第1页第1-3行、What is AirDroid?、LAN Connection Mode、Remote Connection Mode、Remote device management、Managing ringtones以及Managing your apps *

Also Published As

Publication number Publication date
CN104394208A (en) 2015-03-04

Similar Documents

Publication Publication Date Title
CN104378435B (en) The browser of computing device and the file of mobile terminal transmit
CN104394208B (en) Document transmission method and server
CN104376090B (en) The browser of computing device and the screen synch of mobile terminal
CN104486371B (en) Batch downloads the device and method of file
US10154412B2 (en) Method and apparatus for sharing content
EP3036650B1 (en) System, apparatus, and method for sharing electronic device
WO2017000820A1 (en) File sharing method, apparatus, and system based on cloud storage
CN104902028B (en) A kind of a key login authentication method, apparatus and system
CN111368173A (en) File transmission method and device, electronic equipment and readable storage medium
CN103078868A (en) Application method and system of two-dimension code
CN105407134B (en) A kind of list submits equipment, method and mobile terminal
KR20150032674A (en) Communication system
CN104462367B (en) A kind of browser and its method for viewing thumbnail of computing device
WO2014127675A1 (en) Method, device, and terminal for information sharing
JP6689516B2 (en) Image acquisition method, controlled device, and server
CN104462366B (en) The browser and its method for viewing thumbnail of a kind of computing device
CN104484338B (en) Listed files management equipment and method
CN104394210B (en) Direct-connected communication means and device
KR102406501B1 (en) Data sharing method among passengers of vehicle and system thereof
CN104468739B (en) Message treatment method, client and mobile terminal
WO2023202721A1 (en) File transmission method and apparatus, and electronic device and storage medium
CN103491141A (en) Application server and request processing method
CN105577521A (en) Method, device and system for friend grouping
CN104462250B (en) The communication of the browser and mobile terminal of computing device
US20130057708A1 (en) Real-time Wireless Image Logging Using a Standalone Digital Camera

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant