CN104486434A - Mobile terminal and file upload and download methods of mobile terminal - Google Patents

Mobile terminal and file upload and download methods of mobile terminal Download PDF

Info

Publication number
CN104486434A
CN104486434A CN201410807009.3A CN201410807009A CN104486434A CN 104486434 A CN104486434 A CN 104486434A CN 201410807009 A CN201410807009 A CN 201410807009A CN 104486434 A CN104486434 A CN 104486434A
Authority
CN
China
Prior art keywords
file
upload
specified file
text
mobile terminal
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
Application number
CN201410807009.3A
Other languages
Chinese (zh)
Inventor
许冠中
庞宁
冯斌
赵铭
符曦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Supply Bureau Co Ltd
Original Assignee
Shenzhen Power Supply Bureau Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Supply Bureau Co Ltd filed Critical Shenzhen Power Supply Bureau Co Ltd
Priority to CN201410807009.3A priority Critical patent/CN104486434A/en
Publication of CN104486434A publication Critical patent/CN104486434A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a file upload method of a mobile terminal, which comprises the steps of acquiring basic information of a specified file after the mobile terminal receives an upload instruction of the specified file, transmitting an upload request to a server via a wireless network, reading the specified file according to the basic information after receiving an upload permission instruction fed back by the server, coding the specified file according to a Huffman algorithm, compressing into an upload file after coding the specified file, uploading the upload file to the server for storage, obtaining upload information and an upload progress of the upload file, and submitting the upload information and the upload progress to the server for storage, wherein the basic information comprises a file name and a file path, and the upload information comprises upload time, a file size and a path stored in the server. The problems of overtime, network jam, failure in breakpoint resume and the like on the wireless network can be avoided by implementing the method, and the file transmission efficiency is improved.

Description

A kind of method of mobile terminal file uploading, download and mobile terminal
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of mobile terminal file uploading, the method for download and mobile terminal.
Background technology
Traditional document transmission method, normally transmit based on HTTP agreement, and the encryption and decryption of file is carried out at server end, or by Applet(applet) or OCX(Object Linking and Embedding Control eXtension, object type extension component) etc. plug-in unit, carry out transfer files by FTP agreement.But, carried out the transmission of file by HTTP agreement, especially when the transmitted over wireless networks large files of Bandwidth-Constrained, time-out, network blockage and can not the problem such as breakpoint transmission can be caused; And the transmission of file is carried out by plug-in unit modes such as Applet or OCX, easily load the impact of stability by browser, thus affect the efficiency of file transfer.
Summary of the invention
Technical problem to be solved by this invention is, provides a kind of mobile terminal file uploading, the method for download and mobile terminal, can avoid time-out, network blockage and can not the problem such as breakpoint transmission, and improve the efficiency of file transfer.
In order to solve the problems of the technologies described above, embodiments provide a kind of method of mobile terminal file uploading, described method comprises:
After mobile terminal receives the uploading instructions of specified file, obtain the essential information of described specified file, and send upload request by wireless network to server; Wherein, described essential information comprises filename and file path;
Waiting receive the permission uploading instructions of described server feedback after, read described specified file according to described essential information, and according to Huffman encoding algorithm, described specified file encoded, after described specified file has been encoded, compression be processed into upload file;
Described upload file is uploaded to described server stores by described wireless network.
Wherein, described waiting receive the permission uploading instructions of described server feedback after, read described specified file according to described essential information, and according to Huffman encoding algorithm, described specified file encoded, after described specified file has been encoded, the concrete steps that compression is processed into upload file have comprised:
Waiting receive the permission uploading instructions of described server feedback after, read the data of described specified file according to described essential information, and count the probability that in the data of described reading, each character occurs;
According to the probability that the described each character counted occurs, build Huffman tree, and according to the Huffman tree of described structure, described specified file is encoded, after each character of described specified file is all stored in the mode of ASCII character, obtain coded file;
The Huffman tree of described structure is carried in described coded file;
The described coded file carrying Huffman tree is compressed, produces a text, and the text of described generation is processed, obtain binary file, and using the described binary file obtained as described upload file.
Wherein, described method comprises further:
Described upload file can be carried the mark for identifying compressed file.
Wherein, every eight ASCII character in described text are all processed into the byte in described binary file.
Wherein, described method comprises further:
Obtain information upload and the upload progress of described upload file, and the information upload of described upload file and upload progress are submitted to described server stores; Wherein, the described information upload path that comprises uplink time, file size and be stored in described server
The embodiment of the present invention additionally provides a kind of method that mobile terminal document is downloaded, and described method comprises:
Mobile terminal sends download request by wireless network to server after receiving the download instruction of specified file;
Waiting receive the permission download instruction of described server feedback after, determine the preservation information of the upload file corresponding with described specified file, and store by described upload file that described wireless network is downloaded according to the described preservation information determined; Wherein, described preservation information comprises filename and file path;
Decompress(ion) is carried out in the described upload file stored, and the Huffman tree in the upload file of decompress(ion) described in reading, and after described text being decoded according to Huffman encoding algorithm, obtain the relevant information of described specified file and correspondence thereof, and the relevant information of described specified file is added into described preservation information; Wherein, described relevant information comprises file generated time and file size.
Wherein, described decompress(ion) is carried out in the described upload file stored, and the Huffman tree in the upload file of decompress(ion) described in reading, and after described text being decoded according to Huffman encoding algorithm, obtain the relevant information of described specified file and correspondence thereof, and the relevant information of described specified file be added into the stored concrete steps of described guarantor and comprise:
The described upload file solution stored is pressed into binary file, and described binary file is processed into a text;
Count each byte in described text and number corresponding to each byte thereof, and obtain the Huffman tree in described text; Wherein, described byte stores in the mode of ASCII character;
The Huffman tree got described in traversal, decodes to each byte in described text, obtains described specified file.
Wherein, the byte in described binary file is all processed into corresponding eight ASCII character in described text.
The embodiment of the present invention additionally provides a kind of mobile terminal, and described mobile terminal comprises:
Upload request unit, after receiving the uploading instructions of specified file, obtains the essential information of described specified file, and sends upload request by wireless network to server for mobile terminal; Wherein, described essential information comprises filename and file path;
Compressing file unit, for waiting receive the permission uploading instructions of described server feedback after, read described specified file according to described essential information, and according to Huffman encoding algorithm, described specified file encoded, after described specified file has been encoded, compression has been processed into upload file;
Files passe unit, for uploading described upload file to described server stores by described wireless network.
Wherein, described compressing file unit comprises:
Character probabilities statistical module, for waiting receive the permission uploading instructions of described server feedback after, read the data of described specified file according to described essential information, and count the probability that in the data of described reading, each character occurs;
Coding module, for the probability that each character counted described in basis occurs, build Huffman tree, and according to the Huffman tree of described structure, described specified file is encoded, after each character of described specified file is all stored in the mode of ASCII character, obtain coded file;
Huffman tree carries module, for being carried in described coded file by the Huffman tree of described structure;
Upload file compression module, for compressing the described coded file carrying Huffman tree, produce a text, and the text of described generation is processed, obtain binary file, and using the described binary file obtained as described upload file.
The embodiment of the present invention further provides another kind of mobile terminal, and described mobile terminal comprises:
Download request unit, after receiving the download instruction of specified file, sends download request by wireless network to server for mobile terminal;
File download unit, for waiting receive the permission download instruction of described server feedback after, determine the preservation information of the upload file corresponding with described specified file, and store by described upload file that described wireless network is downloaded according to the described preservation information determined; Wherein, described preservation information comprises filename and file path;
Document analysis unit, for decompress(ion) is carried out in the described upload file stored, and the Huffman tree in the upload file of decompress(ion) described in reading, and after described text being decoded according to Huffman encoding algorithm, obtain the relevant information of described specified file and correspondence thereof, and the relevant information of described specified file is added into described preservation information; Wherein, described relevant information comprises file generated time and file size.
Wherein, described document analysis unit comprises:
Decompression module, for the described upload file solution stored is pressed into binary file, and is processed into a text by described binary file;
Huffman tree acquisition module, for counting each byte in described text and number corresponding to each byte thereof, and obtains the Huffman tree in described text; Wherein, described byte stores in the mode of ASCII character;
File generating module, for the Huffman tree got described in traveling through, decodes to each byte in described text, obtains described specified file.
Implement the embodiment of the present invention, there is following beneficial effect:
1, in embodiments of the present invention, because mobile terminal is communicated with server by http protocol on a wireless network, in upload procedure, adopt Huffman encoding algorithm encode to specified file and compress, in downloading process, adopt Huffman encoding algorithm to carry out decompress(ion) and decoding to specified file, reduce file size when specified file is downloaded, thus avoid by there is time-out, network blockage and can not the phenomenon such as breakpoint transmission during wireless network transmissions large files, improve the efficiency of file transfer;
2, in embodiments of the present invention, due to without the need to adopting the plug-in units such as existing Applet or OCX to carry out transfer files by FTP agreement, thus avoiding the impact loading stability by browser, improve the efficiency of file transfer.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, the accompanying drawing obtaining other according to these accompanying drawings still belongs to category of the present invention.
The flow chart of an embodiment of the method for a kind of mobile terminal file uploading that Fig. 1 provides for the embodiment of the present invention;
The flow chart of an embodiment of the method that Fig. 2 downloads for a kind of mobile terminal document that the embodiment of the present invention provides;
The structural representation of an embodiment of a kind of mobile terminal that Fig. 3 provides for the embodiment of the present invention;
The structural representation of another embodiment of a kind of mobile terminal that Fig. 4 provides for the embodiment of the present invention;
The structural representation of another embodiment of a kind of mobile terminal that Fig. 5 provides for the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail.
As shown in Figure 1, the embodiment of the method for a kind of mobile terminal file uploading provided for the embodiment of the present invention, in this embodiment, described method is applied to the upload process flow process forming the client-side of radio communication with server, specifically comprises:
After step S101, mobile terminal receive the uploading instructions of specified file, obtain the essential information of described specified file, and send upload request by wireless network to server; Wherein, described essential information comprises filename and file path;
Detailed process is, mobile terminal receives after user needs to upload the instruction of specified file, will obtain the filename in path that this specified file stores on the client and this file, and is sent the request of uploading on a wireless network by http protocol to server.As an example, mobile terminal can pass through the direct access services device of http protocol mode on a wireless network, the request of loading listed files page, and specified file is carried in this file original list, thus make server when being verified, issue corresponding loading or uploading instructions to client.
Step S102, waiting receive the permission uploading instructions of described server feedback after, described specified file is read according to described essential information, and according to Huffman encoding algorithm, described specified file is encoded, after described specified file has been encoded, compression has been processed into upload file;
Detailed process is, waiting receive the permission uploading instructions of server feedback after, read the data of described specified file according to essential information, and count the probability that in the data of reading, each character occurs;
According to the probability that each character counted occurs, build Huffman tree, and according to the Huffman tree built, specified file is encoded, after each character of specified file is all stored in the mode of ASCII character, obtain coded file;
The Huffman tree of structure is carried in coded file;
The coded file carrying Huffman tree is compressed, produce a text, and the text produced is processed, every eight ASCII character in text are all processed into the byte in binary file, thus obtain binary file, and using the binary file that obtains as upload file.
It should be noted that for the ease of identifying that upload file is compressed file, therefore can carrying the mark for identifying compressed file in upload file.The permission uploading instructions of server feedback includes but not limited to mode and path etc. that specified file stores at server end.
Step S103, to be uploaded described upload file by described wireless network to described server stores.
For the ease of inquiry and download, described method comprises further:
Obtain information upload and the upload progress of upload file, and the information upload of upload file and upload progress are submitted to server stores; Wherein, the information upload path that comprises uplink time, file size and be stored in server.
As shown in Figure 2, the embodiment of the method that a kind of mobile terminal document provided for the embodiment of the present invention is downloaded, in this embodiment, described method is applied to the download process flow process forming the client-side of radio communication with server, specifically comprises:
Step S201, mobile terminal send download request by wireless network to server after receiving the download instruction of specified file;
Detailed process is, mobile terminal receive user need download specified file instruction after, on a wireless network by http protocol to server send download request.Be understandable that, server has stored the upload file corresponding with this specified file, thus realizes client downloads, decompress(ion) and get this specified file after resolving.
As an example, mobile terminal can pass through the direct access services device of http protocol mode on a wireless network, request is downloaded the upload file corresponding with specified file in the listed files page on this server, thus make server when being verified, issue to client and add download instruction accordingly.
Step S202, waiting receive the permission download instruction of described server feedback after, determine the preservation information of the upload file corresponding with described specified file, and store according to the described preservation information determined the described upload file that described wireless network downloads; Wherein, described preservation information comprises filename and file path;
Detailed process is, after server to be obtained allows download instruction, mobile terminal needs the preservation information providing download file, as filename and the file path of preservation, the upload file corresponding with specified file to this could download, and store the upload file corresponding with specified file of downloading according to the preservation information provided.
Step S203, decompress(ion) is carried out in the described upload file stored, and the Huffman tree in the upload file of decompress(ion) described in reading, and after described text being decoded according to Huffman encoding algorithm, obtain the relevant information of described specified file and correspondence thereof, and the relevant information of described specified file is added into described preservation information; Wherein, described relevant information comprises file generated time and file size.
Detailed process is, the upload file solution stored is pressed into binary file, and binary file is processed into a text; Wherein, the byte in binary file is all processed into corresponding eight ASCII character in text;
Count each byte in text and number corresponding to each byte thereof, and obtain the Huffman tree in text; Wherein, byte stores in the mode of ASCII character;
Travel through the Huffman tree got, each byte in text is decoded, obtains specified file.
As shown in Figure 3, be the embodiment of a kind of mobile terminal that the embodiment of the present invention provides, in this embodiment, described mobile terminal, for uploading client, specifically comprises:
Upload request unit 310, after receiving the uploading instructions of specified file, obtains the essential information of described specified file, and sends upload request by wireless network to server for mobile terminal; Wherein, described essential information comprises filename and file path;
Compressing file unit 320, for waiting receive the permission uploading instructions of described server feedback after, read described specified file according to described essential information, and according to Huffman encoding algorithm, described specified file encoded, after described specified file has been encoded, compression has been processed into upload file;
Files passe unit 330, for uploading described upload file to described server stores by described wireless network.
Wherein, compressing file unit 320 comprises:
Character probabilities statistical module 3201, for waiting receive the permission uploading instructions of described server feedback after, read the data of described specified file according to described essential information, and count the probability that in the data of described reading, each character occurs;
Coding module 3202, for the probability that each character counted described in basis occurs, build Huffman tree, and according to the Huffman tree of described structure, described specified file is encoded, after each character of described specified file is all stored in the mode of ASCII character, obtain coded file;
Huffman tree carries module 3203, for being carried in described coded file by the Huffman tree of described structure;
Upload file compression module 3204, for compressing the described coded file carrying Huffman tree, produce a text, and the text of described generation is processed, obtain binary file, and using the described binary file obtained as described upload file.
As shown in Figure 4, be the another kind of mobile terminal that the embodiment of the present invention provides, in this embodiment, described mobile terminal is download client, specifically comprises:
Download request unit 410, after receiving the download instruction of specified file, sends download request by wireless network to server for mobile terminal;
File download unit 420, for waiting receive the permission download instruction of described server feedback after, determine the preservation information of the upload file corresponding with described specified file, and store by described upload file that described wireless network is downloaded according to the described preservation information determined; Wherein, described preservation information comprises filename and file path;
Document analysis unit 430, for decompress(ion) is carried out in the described upload file stored, and the Huffman tree in the upload file of decompress(ion) described in reading, and after described text being decoded according to Huffman encoding algorithm, obtain the relevant information of described specified file and correspondence thereof, and the relevant information of described specified file is added into described preservation information; Wherein, described relevant information comprises file generated time and file size.
Wherein, described document analysis unit 430 comprises:
Decompression module 4301, for the upload file stored solution is pressed into binary file, and is processed into a text by binary file;
Huffman tree acquisition module 4302, for counting each byte in described text and number corresponding to each byte thereof, and obtains the Huffman tree in described text; Wherein, described byte stores in the mode of ASCII character;
File generating module 4303, for the Huffman tree got described in traveling through, decodes to each byte in described text, obtains described specified file.
As shown in Figure 5, for another mobile terminal that the embodiment of the present invention provides, in this embodiment, this mobile terminal comprises as the device of the files passe in Fig. 3 and the device as the file download in Fig. 4, and concrete details can with reference to the aforementioned description to Fig. 3 and Fig. 4.
Implement the embodiment of the present invention, there is following beneficial effect:
1, in embodiments of the present invention, because mobile terminal is communicated with server by http protocol on a wireless network, in upload procedure, adopt Huffman encoding algorithm encode to specified file and compress, in downloading process, adopt Huffman encoding algorithm to carry out decompress(ion) and decoding to specified file, reduce file size when specified file is downloaded, thus avoid by there is time-out, network blockage and can not the phenomenon such as breakpoint transmission during wireless network transmissions large files, improve the efficiency of file transfer;
2, in embodiments of the present invention, due to without the need to adopting the plug-in units such as existing Applet or OCX to carry out transfer files by FTP agreement, thus avoiding the impact loading stability by browser, improve the efficiency of file transfer.
It should be noted that in said system embodiment, each included system unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (12)

1. a method for mobile terminal file uploading, is characterized in that, described method comprises:
After mobile terminal receives the uploading instructions of specified file, obtain the essential information of described specified file, and send upload request by wireless network to server; Wherein, described essential information comprises filename and file path;
Waiting receive the permission uploading instructions of described server feedback after, read described specified file according to described essential information, and according to Huffman encoding algorithm, described specified file encoded, after described specified file has been encoded, compression be processed into upload file;
Described upload file is uploaded to described server stores by described wireless network.
2. the method for files passe as claimed in claim 1, it is characterized in that, described waiting receive the permission uploading instructions of described server feedback after, described specified file is read according to described essential information, and according to Huffman encoding algorithm, described specified file is encoded, after described specified file has been encoded, the concrete steps that compression is processed into upload file have comprised:
Waiting receive the permission uploading instructions of described server feedback after, read the data of described specified file according to described essential information, and count the probability that in the data of described reading, each character occurs;
According to the probability that the described each character counted occurs, build Huffman tree, and according to the Huffman tree of described structure, described specified file is encoded, after each character of described specified file is all stored in the mode of ASCII character, obtain coded file;
The Huffman tree of described structure is carried in described coded file;
The described coded file carrying Huffman tree is compressed, produces a text, and the text of described generation is processed, obtain binary file, and using the described binary file obtained as described upload file.
3. the method for files passe as claimed in claim 2, it is characterized in that, described method comprises further:
Described upload file can be carried the mark for identifying compressed file.
4. the method for files passe as claimed in claim 2, it is characterized in that, every eight ASCII character in described text are all processed into the byte in described binary file.
5. the method for files passe as claimed in claim 1, it is characterized in that, described method comprises further:
Obtain information upload and the upload progress of described upload file, and the information upload of described upload file and upload progress are submitted to described server stores; Wherein, the described information upload path that comprises uplink time, file size and be stored in described server.
6. a method for mobile terminal document download, it is characterized in that, described method comprises:
Mobile terminal sends download request by wireless network to server after receiving the download instruction of specified file;
Waiting receive the permission download instruction of described server feedback after, determine the preservation information of the upload file corresponding with described specified file, and store by described upload file that described wireless network is downloaded according to the described preservation information determined; Wherein, described preservation information comprises filename and file path;
Decompress(ion) is carried out in the described upload file stored, and the Huffman tree in the upload file of decompress(ion) described in reading, and after described text being decoded according to Huffman encoding algorithm, obtain the relevant information of described specified file and correspondence thereof, and the relevant information of described specified file is added into described preservation information; Wherein, described relevant information comprises file generated time and file size.
7. the method for file download as claimed in claim 6, it is characterized in that, described decompress(ion) is carried out in the described upload file stored, and the Huffman tree in the upload file of decompress(ion) described in reading, and after described text being decoded according to Huffman encoding algorithm, obtain the relevant information of described specified file and correspondence thereof, and the relevant information of described specified file be added into the stored concrete steps of described guarantor and comprise:
The described upload file solution stored is pressed into binary file, and described binary file is processed into a text;
Count each byte in described text and number corresponding to each byte thereof, and obtain the Huffman tree in described text; Wherein, described byte stores in the mode of ASCII character;
The Huffman tree got described in traversal, decodes to each byte in described text, obtains described specified file.
8. the method for file download as claimed in claim 7, it is characterized in that, the byte in described binary file is all processed into corresponding eight ASCII character in described text.
9. a mobile terminal, is characterized in that, described mobile terminal comprises:
Upload request unit, after receiving the uploading instructions of specified file, obtains the essential information of described specified file, and sends upload request by wireless network to server for mobile terminal; Wherein, described essential information comprises filename and file path;
Compressing file unit, for waiting receive the permission uploading instructions of described server feedback after, read described specified file according to described essential information, and according to Huffman encoding algorithm, described specified file encoded, after described specified file has been encoded, compression has been processed into upload file;
Files passe unit, for uploading described upload file to described server stores by described wireless network.
10. mobile terminal as claimed in claim 9, it is characterized in that, described compressing file unit comprises:
Character probabilities statistical module, for waiting receive the permission uploading instructions of described server feedback after, read the data of described specified file according to described essential information, and count the probability that in the data of described reading, each character occurs;
Coding module, for the probability that each character counted described in basis occurs, build Huffman tree, and according to the Huffman tree of described structure, described specified file is encoded, after each character of described specified file is all stored in the mode of ASCII character, obtain coded file;
Huffman tree carries module, for being carried in described coded file by the Huffman tree of described structure;
Upload file compression module, for compressing the described coded file carrying Huffman tree, produce a text, and the text of described generation is processed, obtain binary file, and using the described binary file obtained as described upload file.
11. 1 kinds of mobile terminals, is characterized in that, described mobile terminal comprises:
Download request unit, after receiving the download instruction of specified file, sends download request by wireless network to server for mobile terminal;
File download unit, for waiting receive the permission download instruction of described server feedback after, determine the preservation information of the upload file corresponding with described specified file, and store by described upload file that described wireless network is downloaded according to the described preservation information determined; Wherein, described preservation information comprises filename and file path;
Document analysis unit, for decompress(ion) is carried out in the described upload file stored, and the Huffman tree in the upload file of decompress(ion) described in reading, and after described text being decoded according to Huffman encoding algorithm, obtain the relevant information of described specified file and correspondence thereof, and the relevant information of described specified file is added into described preservation information; Wherein, described relevant information comprises file generated time and file size.
The device of 12. file download as claimed in claim 11, it is characterized in that, described document analysis unit comprises:
Decompression module, for the described upload file solution stored is pressed into binary file, and is processed into a text by described binary file;
Huffman tree acquisition module, for counting each byte in described text and number corresponding to each byte thereof, and obtains the Huffman tree in described text; Wherein, described byte stores in the mode of ASCII character;
File generating module, for the Huffman tree got described in traveling through, decodes to each byte in described text, obtains described specified file.
CN201410807009.3A 2014-12-23 2014-12-23 Mobile terminal and file upload and download methods of mobile terminal Pending CN104486434A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410807009.3A CN104486434A (en) 2014-12-23 2014-12-23 Mobile terminal and file upload and download methods of mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410807009.3A CN104486434A (en) 2014-12-23 2014-12-23 Mobile terminal and file upload and download methods of mobile terminal

