[go: up one dir, main page]

CN103020192B - Method and system for browsing files - Google Patents

Method and system for browsing files Download PDF

Info

Publication number
CN103020192B
CN103020192B CN201210510956.7A CN201210510956A CN103020192B CN 103020192 B CN103020192 B CN 103020192B CN 201210510956 A CN201210510956 A CN 201210510956A CN 103020192 B CN103020192 B CN 103020192B
Authority
CN
China
Prior art keywords
file
format
communication terminal
module
converted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210510956.7A
Other languages
Chinese (zh)
Other versions
CN103020192A (en
Inventor
彭鼎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yangjiang Zhengsheng Software Technology Co ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Dongguan Yulong Telecommunication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yulong Computer Telecommunication Scientific Shenzhen Co Ltd, Dongguan Yulong Telecommunication Technology Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201210510956.7A priority Critical patent/CN103020192B/en
Publication of CN103020192A publication Critical patent/CN103020192A/en
Application granted granted Critical
Publication of CN103020192B publication Critical patent/CN103020192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

本发明适用于通信领域,提供了一种浏览文件的方法及系统。所述方法包括:接收通信终端发送的浏览文件的请求;对文件进行解析,并对文件的格式进行转换;将转换后的文件发送至通信终端。本发明减少了浏览文件的网络流量和时间、不会导致网络拥塞、且对通信终端所支持的文件格式没有要求。

The present invention is applicable to the field of communications and provides a method and system for browsing files. The method comprises: receiving a request for browsing files sent by a communication terminal; parsing the file and converting the format of the file; and sending the converted file to the communication terminal. The present invention reduces the network traffic and time for browsing files, does not cause network congestion, and has no requirements for the file formats supported by the communication terminal.

Description

一种浏览文件的方法及系统Method and system for browsing files

技术领域technical field

本发明属于通信领域,尤其涉及一种浏览文件的方法及系统。The invention belongs to the communication field, in particular to a method and system for browsing files.

背景技术Background technique

现有技术浏览网络侧文件都是通过网络下载文件,然后通过通信终端浏览文件的内容。然而,通常采用网络办公的公司的文件具有一定的时效性,只有规定的时间段内才能被下载,因此导致同一时间段内,下载该文件的人比较多,而且,由于只有整个文件下载完毕才能浏览文件的内容,因此导致网络拥塞,且比较耗网络流量也比较耗时。另外,由于通过通信终端浏览文件,因此要求通信终端必须支持该文件的文件格式。综上所述,现有技术由于浏览网络侧文件都是通过网络下载文件,然后通过通信终端浏览文件的内容,因此导致网络拥塞、比较耗网络流量也比较耗时、且要求通信终端必须支持该文件的文件格式。In the prior art, when browsing files on the network side, the file is downloaded through the network, and then the content of the file is browsed through the communication terminal. However, the files of companies that usually use the network office have certain timeliness and can only be downloaded within a specified time period. Therefore, in the same time period, there are more people who download the file. Browsing the content of the file, thus causing network congestion, consumes more network traffic and is more time-consuming. In addition, since the file is browsed through the communication terminal, it is required that the communication terminal must support the file format of the file. To sum up, in the prior art, because the files on the network side are browsed through the network, the files are downloaded through the communication terminal, and then the content of the file is browsed through the communication terminal, which leads to network congestion, consumes more network traffic and time, and requires the communication terminal to support this method. The file format of the file.

发明内容Contents of the invention

本发明实施例的目的在于提供一种浏览文件的方法,旨在解决现有技术由于浏览文件都是通过网络下载文件,然后通过通信终端浏览文件的内容,因此导致网络拥塞、比较耗网络流量也比较耗时、且要求通信终端必须支持该文件的文件格式的问题。The purpose of the embodiments of the present invention is to provide a method for browsing files, which aims to solve the problem of network congestion and network traffic consumption in the prior art because files are downloaded through the network and then browsed through the communication terminal. It is time-consuming and requires the communication terminal to support the file format of the file.

本发明实施例是这样实现的,一种浏览文件的方法,所述方法包括:The embodiment of the present invention is achieved in this way, a method for browsing files, the method comprising:

接收通信终端发送的浏览文件的请求;Receive the file browsing request sent by the communication terminal;

对文件进行解析,并对文件的格式进行转换;Analyze the file and convert the format of the file;

将转换后的文件发送至通信终端。Send the converted file to the communication terminal.

本发明实施例的另一目的在于提供一种浏览文件的系统,所述系统包括:Another object of the embodiments of the present invention is to provide a system for browsing files, the system comprising:

请求接收模块,用于接收通信终端发送的浏览文件的请求;A request receiving module, configured to receive a file browsing request sent by the communication terminal;

解析模块,用于对文件进行解析,并对文件的格式进行转换;和A parsing module for parsing the file and converting the format of the file; and

发送模块,用于将转换后的文件发送至通信终端。The sending module is used to send the converted file to the communication terminal.

在本发明实施例中,由于对文件进行解析,并对文件的格式进行转换,因此转换后的文件大小比原文件小很多,因而减少了浏览文件的网络流量和时间;且由于将解析后的文件发送至通信终端进行显示,即不需要下载至通信终端,因此不会导致网络拥塞。In the embodiment of the present invention, since the file is parsed and the format of the file is converted, the size of the converted file is much smaller than the original file, thus reducing the network traffic and time for browsing the file; and because the parsed The file is sent to the communication terminal for display, that is, it does not need to be downloaded to the communication terminal, so it will not cause network congestion.

附图说明Description of drawings

图1是本发明实施例一提供的浏览文件的方法的流程图。FIG. 1 is a flowchart of a method for browsing files provided by Embodiment 1 of the present invention.

图2是本发明实施例二提供的浏览文件的系统的功能模块框图。Fig. 2 is a block diagram of functional modules of the file browsing system provided by Embodiment 2 of the present invention.

具体实施方式detailed description

为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and beneficial effects of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.

实施例一:Embodiment one:

请参阅图1,本发明实施例一提供的浏览文件的方法包括以下步骤:Referring to Fig. 1, the method for browsing files provided by Embodiment 1 of the present invention includes the following steps:

S101、接收通信终端发送的浏览文件的请求;S101. Receive a file browsing request sent by the communication terminal;

在本发明实施例一中,步骤S101之后,所述方法还可以包括以下步骤:In Embodiment 1 of the present invention, after step S101, the method may further include the following steps:

判断所述文件是否已经被解析过,如果是,则将存储在服务器的转换后的文件发送至通信终端,否则执行步骤S102;Determine whether the file has been parsed, if yes, send the converted file stored in the server to the communication terminal, otherwise execute step S102;

S102、对文件进行解析,并对文件的格式进行转换;S102, analyzing the file, and converting the format of the file;

步骤S102具体包括以下步骤:Step S102 specifically includes the following steps:

分析文件的格式,所述格式包括文档和图片;Analyze the format of the file, which includes documents and pictures;

如果文件的格式为文档,则将文件转换成xml文件;如果文件的格式为图片,则将文件转换成png格式文件;If the format of the file is a document, convert the file into an xml file; if the format of the file is a picture, convert the file into a png format file;

步骤S102具体也可以包括以下步骤:Step S102 may specifically include the following steps:

分析所述通信终端发送的浏览文件的请求中有关文件格式的信息;analyzing the information about the file format in the file browsing request sent by the communication terminal;

服务器依照所述信息,转换所述文件的格式。The server converts the format of the file according to the information.

其中移动通信终端发送的浏览文件的请求中包括有转换文件格式的信息,如移动终端可以识别的文件格式,或是由用户自主选择的文件转换格式,或是根据网络情况所述终端推荐的文件格式。这样可以由用户按照自己终端情况或者网络情况设置与自身最为相符的转换格式。Wherein, the file browsing request sent by the mobile communication terminal includes information about converting the file format, such as a file format that can be recognized by the mobile terminal, or a file conversion format selected by the user, or a file recommended by the terminal according to network conditions Format. In this way, the user can set the conversion format most consistent with himself according to his own terminal situation or network situation.

S103、将转换后的文件发送至通信终端进行显示。S103. Send the converted file to the communication terminal for display.

在本发明实施例一中,步骤S102之后,所述方法还可以包括以下步骤:In Embodiment 1 of the present invention, after step S102, the method may further include the following steps:

服务器存储所述转换后的文件。The server stores the converted files.

在本发明实施例一中,由于对文件进行解析,并对文件的格式为文档的文件转换成xml文件,对文件的格式为图片的文件转换成png格式文件,因此解析后的文件大小比原文件小很多,因而减少了浏览文件的网络流量和时间;且由于将解析后的文件发送至通信终端进行显示,即不需要下载至通信终端,因此不会导致网络拥塞,且对通信终端所支持的文件格式没有要求。另外,由于在服务器存储解析后的文件,因此可以避免相同的文件再次被重新解析,从而节省浏览文件的时间。In Embodiment 1 of the present invention, since the file is parsed, and the file format of the file is converted into an xml file, and the file format of the file is converted into a png format file, the file size after analysis is larger than the original The file is much smaller, thus reducing the network traffic and time for browsing the file; and because the parsed file is sent to the communication terminal for display, that is, it does not need to be downloaded to the communication terminal, so it will not cause network congestion, and the communication terminal supports The file format is not required. In addition, since the parsed files are stored on the server, the same file can be avoided from being re-parsed again, thereby saving time for browsing files.

实施例二:Embodiment two:

请参阅图2,本发明实施例二提供的浏览文件的系统包括:Referring to Fig. 2, the system for browsing files provided by Embodiment 2 of the present invention includes:

请求接收模块11,用于接收通信终端发送的浏览文件的请求;The request receiving module 11 is used to receive the request for browsing files sent by the communication terminal;

解析模块12,用于对文件进行解析,并对文件的格式进行转换;和Parsing module 12, for parsing the file, and converting the format of the file; and

发送模块13,用于将转换后的文件发送至通信终端。The sending module 13 is configured to send the converted file to the communication terminal.

其中,所述解析模块12具体包括:Wherein, the parsing module 12 specifically includes:

分析模块,用于分析所述通信终端发送的浏览文件的请求中有关文件格式的信息;和An analysis module, configured to analyze information about the file format in the file browsing request sent by the communication terminal; and

转换模块,用于服务器依照所述信息,转换所述文件的格式。The conversion module is used for the server to convert the format of the file according to the information.

其中移动通信终端发送的浏览文件的请求中包括有转换文件格式的信息,如移动终端可以识别的文件格式,或是由用户自主选择的文件转换格式,或是根据网络情况所述终端推荐的文件格式。这样可以由用户按照自己终端情况或者网络情况设置与自身最为相符的转换格式。Wherein, the file browsing request sent by the mobile communication terminal includes information about converting the file format, such as a file format that can be recognized by the mobile terminal, or a file conversion format selected by the user, or a file recommended by the terminal according to network conditions Format. In this way, the user can set the conversion format most consistent with himself according to his own terminal situation or network situation.

所述解析模块12具体也可以包括:Described parsing module 12 specifically also can comprise:

分析模块,用于分析文件的格式,所述格式包括文档和图片;和an analysis module for analyzing the format of the file, the format including documents and pictures; and

转换模块,用于如果文件的格式为文档,则将文件转换成xml文件;如果文件的格式为图片,则将文件转换成png格式文件。The conversion module is used to convert the file into an xml file if the format of the file is a document; and convert the file into a png format file if the format of the file is a picture.

在本发明实施例二中,所述系统还可以包括:In Embodiment 2 of the present invention, the system may further include:

存储模块,用于在服务器存储所述转换后的文件。The storage module is used to store the converted file on the server.

所述系统也还可以包括:The system may also include:

判断模块,用于判断所述文件是否已经被解析过,如果是,则通过所述发送模块将存储在服务器的转换后的文件发送至通信终端,否则由所述解析模块对文件进行解析,并对文件的格式进行转换。A judging module, configured to judge whether the file has been parsed, and if so, send the converted file stored in the server to the communication terminal through the sending module, otherwise the file is parsed by the parsing module, and Convert the format of the file.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于一计算机可读取存储介质中,所述的存储介质,如ROM/RAM、磁盘、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage Media such as ROM/RAM, magnetic disk, optical disk, etc.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. within range.

Claims (4)

1.一种浏览文件的方法,其特征在于,所述方法包括:1. A method for browsing files, characterized in that the method comprises: 接收通信终端发送的浏览文件的请求;Receive the file browsing request sent by the communication terminal; 对文件进行解析,并对文件的格式进行转换;Analyze the file and convert the format of the file; 将转换后的文件发送至通信终端,使文件不需要下载至通信终端;Send the converted file to the communication terminal, so that the file does not need to be downloaded to the communication terminal; 其中,所述对文件进行解析,并对文件的格式进行转换的步骤具体包括:分析所述通信终端发送的浏览文件的请求中有关文件格式的信息,所述文件格式的信息包括移动终端能够识别的文件格式或用户自主选择的文件转换格式或根据网络情况所述终端推荐的文件格式;服务器依照所述信息,转换所述文件的格式;Wherein, the step of parsing the file and converting the format of the file specifically includes: analyzing information about the file format in the file browsing request sent by the communication terminal, and the information of the file format includes information about the file format that the mobile terminal can identify. The file format or the file conversion format selected by the user or the file format recommended by the terminal according to the network situation; the server converts the file format according to the information; 其中,所述对文件进行解析,并对文件的格式进行转换之后,所述方法还包括:服务器存储所述转换后的文件;所述接收通信终端发送的浏览文件的请求之后,所述方法还包括:判断所述文件是否已经被解析过,如果是,则将存储在服务器的转换后的文件发送至通信终端,否则执行所述对文件进行解析,并对文件的格式进行转换的步骤。Wherein, after the file is parsed and the format of the file is converted, the method further includes: the server stores the converted file; after receiving the file browsing request sent by the communication terminal, the method further includes: It includes: judging whether the file has been parsed, if so, sending the converted file stored in the server to the communication terminal, otherwise performing the steps of parsing the file and converting the format of the file. 2.如权利要求1所述的方法,其特征在于,所述对文件进行解析,并对文件的格式进行转换的步骤具体包括:2. The method according to claim 1, wherein the step of parsing the file and converting the format of the file specifically comprises: 分析文件的格式,所述格式包括文档和图片;Analyze the format of the file, which includes documents and pictures; 如果文件的格式为文档,则将文件转换成xml文件;If the format of the file is a document, convert the file into an xml file; 如果文件的格式为图片,则将文件转换成png格式文件。If the format of the file is an image, convert the file into a png format file. 3.一种浏览文件的系统,其特征在于,所述系统包括:3. A system for browsing files, characterized in that the system includes: 请求接收模块,用于接收通信终端发送的浏览文件的请求;A request receiving module, configured to receive a file browsing request sent by the communication terminal; 解析模块,用于对文件进行解析,并对文件的格式进行转换;和A parsing module for parsing the file and converting the format of the file; and 存储模块,用于服务器存储所述转换后的文件;A storage module, used for the server to store the converted file; 发送模块,用于将转换后的文件发送至通信终端,使文件不需要下载至通信终端;The sending module is used to send the converted file to the communication terminal, so that the file does not need to be downloaded to the communication terminal; 判断模块,用于判断所述文件是否已经被解析过,如果是,则通过所述发送模块将存储在服务器的转换后的文件发送至通信终端,否则由所述解析模块对文件进行解析,并对文件的格式进行转换;A judging module, configured to judge whether the file has been parsed, and if so, send the converted file stored in the server to the communication terminal through the sending module, otherwise the file is parsed by the parsing module, and Convert the format of the file; 其中,所述解析模块具体包括:Wherein, the parsing module specifically includes: 分析模块,用于分析所述通信终端发送的浏览文件的请求中有关文件格式的信息,所述文件格式的信息包括移动终端能够识别的文件格式或用户自主选择的文件转换格式或根据网络情况所述终端推荐的文件格式;和The analysis module is used to analyze the information about the file format in the file browsing request sent by the communication terminal, and the file format information includes the file format that can be recognized by the mobile terminal or the file conversion format selected by the user independently or according to the network conditions. the recommended file format for the terminal described above; and 转换模块,用于服务器依照所述信息,转换所述文件的格式。The conversion module is used for the server to convert the format of the file according to the information. 4.如权利要求3所述的系统,其特征在于,所述解析模块具体包括:4. The system according to claim 3, wherein the parsing module specifically comprises: 分析模块,用于分析文件的格式,所述格式包括文档和图片;和an analysis module for analyzing the format of the file, the format including documents and pictures; and 转换模块,用于如果文件的格式为文档,则将文件转换成xml文件;如果文件的格式为图片,则将文件转换成png格式文件。The conversion module is used to convert the file into an xml file if the format of the file is a document; and convert the file into a png format file if the format of the file is a picture.
CN201210510956.7A 2012-12-03 2012-12-03 Method and system for browsing files Active CN103020192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210510956.7A CN103020192B (en) 2012-12-03 2012-12-03 Method and system for browsing files

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210510956.7A CN103020192B (en) 2012-12-03 2012-12-03 Method and system for browsing files

Publications (2)

Publication Number Publication Date
CN103020192A CN103020192A (en) 2013-04-03
CN103020192B true CN103020192B (en) 2016-08-17

Family

ID=47968796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210510956.7A Active CN103020192B (en) 2012-12-03 2012-12-03 Method and system for browsing files

Country Status (1)

Country Link
CN (1) CN103020192B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468551A (en) * 2014-09-09 2016-04-06 北大方正集团有限公司 Control system for synchronized presentation and control method for synchronized presentation
CN106383842A (en) * 2016-08-30 2017-02-08 广联达科技股份有限公司 Parsing method and parsing device of model file, and server
CN110110255B (en) * 2018-01-05 2021-06-15 北大方正集团有限公司 Electronic document processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1627690A (en) * 2003-12-10 2005-06-15 联想(北京)有限公司 Method for intelligent sharing file resources wireless network grids
CN101216834A (en) * 2007-12-29 2008-07-09 腾讯科技(深圳)有限公司 File downloading method, system, device and server
GB2488754A (en) * 2011-02-24 2012-09-12 Forbes Hamilton An intermediary server to bi-directionally convert the format of requests/responses between mobile devices and information sources
CN103106205A (en) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 Method and device for browsing files on mobile terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA1328027C (en) * 1988-07-14 1994-03-22 Toshio Kashio Data processing apparatus
JP4075521B2 (en) * 2002-08-14 2008-04-16 ソニー株式会社 Data storage system
US20050114405A1 (en) * 2003-11-25 2005-05-26 Microsoft Corporation Flat file processing method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1627690A (en) * 2003-12-10 2005-06-15 联想(北京)有限公司 Method for intelligent sharing file resources wireless network grids
CN101216834A (en) * 2007-12-29 2008-07-09 腾讯科技(深圳)有限公司 File downloading method, system, device and server
GB2488754A (en) * 2011-02-24 2012-09-12 Forbes Hamilton An intermediary server to bi-directionally convert the format of requests/responses between mobile devices and information sources
CN103106205A (en) * 2011-11-10 2013-05-15 腾讯科技(深圳)有限公司 Method and device for browsing files on mobile terminal

Also Published As

Publication number Publication date
CN103020192A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN102355501B (en) A kind of data processing method, access examination & verification equipment and system
JP2008532119A5 (en)
EP4131866B1 (en) Information interaction method and apparatus, server, system, and storage medium
CN104239426A (en) System and method for realizing cross-platform document reading
CN104935666B (en) A kind of method and system for mobile terminal viewing pdf document
CN101505307B (en) Message processing method, network node and system of service-oriented architecture
CN106790612A (en) A kind of dynamic virtual camera mapping method and system
CN103020192B (en) Method and system for browsing files
CN102299947A (en) Touch digital newspaper-reading high-definition interactive advertising system and data updating method thereof
CN110413975A (en) A template-based alarm rendering method and device
CN106156211A (en) A kind of information-pushing method and device
CN105224420B (en) A kind of analysis method and system of automatic parsing terminal abnormal
CN103399842A (en) File processing method and system in wireless communication equipment
CN102571935B (en) A kind of method of transfer of data, client, server and system
CN103902645B (en) Method for controlling file name and electronic device thereof
WO2010105521A1 (en) Method for mail processing and device thereof
CN111263100A (en) Video call method, device, equipment and storage medium
CN105827712B (en) A kind of intelligent mobile phone platform exchange method based on commending contents
CN101505225A (en) Data transferring method and system
CN102868979A (en) Method and system for realizing information service based on local storage wireless access point
CN104346759A (en) Photo self-help printing method based on cloud service and photo self-help printing system
US20100124938A1 (en) Method and Related Apparatus for Managing Short Messages in a Mobile Communication System
CN103532993B (en) Method and device for synchronizing custom attributes of contacts based on XML
US8862601B2 (en) Method and device for DRM file conversion
CN102065398B (en) NMS (Network Management System) and multi-edition signaling decoding 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
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250526

Address after: 529900 Guangdong Province, Yangjiang City, Yangdong District, Dongcheng Town, Shixing North Road No. 65, 4th Floor (Residential Registration)

Patentee after: Yangjiang Zhengsheng Software Technology Co.,Ltd.

Country or region after: China

Address before: 523000 Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province

Patentee before: Dongguan Yulong Communication Technology Co.,Ltd.

Country or region before: China

Patentee before: YULONG COMPUTER TELECOMMUNICATION SCIENTIFIC (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right
OL01 Intention to license declared
OL01 Intention to license declared