CN104917637A - File sharing method and system - Google Patents
File sharing method and system Download PDFInfo
- Publication number
- CN104917637A CN104917637A CN201510304714.6A CN201510304714A CN104917637A CN 104917637 A CN104917637 A CN 104917637A CN 201510304714 A CN201510304714 A CN 201510304714A CN 104917637 A CN104917637 A CN 104917637A
- Authority
- CN
- China
- Prior art keywords
- file
- equipment
- numbering
- page file
- quick response
- 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
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a file sharing method, which comprises the steps of: 1, splitting a file into a continuous page file, and adding serial numbers on the continuous page file; 2, generating two-dimension codes containing content and the serial numbers of the continuous page file, and displaying the two-dimension codes on sharing equipment; 3, reading the two-dimension codes via receiving equipment, and decoding the two-dimension codes to obtain the content and the serial number of each single page file; 4, switching and displaying the two-dimension code containing the content and the serial number of the next page through the sharing equipment; 5, and returning to and executing the step 2 till the last page of the continuous page file is read. Through the method, the file sharing method and a file sharing system can realize the transmission of files without a network and mobile media.
Description
Technical field
The present invention relates to file transfer technology field, especially relate to a kind of method and system of sharing files.
Background technology
At present, file transfer realizes by various ways, as the on-line normalization by network, by move media, as " the physics carrying " of portable hard drive etc.
And the mode of current file transfer still needs to rely on as the medium such as network, portable hard drive, in some cases .., as without network, without under the condition of move media, file transfer cannot realize.
The institute's existing patent that retrieves (application number: 200710126046, the applying date: on June 29th, 2007) disclose a kind of method realizing file transfer, its method needs equipment to communicate with server, thus obtaining required file from server, its technical method is also depend on medium or network.
Summary of the invention
Technical problem to be solved by this invention is: the method and system providing a kind of sharing files, realizes without network, without under the condition of move media, the transmission of file.
In order to solve the problems of the technologies described above, the technical solution used in the present invention is: a kind of method providing sharing files, comprising:
Split described file and become continuous page file, and increase numbering on described continuous page file;
Generate and comprise the content of continuous page file and the Quick Response Code of numbering, and show sharing on equipment;
Receiving equipment reads described Quick Response Code, and decodes, and obtains content and the numbering thereof of single page file;
Share the Quick Response Code that equipment switches the lower one page content of display and numbering;
Return and perform step " generation comprises the content of continuous page file and the Quick Response Code of numbering, and shows sharing on equipment ", until read the last page of described continuous page file.
Wherein, receiving equipment reads described Quick Response Code, and decodes, and after obtaining the content of single page file and the step of numbering thereof, also comprises:
Receiving equipment to described share equipment send feedback information, described in share equipment according to described feedback information, confirm that described Quick Response Code reads successfully.
Wherein, after reading the step of the last page of described continuous page file, also comprise:
Share the end mark of equipment display file transmission;
Receiving equipment reads described end mark, automatically stops reading described Quick Response Code.
Wherein, receiving equipment reads described end mark, after automatically stopping the step of the described Quick Response Code of reading, also comprises:
Receiving equipment shows the numbering of continuous page file, merges the content of described continuous page file according to described numbering.
Wherein, split described file and become continuous page file, and increase the step of numbering on described continuous page file before, also comprise:
Base91 coding is carried out to file.
Wherein, receiving equipment shows the numbering of continuous page file, after merging the step of the content of described continuous page file, also comprises according to described numbering:
Merge the base91 coding of continuous page file, and resolve base91 coding, obtain the file shared.
Wherein, splits described file and become continuous page file, and the step increasing numbering on described continuous page file comprises:
Be one page by 800 bytes, split described file and become continuous page file;
The numbering of 10 bytes is increased in the beginning of described continuous page file.
Wherein, receiving equipment to described share equipment send feedback information, described in share equipment according to described feedback information, confirm that described Quick Response Code reads successful step and is specially:
Receiving equipment calls rearmounted LED photoflash lamp, to the feedback information sharing equipment and send luminance signal;
Share equipment calls induction module, judge the mean flow rate change of LED photoflash lamp, confirm that described Quick Response Code reads successfully.
For solving the problem, the present invention also provides a kind of system of sharing files, comprising: receiving equipment, share equipment; Wherein,
Described equipment of sharing for becoming continuous page file to fractionation file, and increases numbering on described continuous page file; Generate and comprise the content of continuous page file and the Quick Response Code of numbering, and show sharing on equipment;
Described receiving equipment for reading described Quick Response Code, and is decoded, and obtains content and the numbering thereof of single page file;
Share the Quick Response Code that equipment switches the lower one page content of display and numbering;
Return and perform step " generation comprises the content of single page file and the Quick Response Code of numbering, and shows sharing on equipment ", until read the last page of described continuous page file;
Receiving equipment to described share equipment send feedback information, described in share equipment according to described feedback information, confirm that described Quick Response Code reads successfully.
Wherein, described receiving equipment comprises scan module and LED module; Described equipment of sharing comprises two-dimensional code generation module and induction module.
Beneficial effect of the present invention is: become continuous page file by splitting described file, and increases numbering on described continuous page file; Generate corresponding Quick Response Code, and show sharing on equipment; Receiving equipment reads described Quick Response Code, and decodes, and obtains content and the numbering thereof of single page file; Share the Quick Response Code that equipment switches the lower one page content of display and numbering; Return and perform step " generation comprises the content of continuous page file and the Quick Response Code of numbering, and shows sharing on equipment ", until read the last page of described continuous page file.The present invention can realize without network, without under the condition of move media, the transmission of file.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the inventive method embodiment one;
Fig. 2 is the schematic flow sheet of the inventive method embodiment two;
Fig. 3 is the structured flowchart of present system embodiment three;
Fig. 4 is the structured flowchart of present system embodiment four.
Embodiment
By describing technology contents of the present invention in detail, realized object and effect, accompanying drawing is coordinated to be explained below in conjunction with execution mode.
The design of most critical of the present invention is: encoded by file base91, after coding, is numbered paging transmission by several Quick Response Codes.File, by the Quick Response Code of reception is carried out base91 decoding, according to numbering, re-assemblies by recipient.
Please refer to Fig. 1, the embodiment of the present invention one provides a kind of method of sharing files, comprises the steps:
S1: split described file and become continuous page file, and numbering is increased on described continuous page file;
S2: generate and comprise the content of single page file and the Quick Response Code of numbering, and show sharing on equipment;
S3: receiving equipment reads described Quick Response Code, and decodes, obtains content and the numbering thereof of single page file;
S4: share the Quick Response Code that equipment switches the lower one page content of display and numbering;
S5: return and perform step " generation comprises the content of single page file and the Quick Response Code of numbering, and shows sharing on equipment ", until read the last page of described continuous page file.
Be different from prior art, the present invention becomes continuous page file by splitting file, and increases numbering on described continuous page file; Generate corresponding Quick Response Code, and show sharing on equipment; Receiving equipment reads described Quick Response Code, and decodes, and obtains content and the numbering thereof of single page file; Share the Quick Response Code that equipment switches the lower one page content of display and numbering; Return and perform step " generation comprises the content of continuous page file and the Quick Response Code of numbering, and shows sharing on equipment ", until read the last page of described continuous page file.The present invention can realize without network, without under the condition of move media, the transmission of file.
Wherein, as shown in Figure 2, on the basis of embodiment one, the embodiment of the present invention two after step s 3, also comprises:
S31: receiving equipment to described share equipment send feedback information, described in share equipment according to described feedback information, confirm that described Quick Response Code reads successfully.
Particularly, following steps are performed:
S311: receiving equipment calls rearmounted LED photoflash lamp, to the feedback information sharing equipment and send luminance signal;
S312: share equipment calls induction module, judges the mean flow rate change of LED photoflash lamp, confirms that described Quick Response Code reads successfully.
As sent light by LED photoflash lamp in the terminal being loaded with android system, share the change of equipment by inductive light intensity, whether the Quick Response Code shown by judgement has been read successfully.
Then perform step S4 after success, again obtain the Quick Response Code of lower one page.
Wherein, after S5 step, also comprise:
S51: the end mark sharing equipment display file transmission;
S52: receiving equipment reads described end mark, stops reading described Quick Response Code automatically.
In embodiments of the present invention, when reading the last page of continuous page, in the end one page can add and terminating mark, this terminates to identify and can be Quick Response Code or other can be received the form of recognition of devices.Such receiving equipment after this terminates mark in reading, just confirms to read to terminate, will automatically quit work, easy to use, can save energy again.
Wherein, after S52 step, also comprise:
S53: receiving equipment shows the numbering of continuous page file, merges the content of described continuous page file according to described numbering.
After stopping read operation, receiving equipment sorts to received whole page files continuously and is merged into a file.
Wherein, before S1 step, also comprise:
S0: base91 coding is carried out to file.
Wherein, after S53 step, also comprise:
S54: the base91 coding merging continuous page file, and resolve base91 coding, obtain the file shared.
All use BasE91 code speech to the coding of original document and to the decoding of continuous page file in embodiments of the invention, this language is a kind of coded system binary file being converted into character, it is more more succinct than the conversion character string of base64, can be compressed to the ratio of 85.7% ~ 92.3%.
Wherein, S1 step is specially:
S11: be one page by 800 bytes, splits described file and becomes continuous page file;
S12: the numbering increasing by 10 bytes in the beginning of described continuous page file.
Wherein, because the transmission information amount of Quick Response Code is limited, Quick Response Code one is large general with current mobile phone camera pixel, once can only identify 800 characters, so the embodiment of the present invention needs to split the original document that will share become multiple fragment.If improve the pixel of receiving equipment, then can by 1000 bytes, even more byte is that one page splits.
From foregoing description, beneficial effect of the present invention is: in the transmitting procedure of file, realize limit in the embodiment of the present invention two generate the reading of Quick Response Code limit, be read in one page content simultaneously and terminated, the Quick Response Code just starting lower one page content generates, therefore when practical operation, error rate is low, sorts tightr simultaneously.Convenient when reading the continuous page content of full, be merged into a file.Therefore more convenient in operation, simultaneously by receiving equipment and share the hardware that equipment carries, as camera, photoflash lamp etc. realize the automatic transmission of file.
As shown in Figure 3, the embodiment of the present invention three also provides a kind of system 100 of sharing files, comprising: receiving equipment 110, share equipment 120; Wherein,
Described equipment 120 of sharing becomes continuous page file for splitting file, and increases numbering on described continuous page file; Generate and comprise the content of continuous page file and the Quick Response Code of numbering, and sharing display on equipment 120;
Described receiving equipment 110 for reading described Quick Response Code, and is decoded, and obtains content and the numbering thereof of single page file;
Share the Quick Response Code that equipment 120 switches the lower one page content of display and numbering;
Return and perform step " generation comprises the content of single page file and the Quick Response Code of numbering, and shows sharing on equipment ", until receiving equipment 110 reads the last page of described continuous page file;
Receiving equipment 110 sends feedback information to described equipment 120 of sharing, described in share equipment 120 according to described feedback information, confirm that described Quick Response Code reads successfully.
Wherein, as shown in Figure 4, receiving equipment 110 described in the embodiment of the present invention four comprises scan module 111 and LED module 112; Described equipment 120 of sharing comprises two-dimensional code generation module 121 and induction module 122.
The foregoing is only embodiments of the invention; not thereby the scope of the claims of the present invention is limited; every equivalents utilizing specification of the present invention and accompanying drawing content to do, or be directly or indirectly used in relevant technical field, be all in like manner included in scope of patent protection of the present invention.
Claims (10)
1. a method for sharing files, is characterized in that, comprising:
Split described file and become continuous page file, and increase numbering on described continuous page file;
Generate and comprise the content of single page file and the Quick Response Code of numbering, and show sharing on equipment;
Receiving equipment reads described Quick Response Code, and decodes, and obtains content and the numbering thereof of single page file;
Share the Quick Response Code that equipment switches the lower one page content of display and numbering;
Return and perform step " generation comprises the content of single page file and the Quick Response Code of numbering, and shows sharing on equipment ", until read the last page of described continuous page file.
2. the method for sharing files according to claim 1, it is characterized in that, receiving equipment reads described Quick Response Code, and decodes, and after obtaining the content of single page file and the step of numbering thereof, also comprises:
Receiving equipment to described share equipment send feedback information, described in share equipment according to described feedback information, confirm that described Quick Response Code reads successfully.
3. the method for sharing files according to claim 2, is characterized in that, receiving equipment sends feedback information to described equipment of sharing, described in share equipment according to described feedback information, confirm that described Quick Response Code reads successful step and is specially:
Receiving equipment calls rearmounted LED photoflash lamp, to the feedback information sharing equipment and send luminance signal;
Share equipment calls induction module, judge the mean flow rate change of LED photoflash lamp, confirm that described Quick Response Code reads successfully.
4. the method for sharing files according to claim 1, is characterized in that, after reading the step of the last page of described continuous page file, also comprise:
Share the end mark of equipment display file transmission;
Receiving equipment reads described end mark, automatically stops reading described Quick Response Code.
5. the method for sharing files according to claim 4, is characterized in that, receiving equipment reads described ends mark, after automatically stopping the step of the described Quick Response Code of reading, also comprises:
Receiving equipment shows the numbering of continuous page file, merges the content of described continuous page file according to described numbering.
6. the method for sharing files according to claim 1, is characterized in that, split described file and become continuous page file, and increase the step of numbering on described continuous page file before, also comprise:
Base91 coding is carried out to file.
7. the method for sharing files according to claim 4, it is characterized in that, receiving equipment shows the numbering of continuous page file, after merging the step of the content of described continuous page file, also comprises according to described numbering:
Merge the base91 coding of continuous page file, and resolve base91 coding, obtain the file shared.
8. the method for sharing files according to claim 1, it is characterized in that, split described file and become continuous page file, and the step increasing numbering on described continuous page file comprises:
Be one page by 800 bytes, split described file and become continuous page file;
The numbering of 10 bytes is increased in the beginning of described continuous page file.
9. a system for sharing files, is characterized in that, comprising: receiving equipment, share equipment; Wherein,
Described equipment of sharing for becoming continuous page file to fractionation file, and increases numbering on described continuous page file; Generate and comprise the content of continuous page file and the Quick Response Code of numbering, and show sharing on equipment;
Described receiving equipment for reading described Quick Response Code, and is decoded, and obtains content and the numbering thereof of single page file;
Share the Quick Response Code that equipment switches the lower one page content of display and numbering;
Return and perform step " generation comprises the content of single page file and the Quick Response Code of numbering, and shows sharing on equipment ", until receiving equipment reads the last page of described continuous page file;
Receiving equipment to described share equipment send feedback information, described in share equipment according to described feedback information, confirm that described Quick Response Code reads successfully.
10. the system of sharing files according to claim 9, it is characterized in that, described receiving equipment comprises scan module and LED module; Described equipment of sharing comprises two-dimensional code generation module and induction module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510304714.6A CN104917637A (en) | 2015-06-05 | 2015-06-05 | File sharing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510304714.6A CN104917637A (en) | 2015-06-05 | 2015-06-05 | File sharing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104917637A true CN104917637A (en) | 2015-09-16 |
Family
ID=54086365
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510304714.6A Pending CN104917637A (en) | 2015-06-05 | 2015-06-05 | File sharing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104917637A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106101181A (en) * | 2016-05-30 | 2016-11-09 | 深圳市高为通信技术有限公司 | A kind of mobile intelligent terminal information sharing synchronous method |
US11809931B2 (en) | 2019-02-28 | 2023-11-07 | UNI2K Information Technology Co., Ltd. | QR code extension method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103347097A (en) * | 2013-07-26 | 2013-10-09 | 国家电网公司 | Method and system for file transmission |
CN103390056A (en) * | 2013-07-26 | 2013-11-13 | 国家电网公司 | File transmission method and system |
CN104580315A (en) * | 2013-10-24 | 2015-04-29 | 北京慧眼智行科技有限公司 | Resource sharing method and system |
-
2015
- 2015-06-05 CN CN201510304714.6A patent/CN104917637A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103347097A (en) * | 2013-07-26 | 2013-10-09 | 国家电网公司 | Method and system for file transmission |
CN103390056A (en) * | 2013-07-26 | 2013-11-13 | 国家电网公司 | File transmission method and system |
CN104580315A (en) * | 2013-10-24 | 2015-04-29 | 北京慧眼智行科技有限公司 | Resource sharing method and system |
Non-Patent Citations (1)
Title |
---|
何大可: "《Internet的一种高效数据传输编码-Base91》", 《学术动态》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106101181A (en) * | 2016-05-30 | 2016-11-09 | 深圳市高为通信技术有限公司 | A kind of mobile intelligent terminal information sharing synchronous method |
US11809931B2 (en) | 2019-02-28 | 2023-11-07 | UNI2K Information Technology Co., Ltd. | QR code extension method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101655836B (en) | Embedded type terminal for converting UTF-8 and GB2312 code, and UTF-8 and GB2312 code conversion method | |
CN107919943B (en) | Method and device for coding and decoding binary data | |
EP2765487A3 (en) | Input method for optimizing digitize operation code for the world characters information and information processing system thereof | |
CN103778452B (en) | A kind of method and system of the Quick Response Code coding and decoding based on mobile phone | |
CN101459492A (en) | Data transmission method and system, data sending terminal | |
CN102724668A (en) | Method and system for sharing WIFI (wireless fidelity) network information on basis of two-dimensional code graphs | |
EP2355471B1 (en) | Apparatus and method for transmitting handwriting animation message | |
CN104199927A (en) | Data processing method and device | |
CN112035706A (en) | Encoding method, decoding method, computer device, and readable storage medium | |
CN103248951A (en) | System and method for adding scrolling information into video | |
CN104811747A (en) | Video transcode method and device | |
CN104917637A (en) | File sharing method and system | |
KR102138892B1 (en) | Apparatus for compressing data losslessly and method thereof | |
EP2442256B1 (en) | Method of encoding and decoding text on a matrix code symbol | |
CN104360988A (en) | Method and device for identifying coding mode of Chinese characters | |
CN103826138A (en) | System and method for realizing cloud transcoding on various code rates and encoding formats of audio and video contents | |
CN102761543A (en) | Method and device for realizing SIP (session initiation protocol) universal encoding and decoding | |
CN102185612A (en) | Run-length coding and decoding methods and devices | |
CN102968609B (en) | Bar code reading equipment setting device based on one-dimensional Code 128 bar codes | |
CN103595415A (en) | Coding method, decoding method, coding system and decoding system | |
CN106874979B (en) | Bar code processing, displaying and reading method and device | |
WO2015196717A1 (en) | Image decoding method and apparatus | |
CN105099571B (en) | A kind of audio communication method | |
CN103092922A (en) | Post-coding automatic decoding method aiming at uniform resource locator (URL) comprising special characters | |
CN111615242B (en) | Lamp, controller and lamp dimming method |
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 |
Application publication date: 20150916 |
|
RJ01 | Rejection of invention patent application after publication |