Publications (1)

Publication Number Publication Date
CN104486434A true CN104486434A (en) 2015-04-01

Family

ID=52760938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410807009.3A Pending CN104486434A (en) 2014-12-23 2014-12-23 Mobile terminal and file upload and download methods of mobile terminal

Country Status (1)

Country Link
CN (1) CN104486434A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306523A (en) * 2015-08-17 2016-02-03 成都飞机设计研究所 Method for sending file from browser to server
CN106547650A (en) * 2016-10-25 2017-03-29 广东欧珀移动通信有限公司 The backup method of data, apparatus and system
CN107194975A (en) * 2017-02-09 2017-09-22 北京诸葛找房信息技术有限公司 The method for improving the speed of mobile phone app download pictures
CN107291935A (en) * 2017-07-04 2017-10-24 东北大学 The CPIR V arest neighbors privacy protection enquiring methods encoded based on Spark and Huffman
CN108449607A (en) * 2018-01-18 2018-08-24 上海宝信软件股份有限公司 File compliance inspection method and system
CN108984560A (en) * 2017-06-01 2018-12-11 杭州海康威视数字技术股份有限公司 File memory method and device
CN109922142A (en) * 2019-02-21 2019-06-21 阿里巴巴集团控股有限公司 A kind of document down loading method, apparatus and system
CN110134628A (en) * 2019-05-17 2019-08-16 北京百度网讯科技有限公司 Method for message transmission, device, equipment and storage medium
CN111522778A (en) * 2020-04-27 2020-08-11 广州大学 File migration method
CN112559462A (en) * 2020-12-14 2021-03-26 深圳供电局有限公司 Data compression method and device, computer equipment and storage medium
CN114221950A (en) * 2020-09-03 2022-03-22 华为技术有限公司 Method for uploading configuration file, method and device for downloading configuration file

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685332A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 File transfer method, client, server and system
CN103702133A (en) * 2013-12-19 2014-04-02 Tcl集团股份有限公司 Image compression display method and image compression display device
CN104123327A (en) * 2013-04-29 2014-10-29 鸿富锦精密工业(深圳)有限公司 File server pressure sharing system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685332A (en) * 2012-08-31 2014-03-26 腾讯科技(深圳)有限公司 File transfer method, client, server and system
CN104123327A (en) * 2013-04-29 2014-10-29 鸿富锦精密工业(深圳)有限公司 File server pressure sharing system and method
CN103702133A (en) * 2013-12-19 2014-04-02 Tcl集团股份有限公司 Image compression display method and image compression display device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶倩等: ""浅析数据压缩技术"", 《延安大学学报(自然科学版)》 *

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306523A (en) * 2015-08-17 2016-02-03 成都飞机设计研究所 Method for sending file from browser to server
CN106547650A (en) * 2016-10-25 2017-03-29 广东欧珀移动通信有限公司 The backup method of data, apparatus and system
CN107194975A (en) * 2017-02-09 2017-09-22 北京诸葛找房信息技术有限公司 The method for improving the speed of mobile phone app download pictures
CN108984560B (en) * 2017-06-01 2021-06-11 杭州海康威视数字技术股份有限公司 File storage method and device
CN108984560A (en) * 2017-06-01 2018-12-11 杭州海康威视数字技术股份有限公司 File memory method and device
CN107291935A (en) * 2017-07-04 2017-10-24 东北大学 The CPIR V arest neighbors privacy protection enquiring methods encoded based on Spark and Huffman
CN107291935B (en) * 2017-07-04 2020-09-29 东北大学 Spark and Huffman coding based CPIR-V nearest neighbor privacy protection query method
CN108449607B (en) * 2018-01-18 2020-06-12 上海宝信软件股份有限公司 File compliance checking method and system
CN108449607A (en) * 2018-01-18 2018-08-24 上海宝信软件股份有限公司 File compliance inspection method and system
CN109922142A (en) * 2019-02-21 2019-06-21 阿里巴巴集团控股有限公司 A kind of document down loading method, apparatus and system
CN109922142B (en) * 2019-02-21 2022-04-19 创新先进技术有限公司 File downloading method, device and system
CN110134628A (en) * 2019-05-17 2019-08-16 北京百度网讯科技有限公司 Method for message transmission, device, equipment and storage medium
CN110134628B (en) * 2019-05-17 2021-02-02 北京百度网讯科技有限公司 Message transmission method, device, equipment and storage medium
CN111522778A (en) * 2020-04-27 2020-08-11 广州大学 File migration method
CN111522778B (en) * 2020-04-27 2022-04-19 广州大学 File migration method
CN114221950A (en) * 2020-09-03 2022-03-22 华为技术有限公司 Method for uploading configuration file, method and device for downloading configuration file
CN112559462A (en) * 2020-12-14 2021-03-26 深圳供电局有限公司 Data compression method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104486434A (en) Mobile terminal and file upload and download methods of mobile terminal
CN108647230B (en) Distributed storage method, electronic device, and storage medium
US20170155402A1 (en) Encoder, decoder and method
CN106815875B (en) Method and device for encoding and decoding information bitmap
US7594154B2 (en) Encoding and decoding modules with forward error correction
CN111262876A (en) Data processing method, device and equipment based on block chain and storage medium
CN103873863A (en) Encoder, decoder and methods of encoding and decoding
KR20160123302A (en) Devices and methods of source-encoding and decoding of data
CN112165331A (en) Data compression method and device, data decompression method and device, storage medium and electronic equipment
CN105659519A (en) Extensible media format system and methods of use
CN106254336A (en) A kind of document transmission method based on File Mapping encryption
CN103532984A (en) Data transmission method, device and system of websocket protocol
CN104202411A (en) File transfer method and server
CN106776663B (en) Audio file compression method and device
TW201312963A (en) Methods and apparatus for providing linear erasure codes
CN108737353B (en) Data encryption method and device based on data analysis system
CN104272774A (en) Systems and methods for processing encoded data streams
US20110202509A1 (en) Efficient extraction and compression of data
CN104123244A (en) USB redirection system and method
CN111371963B (en) Image processing method and apparatus, storage medium, and electronic device
CN111064976B (en) Method for sending live broadcast information and server
CN113704206B (en) Metadata processing method and device, electronic equipment and storage medium
CN103906007A (en) Multimedia-message forwarding method and device
CN114095037B (en) Application program updating method, updating data compression method, device and equipment
KR101518303B1 (en) Program update method, server and client apparatus for updating program

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: 20150401

RJ01 Rejection of invention patent application after publication