CN106412317A - File sharing device and method - Google Patents
File sharing device and method Download PDFInfo
- Publication number
- CN106412317A CN106412317A CN201610933699.6A CN201610933699A CN106412317A CN 106412317 A CN106412317 A CN 106412317A CN 201610933699 A CN201610933699 A CN 201610933699A CN 106412317 A CN106412317 A CN 106412317A
- Authority
- CN
- China
- Prior art keywords
- file
- higher limit
- transmission
- subfile
- transmission higher
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/07—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
- H04L51/08—Annexed information, e.g. attachments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
The invention discloses a file sharing device which comprises a detection module for detecting whether the current application to send file has reached its upper limit for single time file transmission or not when a file transmitting instruction is detected; a determination module for obtaining the upper limit of transmission if the application has reached its upper limit and determining whether the size of the current file is greater than the upper limit of transmission or not; a sending module for directly sending the file if the size of the file is smaller than the upper limit, and dividing the file into a plurality of sub-files according to the upper limit if the size of the file is greater than the upper limit of transmission, and sending the sub-files and the divided information corresponding to the sub-files separately wherein the sizes of the sub-files are all less than or equal to the upper limit of transmission. The invention also discloses a file sharing method. According to the invention, the technical problem is resolved that some application cannot send large files, and therefore, user's satisfaction is increased.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly, to a kind of sharing files device and method.
Background technology
With the development of mobile Internet, increasing people starts to be handled official business on mobile terminals or passed through to move
Dynamic terminal to be exchanged with good friend, and for example liking oneself section video sharing gives good friend of oneself etc..At present, mobile whole
On end, many applications all have the function of sending and receive file, such as QQ, wechat etc., but wherein great majority application is to file
Transmission size can limit, such as wechat single can only send or receive the file of below 20M, lead to many users send out
When sending the files such as larger video or photo to good friend, failure will be sent, lead to the experience of user not high.
Content of the invention
Present invention is primarily targeted at proposing a kind of sharing files device and method it is intended to solve some in prior art
Application can not send larger file, leads to the not high technical problem of the experience of user.
For achieving the above object, the present invention provides a kind of sharing files device, including:
Detection module, for, after file transmission instruction is detected, detecting that the application of currently transmitted file whether there is single
The transmission upper limit of secondary transmission file;
Judge module, if there is the transmission upper limit of single transmission file for described application, obtains described application single
The transmission higher limit of transmission file, and judge whether currently transmitted file size is more than described transmission higher limit;
Sending module, if being less than or equal to described transmission higher limit for described file size, directly transmits described literary composition
Described file, if described file size is more than described transmission higher limit, is divided into multiple by part according to described transmission higher limit
Subfile, and each subfile and the corresponding division information of each subfile are transmitted one by one, wherein, described subfile
Size be respectively less than or be equal to described transmission higher limit.
Preferably, described sending module includes:
Division unit, for described file is averagely divided into multiple subfiles, and the size of each subfile is respectively less than
Or it is equal to described transmission higher limit;
Or, described file is divided into multiple subfiles with described transmission higher limit for dividing unit.
Preferably, described division unit is additionally operable to:
Each subfile described is numbered according to stripe sequence, and using corresponding for each subfile numbering as described
The corresponding division information of each subfile.
Preferably, described sending module also includes:
Compression unit, before described file being divided into multiple subfiles according to described transmission higher limit, points out to use
Family is compressed the need of to described file, if user selects described file is compressed, the pressure being selected according to user
Whether contracting mode is compressed to described file, and judge the file size after compression more than transmission higher limit;If after compression
File size is less than or equal to transmission higher limit, then directly transmit the file after described compression;If the file size after compression is big
In transmission higher limit, then the file after described compression is divided into by multiple subfiles according to described transmission higher limit.
Preferably, described device also includes:
Concatenation module, for after receiving all of subfile, obtaining the corresponding division information of each subfile, and
All of subfile is spliced into by complete file according to the division information getting.
In addition, for achieving the above object, the present invention also provides a kind of sharing files method, described sharing files method bag
Include:
After file transmission instruction is detected, detect that the application of currently transmitted file whether there is the biography of single transmission file
The defeated upper limit;
If described application has the transmission upper limit of single transmission file, obtain the transmission of described application single transmission file
Higher limit, and judge whether currently transmitted file size is more than described transmission higher limit;
If described file size is less than or equal to described transmission higher limit, directly transmit described file, if described file
Size is more than described transmission higher limit, then according to described transmission higher limit, described file is divided into multiple subfiles, and will be each
Individual subfile and the corresponding division information of each subfile are transmitted one by one, and wherein, the size of described subfile is respectively less than
Or it is equal to described transmission higher limit.
Preferably, according to described transmission higher limit, described file is divided into multiple subfiles to include:
Described file is averagely divided into multiple subfiles, and the size of each subfile is respectively less than or is equal to described transmission
Higher limit;
Or, described file is divided into multiple subfiles with described transmission higher limit for dividing unit.
Preferably, also include after described file being divided into by multiple subfiles according to described transmission higher limit:
Each subfile described is numbered according to stripe sequence, and using corresponding for each subfile numbering as described
The corresponding division information of each subfile.
Preferably, also include before described file being divided into by multiple subfiles according to described transmission higher limit:
Prompt the user whether to need described file is compressed, if user selects described file is compressed, root
According to the compress mode that user selects, described file is compressed, and judges the file size after compression whether more than the transmission upper limit
Value;
If the file size after compression is less than or equal to transmission higher limit, directly transmit the file after described compression, if
File size after compression is more than transmission higher limit, then be divided into the file after described compression according to described transmission higher limit many
Individual subfile.
Preferably, methods described also includes:
After receiving all of subfile, obtain the corresponding division information of each subfile, and according to getting
All of subfile is spliced into complete file by division information.
Sharing files device and method provided by the present invention, before sending file, first detects currently transmitted file
Application is with the presence or absence of the transmission upper limit of single transmission file, if existing, obtaining the transmission higher limit of this application and judging current
Whether the file size sending is more than this transmission higher limit, when described file size is more than described transmission higher limit, then basis
Described file is divided into multiple subfiles by described transmission higher limit, and by each subfile and corresponding stroke of each subfile
Point information is transmitted one by one, and wherein, the size of described subfile is respectively less than or is equal to described transmission higher limit.The present invention passes through
Larger file is divided into after multiple subfiles transmitting higher limit less than or equal to current application and is transmitted one by one again
Mode, solves the technical problem that some applications in prior art can not send larger file, and improve user uses satisfaction
Degree.
Brief description
Fig. 1 is the hardware architecture diagram realizing the optional mobile terminal of each embodiment of the present invention one;
Fig. 2 is the radio communication device schematic diagram of mobile terminal in Fig. 1;
Fig. 3 is the high-level schematic functional block diagram of sharing files device first embodiment of the present invention;
Fig. 4 is the refinement module schematic diagram of sending module 30 shown in Fig. 3 of the present invention;
Fig. 5 is the schematic diagram of a scenario in the present invention, each subfile being numbered according to stripe sequence;
Fig. 6 is another refinement module schematic diagram of sending module 30 shown in Fig. 3 of the present invention;
Fig. 7 is the schematic diagram of a scenario prompting the user whether in the present invention to need the file sending is compressed;
Fig. 8 is the schematic diagram of a scenario that in the present invention, prompting user selects compress mode;
Fig. 9 is the high-level schematic functional block diagram of sharing files device second embodiment of the present invention;
Figure 10 is the schematic flow sheet of sharing files method first embodiment of the present invention;
Figure 11 is the schematic flow sheet of sharing files method second embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Realize the mobile terminal of each embodiment of the present invention referring now to Description of Drawings.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for being conducive to the explanation of the present invention, itself
Not specific meaning.Therefore, " module " and " part " can mixedly use.
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desk computer etc. consolidate
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for moving
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware architecture diagram realizing the optional mobile terminal of each embodiment of the present invention one.
Mobile terminal 1 00 can include wireless communication unit 110, user input unit 130, output unit 150, memorizer
160th, controller 180 and power subsystem 190, sharing files device 400 etc..Fig. 1 shows the mobile end with various assemblies
End, it should be understood that be not required for implementing all assemblies illustrating.More or less of assembly can alternatively be implemented.
Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and radio communication device
Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module
112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal generating before the server of broadcast singal and/or broadcast related information or reception and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singal, radio signals, data broadcasting
Signal etc..And, broadcast singal may further include the broadcast singal combining with TV or radio signals.Broadcast phase
Pass information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is receiving.Broadcast singal can exist in a variety of manners, and for example, it can be with the electronics of DMB (DMB)
The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast
Receiver module 111 can be broadcasted by using various types of broadcaster receipt signals.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hand-held (DVB-H), the data broadcasting device of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated service
Etc. (ISDB-T) digital broadcast apparatus receive digital broadcasting.Broadcasting reception module 111 may be constructed such that and is adapted to provide for extensively
Broadcast the various broadcasters of signal and above-mentioned digital broadcast apparatus.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memorizer 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal can include voice and lead to
Words signal, video calling signal or the various types of data sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
Tooth TM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee TM etc..
Location information module 115 be for check or obtain mobile terminal positional information module.Location information module
Typical case be GPS (global pick device).According to current technology, GPS module 115 calculates and is derived from three or more satellites
Range information and correct time information and for the Information application triangulation calculating, thus according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, the method for calculating position and temporal information is defended using three
Star and the error of the position that calculates by using other satellite correction and temporal information.Additionally, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input
Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch
Plate (for example, detection due to touched and lead to resistance, pressure value, the change of electric capacity etc. sensitive component), roller, rocking bar
Etc..Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Output unit 150 can include display unit 151, dio Output Modules 152 etc..
Display unit 151 may be displayed on the information processing in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
During words call mode, display unit 151 can show (for example, text messaging, the multimedia file that communicate with call or other
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and the touch pad touch screen with formation superposed on one another as a layer, display unit
151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
A kind of.Some in these display may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display device), for example, moves
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches
Input pressure value and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
When under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memorizer 160
The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide and move
The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation of terminal 100 execution.
Dio Output Modules 152 can include pick up, buzzer etc..
Memorizer 160 can store software program of the process being executed by controller 180 and control operation etc., or can
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And, memorizer 160 can be to store the vibration of various modes with regard to exporting and audio signal when touching and being applied to touch screen
Data.
Memorizer 160 can include the storage medium of at least one type, and described storage medium includes flash memory, hard disk, many
Media card, card-type memorizer (for example, SD or DX memorizer etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can execute memorizer with by network connection
The network storage device cooperation of 160 store function.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 execution and voice call, data
The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers
The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or it is so structured that and controls
Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executing on the touchscreen or picture
Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Suitable electric power needed for part and assembly.
Various embodiment described herein can be with using such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implementing.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to execute function described herein
At least one in electronic unit implementing, in some cases, can be implemented in controller 180 by such embodiment.
Software is implemented, the embodiment of such as process or function can with allow to execute the single of at least one function or operation
Software module is implementing.Software code can be come by the software application (or program) write with any suitable programming language
Implement, software code can be stored in memorizer 160 and be executed by controller 180.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data all if any
Line and radio communication device and satellite-based communicator are operating.
The communicator being wherein operable to according to the mobile terminal of the present invention referring now to Fig. 2 description.
Such communicator can use different air interfaces and/or physical layer.For example, used by communicator
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications dress
Put (UMTS) (especially, Long Term Evolution (LTE)), global mobile communication device (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication device, but such teaching is equally applicable to other types of device.
With reference to Fig. 2, cdma wireless communication device can include multiple mobile terminal 1s 00, multiple base station (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 formation interfaces.MSC280 is also structured to and can form interface via the BSC275 that back haul link is couple to BS270.Return
If journey circuit can construct according to any one in the interface that Ganji knows, described interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that device as shown in Figure 2 can include multiple BSC275.
Each BS270 can service one or more subregions (or region), by the sky of multidirectional antenna or sensing specific direction
Each subregion that line covers is radially away from BS270.Or, each subregion can by for diversity reception two or more
Antenna covers.Each BS270 may be constructed such that support multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
Device (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal of operation in device by broadcsting transmitter (BT) 295
100.Broadcasting reception module 111 is arranged at mobile terminal 1 00 to receive the broadcast being sent by BT295 as shown in Figure 1
Signal.In fig. 2 it is shown that several global pick device (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals
At least one of 100.
In fig. 2, multiple satellites 300 are depicted, but it is understood that, it is possible to use any number of satellite obtains
Useful location information.As a typical operation of radio communication device, BS270 receives from various mobile terminal 1s 00
Reverse link signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Certain base station 270 receives
Each reverse link signal processed in specific BS270.The data obtaining is forwarded to the BSC275 of correlation.BSC
The mobile management function of call resource allocation being provided and includes the coordination of soft switching process between BS270.BSC275 also will connect
The data receiving is routed to MSC280, and it provides the extra route service for forming interface with PSTN290.Similarly,
PSTN290 and MSC280 form interface, and MSC and BSC275 forms interface, and BSC275 correspondingly controls BS270 with by forward direction
Link signal is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration, communication apparatus structure, each embodiment of sharing files device of the present invention is proposed,
Sharing files device is a part for mobile terminal.
With reference to Fig. 3, Fig. 3 is the high-level schematic functional block diagram of sharing files device first embodiment of the present invention, in the present embodiment,
This document sharing apparatus 400 include:
Detection module 10, for, after file transmission instruction is detected, detecting that the application of currently transmitted file whether there is
The transmission upper limit of single transmission file.
In the present embodiment, user, when needing to send file by certain application, needs the file first selecting to be sent, so
Confirm afterwards to click on and confirm to send, this document just can be sent by this application, wherein, have some applications can send literary composition to single
The size of part has limited.The present embodiment, after file user's triggering is detected sends instruction, detects currently transmitted file
Application is with the presence or absence of the transmission upper limit of single transmission file.
Judge module 20, if there is the transmission upper limit of single transmission file for described application, obtains described application single
The transmission higher limit of secondary transmission file, and judge whether currently transmitted file size is more than described transmission higher limit.
In the present embodiment, if the transmission upper limit that described application does not have single transmission file is detected, directly transmit institute
State file.
If the transmission upper limit that described application has single transmission file is detected, obtain described application single transmission file
Transmission higher limit, for example, the transmission higher limit of current " wechat " is 20M, and judges whether currently transmitted file size big
In described transmission higher limit.
Sending module 30, if being less than or equal to described transmission higher limit for described file size, directly transmits described
Described file, if described file size is more than described transmission higher limit, is divided into many by file according to described transmission higher limit
Individual subfile, and each subfile and the corresponding division information of each subfile are transmitted one by one, wherein, described Ziwen
The size of part is respectively less than or is equal to described transmission higher limit.
In the present embodiment, if described file size is less than or equal to described transmission higher limit, directly transmit described file,
If described file size is more than described transmission higher limit, described file is divided into by multiple Ziwens according to described transmission higher limit
Then each subfile and the corresponding division information of each subfile are transmitted by part one by one.
Sharing files device described in the present embodiment, including:After file transmission instruction is detected, detect currently transmitted literary composition
The application of part whether there is the transmission upper limit of single transmission file;If there is the transmission upper limit of single transmission file in described application,
Then obtain the transmission higher limit of described application single transmission file, and judge whether currently transmitted file size is more than described biography
Defeated higher limit;If described file size is more than described transmission higher limit, according to described transmission higher limit, described file is divided
For multiple subfiles, and each subfile and the corresponding division information of each subfile are transmitted one by one, wherein, described
The size of subfile is respectively less than or is equal to described transmission higher limit.The present embodiment is by being divided into multiple being less than by larger file
Or be equal to current application and transmit the mode that is transmitted one by one again after the subfile of higher limit, solve that in prior art, some should
With the technical problem of larger file can not be sent, improve the user satisfaction of user.
Further, with reference to Fig. 4, Fig. 4 is the refinement high-level schematic functional block diagram of sending module 30 shown in Fig. 3 of the present invention, base
Sharing files device 400 described in above-mentioned Fig. 3, in the present embodiment, sending module 30 includes:
Division unit 31, for described file is averagely divided into multiple subfiles, and the size of each subfile is all little
In or be equal to described transmission higher limit;Or, described file is divided into many height with described transmission higher limit for dividing unit
File.
For example, if use " wechat " to send the file for 70M for the size, the transmission higher limit according to " wechat " is 20M, therefore
This document can be drawn and averagely be divided into 4 subfiles, the size of each subfile is 17.5M, or to transmit higher limit 20M
For dividing unit, described file is divided into 4 subfiles, wherein, the size having 3 subfiles is 20M, remaining 1 son
The size of file is 10M.
Wherein, division unit 31 be additionally operable to according to described transmission higher limit by described file be divided into multiple subfiles it
Afterwards, each subfile described is numbered according to stripe sequence, and using corresponding for each subfile numbering as described each
The corresponding division information of subfile.After described division information is used for each subfile is spliced together, the file obtaining can
Consistent with the file before dividing.
In order to be better understood from the method described in the present embodiment, refer to Fig. 5, Fig. 5 is to each subfile in the present invention
The schematic diagram of a scenario being numbered according to stripe sequence, it is assumed that currently transmitted file name is " tourism video in Fig. 5
.mp4 ", and according to the transmission higher limit of the application of currently transmitted this document described " tourism video .mp4 " file is divided for 3
Individual subfile, then just this 3 subfiles can be numbered according to stripe sequence, generation " tourism video _ 01.mp4 ",
" tourism video _ 02.mp4 ", " tourism video _ 03.mp4 ", is then transmitted one by one.
Division unit described in the present embodiment is used for:Described file is averagely divided into multiple subfiles, and each Ziwen
The size of part is respectively less than or is equal to described transmission higher limit;Or, by described file with described transmission higher limit as dividing unit
It is divided into multiple subfiles.And for being numbered according to stripe sequence to each subfile described, and by each subfile
Corresponding numbering is as the corresponding division information of each subfile described.The present embodiment is multiple by being divided into larger file
Transmit the subfile of higher limit less than or equal to current application, and each subfile is numbered so that receiving terminal is connecing
Each subfile can be spliced into original after receiving all of subfile.
Further referring to Fig. 6, Fig. 6 is another refinement high-level schematic functional block diagram of sending module 30 shown in Fig. 3 of the present invention,
Based on the sharing files device 400 described in above-mentioned Fig. 3, in the present embodiment, described sending module 30 also includes:
Compression unit 32, before described file being divided into multiple subfiles according to described transmission higher limit, points out
User is compressed the need of to described file, if user selects described file is compressed, is selected according to user
Whether compress mode is compressed to described file, and judge the file size after compression more than transmission higher limit;If after compression
File size be less than or equal to transmission higher limit, then directly transmit described compression after file;If the file size after compression
More than transmission higher limit, then the file after described compression is divided into by multiple subfiles according to described transmission higher limit.
In the present embodiment, send, in order to reduce, the Internet resources taking during file, and reduce spent when sending file
Time, be divided again after the file of transmission can be compressed, the subfile quantity after so dividing can be with respect to
Reduce, and if user determine when the file sending will be compressed, multiple compression factor can also be provided the user different
Compress mode, for example, if currently transmitted file be video file, user can select the video compress of transmission is
480P, 720P etc..
In order to be better understood from the method described in the present embodiment, refer to Fig. 7, Fig. 7 is to prompt the user whether in the present invention
Need the schematic diagram of a scenario that the file sending is compressed, in Fig. 7, before described file is divided into multiple subfiles,
Whether display screen pop-up dialogue box " is compressed to this document?", if user's triggering "No", directly according to transmission higher limit
Described file is divided into multiple subfiles;The "Yes" if user sets out, ejects another one dialog box, provides the user multiple
Compress mode, and according to the compress mode that user selects, described file is compressed.Refer to Fig. 8, Fig. 8 is to carry in the present invention
Show that user selects the schematic diagram of a scenario of compress mode, in fig. 8 it is assumed that it is video file that user needs the file sending and false
If two kinds of compress modes can be provided in the present embodiment:" 480P " and " 720P ", if user selects the compress mode of triggering " 480P ",
The video file being then " 480P " by the video file compression sending.
Wherein, if the file size after compression is less than or equal to transmission higher limit, directly transmit the literary composition after described compression
File after described compression, if the file size after compression is more than transmission higher limit, is drawn by part according to described transmission higher limit
It is divided into multiple subfiles, then each subfile and the corresponding division information of each subfile are transmitted one by one.
Compression unit 32 described in the present embodiment, before described file is divided into multiple subfiles, prompting user is
No needs are compressed to described file, if user selects described file is compressed, the compression side being selected according to user
Formula is compressed to described file, solves in prior art some applications further and can not send the technology of larger file and asks
Topic, improves the user satisfaction of user.
Further, with reference to Fig. 9, Fig. 9 is the high-level schematic functional block diagram of sharing files device second embodiment of the present invention, base
Sharing files device 400 described in above-mentioned Fig. 3, in the present embodiment, described sharing files device 400 also includes:
Concatenation module 40, for after receiving all of subfile, obtaining the corresponding division information of each subfile,
And all of subfile is spliced into by complete file according to the division information getting.
In the present embodiment, receive one by one first through division after multiple subfiles, receive use subfile it
Afterwards, obtain the corresponding division information of each subfile, then according to this division information, all of subfile is spliced, obtain
Original before division.
Wherein, if described file before dividing also through overcompression, the file also needing to obtain splicing is decompressed
Obtain original.
Concatenation module 40 described in the present embodiment, after receiving all of subfile, obtains each subfile and corresponds to
Division information, and all of subfile is spliced into by complete file according to the division information getting, solves existing skill
In art, some applications can not receive the technical problem of larger file, improves the user satisfaction of user.
The present invention also provides a kind of sharing files method, and this document sharing method is mainly used on mobile terminal, reference
Figure 10, Figure 10 are the schematic flow sheet of sharing files method first embodiment of the present invention, in the present embodiment, methods described bag
Include:
Step S10, after file transmission instruction is detected, detects that the application of currently transmitted file whether there is single transmission
The transmission upper limit of file.
In the present embodiment, user, when needing to send file by certain application, needs the file first selecting to be sent, so
Confirm afterwards to click on and confirm to send, this document just can be sent by this application, wherein, have some applications can send literary composition to single
The size of part has limited.The present embodiment, after file user's triggering is detected sends instruction, detects currently transmitted file
Application is with the presence or absence of the transmission upper limit of single transmission file.
Step S20, if described application has the transmission upper limit of single transmission file, obtains described application single transmission literary composition
The transmission higher limit of part, and judge whether currently transmitted file size is more than described transmission higher limit.
In the present embodiment, if the transmission upper limit that described application does not have single transmission file is detected, directly transmit institute
State file.
If the transmission upper limit that described application has single transmission file is detected, obtain described application single transmission file
Transmission higher limit, for example, the transmission higher limit of current " wechat " is 20M, and judges whether currently transmitted file size big
In described transmission higher limit.
Step S30, if described file size is less than or equal to described transmission higher limit, directly transmits described file, if
Described file size is more than described transmission higher limit, then according to described transmission higher limit, described file is divided into multiple Ziwens
Part, and each subfile and the corresponding division information of each subfile are transmitted one by one, wherein, described subfile big
Little be respectively less than or be equal to described transmission higher limit.
In the present embodiment, if described file size is less than or equal to described transmission higher limit, directly transmit described file,
If described file size is more than described transmission higher limit, described file is divided into by multiple Ziwens according to described transmission higher limit
Then each subfile and the corresponding division information of each subfile are transmitted by part one by one.
Sharing files method described in the present embodiment, including:After file transmission instruction is detected, detect currently transmitted literary composition
The application of part whether there is the transmission upper limit of single transmission file;If there is the transmission upper limit of single transmission file in described application,
Then obtain the transmission higher limit of described application single transmission file, and judge whether currently transmitted file size is more than described biography
Defeated higher limit;If described file size is more than described transmission higher limit, according to described transmission higher limit, described file is divided
For multiple subfiles, and each subfile and the corresponding division information of each subfile are transmitted one by one, wherein, described
The size of subfile is respectively less than or is equal to described transmission higher limit.The present invention by by larger file be divided into multiple less than or
Transmit, equal to current application, the mode being transmitted one by one again after the subfile of higher limit, solve some applications in prior art
The technical problem of larger file can not be sent, improve the user satisfaction of user.
Further, based on the sharing files method described in above-mentioned Figure 10, in the present embodiment, according to described transmission higher limit
The method that described file is divided into multiple subfiles includes:
Described file is averagely divided into multiple subfiles, and the size of each subfile is respectively less than or is equal to described transmission
Higher limit;Or, described file is divided into multiple subfiles with described transmission higher limit for dividing unit.For example, if using
When " wechat " sends the file that size is 70M, the transmission higher limit according to " wechat " is 20M, therefore can draw averagely this document
It is divided into 4 subfiles, the size of each subfile is 17.5M, or to transmit higher limit 20M as dividing unit, will be described
File is divided into 4 subfiles, and wherein, the size having 3 subfiles is 20M, and the size of remaining 1 subfile is 10M.
Wherein, also include after described file being divided into by multiple subfiles according to described transmission higher limit:
Each subfile described is numbered according to stripe sequence, and using corresponding for each subfile numbering as described
The corresponding division information of each subfile.Described division information is for the file after each subfile is spliced together, obtaining
Can be consistent with the file before dividing.
In order to be better understood from the method described in the present embodiment, refer to Fig. 5, Fig. 5 is to each subfile in the present invention
The schematic diagram of a scenario being numbered according to stripe sequence, it is assumed that currently transmitted file name is " tourism video in Fig. 5
.mp4 ", and according to the transmission higher limit of the application of currently transmitted this document described " tourism video .mp4 " file is divided for 3
Individual subfile, then just this 3 subfiles can be numbered according to stripe sequence, generation " tourism video _ 01.mp4 ",
" tourism video _ 02.mp4 ", " tourism video _ 03.mp4 ", is then transmitted one by one.
The method that described file is divided into multiple subfiles being included according to transmission higher limit described in the present embodiment:By institute
State file and be averagely divided into multiple subfiles, and the size of each subfile is respectively less than or is equal to described transmission higher limit;Or,
Described file is divided into multiple subfiles with described transmission higher limit for dividing unit.And to each subfile described according to
Stripe sequence is numbered, and using corresponding for each subfile numbering as the corresponding division information of each subfile described.This
Embodiment by larger file is divided into multiple subfiles transmitting higher limit less than or equal to current application, and to each
Individual subfile is numbered so that each subfile can be spliced into original text after receiving all of subfile by receiving terminal
Part.
Further, based on the sharing files method described in above-mentioned Figure 10, in the present embodiment, according to described transmission higher limit
Also include before described file is divided into multiple subfiles:
Prompt the user whether to need described file is compressed, if user selects described file is compressed, root
According to the compress mode that user selects, described file is compressed, and judges the file size after compression whether more than the transmission upper limit
Value;If the file size after compression is less than or equal to transmission higher limit, directly transmit the file after described compression;If after compression
File size be more than transmission higher limit, then according to described transmission higher limit by described compression after file be divided into multiple Ziwens
Part.
In the present embodiment, send, in order to reduce, the Internet resources taking during file, and reduce spent when sending file
Time, be divided again after the file of transmission can be compressed, the subfile quantity after so dividing can be with respect to
Reduce, and if user determine when the file sending will be compressed, multiple compression factor can also be provided the user different
Compress mode, for example, if currently transmitted file be video file, user can select the video compress of transmission is
480P, 720P etc..
In order to be better understood from the method described in the present embodiment, refer to Fig. 7, Fig. 7 is to prompt the user whether in the present invention
Need the schematic diagram of a scenario that the file sending is compressed, in Fig. 7, before described file is divided into multiple subfiles,
Whether display screen pop-up dialogue box " is compressed to this document?", if user's triggering "No", directly according to transmission higher limit
Described file is divided into multiple subfiles;The "Yes" if user sets out, ejects another one dialog box, provides the user multiple
Compress mode, and according to the compress mode that user selects, described file is compressed.Refer to Fig. 8, Fig. 8 is to carry in the present invention
Show that user selects the schematic diagram of a scenario of compress mode, in fig. 8 it is assumed that it is video file that user needs the file sending and false
If two kinds of compress modes can be provided in the present embodiment:" 480P " and " 720P ", if user selects the compress mode of triggering " 480P ",
The video file being then " 480P " by the video file compression sending.
Wherein, if the file size after compression is less than or equal to transmission higher limit, directly transmit the literary composition after described compression
File after described compression, if the file size after compression is more than transmission higher limit, is drawn by part according to described transmission higher limit
It is divided into multiple subfiles, then each subfile and the corresponding division information of each subfile are transmitted one by one.
The present embodiment, before described file is divided into multiple subfiles, prompts the user whether to need described file is entered
Row compression, if user selects described file is compressed, presses to described file according to the compress mode that user selects
Contracting, solves the technical problem that some applications in prior art can not send larger file further, improves the use of user
Satisfaction.
Further, with reference to Figure 11, Figure 11 is the schematic flow sheet of sharing files method second embodiment of the present invention, is based on
Sharing files method described in above-mentioned Figure 10, in the present embodiment, described sharing files method also includes:
Step S40, after receiving all of subfile, obtains the corresponding division information of each subfile, and according to
All of subfile is spliced into complete file by the division information getting.
In the present embodiment, receive one by one first through division after multiple subfiles, receive use subfile it
Afterwards, obtain the corresponding division information of each subfile, then according to this division information, all of subfile is spliced, obtain
Original before division.
Wherein, if described file before dividing also through overcompression, the file also needing to obtain splicing is decompressed
Obtain original.
The present embodiment, after receiving all of subfile, obtains the corresponding division information of each subfile, and according to
All of subfile is spliced into complete file by the division information getting, and solving some applications in prior art can not connect
Receive the technical problem of larger file, improve the user satisfaction of user.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row
The comprising of his property, so that including a series of process of key elements, method, article or device not only include those key elements, and
And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or device institute
Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including being somebody's turn to do
Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by the mode of software plus necessary general hardware platform naturally it is also possible to pass through hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Go out partly can embodying in the form of software product of contribution, this computer software product is stored in a storage medium
In (as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, clothes
Business device, air-conditioner, or network equipment etc.) method described in execution each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this
Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of sharing files device is it is characterised in that described sharing files device includes:
Detection module, for after file transmission instruction is detected, detecting that the application of currently transmitted file whether there is single and passes
The transmission upper limit of defeated file;
Judge module, if there is the transmission upper limit of single transmission file for described application, obtains described application single transmission
The transmission higher limit of file, and judge whether currently transmitted file size is more than described transmission higher limit;
Sending module, if being less than or equal to described transmission higher limit for described file size, directly transmits described file, if
Described file size is more than described transmission higher limit, then according to described transmission higher limit, described file is divided into multiple Ziwens
Part, and each subfile and the corresponding division information of each subfile are transmitted one by one, wherein, described subfile big
Little be respectively less than or be equal to described transmission higher limit.
2. sharing files device as claimed in claim 1 is it is characterised in that described sending module includes:
Division unit, for described file is averagely divided into multiple subfiles, and the size of each subfile is respectively less than or waits
In described transmission higher limit;
Or, described file is divided into multiple subfiles with described transmission higher limit for dividing unit.
3. sharing files device as claimed in claim 2 is it is characterised in that described division unit is additionally operable to:
Each subfile described is numbered according to stripe sequence, and using corresponding for each subfile numbering as described each
The corresponding division information of subfile.
4. sharing files device as claimed in claim 1 is it is characterised in that described sending module also includes:
Compression unit, before described file being divided into multiple subfiles according to described transmission higher limit, prompting user is
No needs are compressed to described file, if user selects described file is compressed, the compression side being selected according to user
Whether formula is compressed to described file, and judge the file size after compression more than transmission higher limit;If the file after compression
Size is less than or equal to transmission higher limit, then directly transmit the file after described compression;If the file size after compression is more than passing
Defeated higher limit, then be divided into multiple subfiles according to described transmission higher limit by the file after described compression.
5. the sharing files device as described in Claims 1-4 any one is it is characterised in that described device also includes:
Concatenation module, for after receiving all of subfile, obtaining the corresponding division information of each subfile, and according to
All of subfile is spliced into complete file by the division information getting.
6. a kind of sharing files method is it is characterised in that described sharing files method includes:
After file transmission instruction is detected, detect that the application of currently transmitted file whether there is in the transmission of single transmission file
Limit;
If described application has the transmission upper limit of single transmission file, obtain the transmission upper limit of described application single transmission file
Value, and judge whether currently transmitted file size is more than described transmission higher limit;
If described file size is less than or equal to described transmission higher limit, directly transmit described file, if described file size
More than described transmission higher limit, then described file is divided into by multiple subfiles according to described transmission higher limit, and by each height
File and the corresponding division information of each subfile are transmitted one by one, and wherein, the size of described subfile is respectively less than or waits
In described transmission higher limit.
7. sharing files method as claimed in claim 6 is it is characterised in that draw described file according to described transmission higher limit
It is divided into multiple subfiles to include:
Described file is averagely divided into multiple subfiles, and the size of each subfile is respectively less than or is equal to the described transmission upper limit
Value;
Or, described file is divided into multiple subfiles with described transmission higher limit for dividing unit.
8. sharing files method as claimed in claim 7 is it is characterised in that draw described file according to described transmission higher limit
Also include after being divided into multiple subfiles:
Each subfile described is numbered according to stripe sequence, and using corresponding for each subfile numbering as described each
The corresponding division information of subfile.
9. sharing files method as claimed in claim 6 is it is characterised in that draw described file according to described transmission higher limit
Also include before being divided into multiple subfiles:
Prompt the user whether need described file is compressed, if user select described file is compressed, according to
Whether the compress mode that family selects is compressed to described file, and judge the file size after compression more than transmission higher limit;
If the file size after compression is less than or equal to transmission higher limit, directly transmit the file after described compression, if compression
File size afterwards is more than transmission higher limit, then according to described transmission higher limit, the file after described compression is divided into many height
File.
10. the sharing files method as described in claim 6 to 9 any one is it is characterised in that methods described also includes:
After receiving all of subfile, obtain the corresponding division information of each subfile, and according to the division getting
All of subfile is spliced into complete file by information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610933699.6A CN106412317A (en) | 2016-10-31 | 2016-10-31 | File sharing device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610933699.6A CN106412317A (en) | 2016-10-31 | 2016-10-31 | File sharing device and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106412317A true CN106412317A (en) | 2017-02-15 |
Family
ID=58011869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610933699.6A Pending CN106412317A (en) | 2016-10-31 | 2016-10-31 | File sharing device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106412317A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106897587A (en) * | 2017-02-27 | 2017-06-27 | 百度在线网络技术(北京)有限公司 | The method and apparatus of reinforcement application, loading reinforcement application |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055881A1 (en) * | 2001-09-14 | 2003-03-20 | Ngo Kim Cuc | Method and apparatus for transmitting data over a network |
CN101179392A (en) * | 2006-12-12 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system for uploading document |
CN101867617A (en) * | 2010-06-13 | 2010-10-20 | 优视科技有限公司 | File uploading method base on mobile terminal and system and uploading server thereof |
CN104378422A (en) * | 2014-11-13 | 2015-02-25 | 中国联合网络通信有限公司保定市分公司 | Mobile terminal and file transmission method and system thereof |
CN105791245A (en) * | 2014-12-26 | 2016-07-20 | 北京航天测控技术有限公司 | Data sending and receiving method and device |
-
2016
- 2016-10-31 CN CN201610933699.6A patent/CN106412317A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030055881A1 (en) * | 2001-09-14 | 2003-03-20 | Ngo Kim Cuc | Method and apparatus for transmitting data over a network |
CN101179392A (en) * | 2006-12-12 | 2008-05-14 | 腾讯科技(深圳)有限公司 | Method and system for uploading document |
CN101867617A (en) * | 2010-06-13 | 2010-10-20 | 优视科技有限公司 | File uploading method base on mobile terminal and system and uploading server thereof |
CN104378422A (en) * | 2014-11-13 | 2015-02-25 | 中国联合网络通信有限公司保定市分公司 | Mobile terminal and file transmission method and system thereof |
CN105791245A (en) * | 2014-12-26 | 2016-07-20 | 北京航天测控技术有限公司 | Data sending and receiving method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106897587A (en) * | 2017-02-27 | 2017-06-27 | 百度在线网络技术(北京)有限公司 | The method and apparatus of reinforcement application, loading reinforcement application |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105159533A (en) | Mobile terminal and automatic verification code input method thereof | |
CN104809213B (en) | Start the methods, devices and systems of application software client | |
CN105718027A (en) | Management method of background application programs and mobile terminal | |
CN106648369A (en) | Switching device and method for application program | |
CN106095217A (en) | Application sharing apparatus, system and method | |
CN106648811A (en) | Method for starting application of terminal and terminal | |
CN104951229B (en) | Screenshot method and device | |
CN106874097A (en) | The multi-screen display method and device of a kind of terminal screen | |
CN104777982B (en) | Method and device for switching terminal input method | |
CN106249989A (en) | Social networking application program icon aligning method during a kind of sharing contents and mobile terminal | |
CN105812244A (en) | Message display method and terminal | |
CN106527956A (en) | Touch operation identification control method and device | |
CN106534943A (en) | Video playing method and device | |
CN106101455A (en) | Page jump management method, device and terminal | |
CN105263195A (en) | Data transmission device and method | |
CN106534560A (en) | Mobile terminal control device and method | |
CN106446284A (en) | Map loading device and method | |
CN106547565A (en) | A kind of browser exception report method and system | |
CN106603872A (en) | Method for starting application according to association strategy, device and mobile terminal | |
CN106559577A (en) | Mobile terminal and its control method | |
CN107066289A (en) | A kind of method, device and mobile terminal for starting application according to associating policy | |
CN107071161A (en) | The aggregation display method and mobile terminal of icon in a kind of status bar | |
CN106774859A (en) | Mobile terminal and its control method | |
CN106780295A (en) | Image processing method and device | |
CN106454771A (en) | Information sending method and device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |