CN105573967A - Multi-format file online browsing method and system - Google Patents

Multi-format file online browsing method and system Download PDF

Info

Publication number
CN105573967A
CN105573967A CN201510885984.0A CN201510885984A CN105573967A CN 105573967 A CN105573967 A CN 105573967A CN 201510885984 A CN201510885984 A CN 201510885984A CN 105573967 A CN105573967 A CN 105573967A
Authority
CN
China
Prior art keywords
file
browse
online
browser
document
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
CN201510885984.0A
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.)
Fujian Yirong Information Technology Co Ltd
Original Assignee
Fujian Yirong Information 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 Fujian Yirong Information Technology Co Ltd filed Critical Fujian Yirong Information Technology Co Ltd
Priority to CN201510885984.0A priority Critical patent/CN105573967A/en
Publication of CN105573967A publication Critical patent/CN105573967A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/106Display of layout of documents; Previewing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a multi-format file online browsing method and system. The method comprises the steps as follows: a storage module obtains a network file; the network film comprises a file stored on a server and a file stored on an FTP or a file stored on a distributed file system; a service module generates different http response header information aiming at different file types; an adapter module transfers the http response header information and identifies the file type which can be browsed online; and a client provides ActiveX to the file for browsing, outputs the file to iframe for browsing, transfers a video player plug-in for browsing or compiles a COM component to open the file through a browser for browsing according to the identified file type. The method reduces the file format conversion process, reduces investment in hardware of a server side and storage, and solves the problems of large occupied storage space and low edition transformation efficiency in online browsing.

Description

A kind of multi-format document online browse method and system
Technical field
The present invention relates to file online browse field, particularly relate to a kind of multi-format document online browse method and system.
Background technology
Along with popularizing of internet, document resources real-time online is browsed and be have also been obtained fast development.Wherein, digital resource comprises Streaming Media and electronic document etc., various Streaming Media is had at present to the technical support of comparative maturity, existing WEB online browse one is that document files is converted to swf file, and utilize FlexPaper Open Source Platform to realize browser online browse process, flash plug-in unit by existing browser end realizes the online browse function of document, comprise doc88 at present, the websites such as open-open are all use this technology to realize, another document is torn open page to turn the mode that version becomes html or picture, paging is controlled at browser end, reach the mode at browser end online browse, online browse is carried out in use which in current Baidu libraries etc., these two kinds of technology are for common doc at present, xls, ppt, the general office documents of wps need first convert intermediate form PDF to, and then convert swf to again by the assembly swftools that some are increased income, or jpg, html file, prior art at least will through the operation turning version of twice, relend and help the online browse plug-in unit of browser could realize online browse function, namely library for magnanimity will consider the risk turning version, increase backstage again to store, turn version server in a large number to support the input that this online browse service considerably increases fund, if the data bank for large-scale magnanimity need increase a large amount of inputs to meet the demand of this online browse.
Summary of the invention
For this reason, need to provide a kind of new browsing file mode, solve the storage space existed in online browse and take greatly, turn the inefficient problem of version.
For achieving the above object, inventor provide a kind of multi-format document online browse method, comprise the steps, memory module obtains network file, the file that described network file comprises the file be stored on server, is stored in the file on FTP or stores on a distributed, service module generates different http for different file types and responds header information;
Adaptation module is called described http and is responded header information, and identifying can the file type of online browse;
Client, according to the file type identified, is provided ActiveX to browse to file, outputs to iframe and browse, transfer video player plug-in unit and browse or write com component and opened file by browser and browse.The method reduces the process of file layout conversion, reduce the hardware of server end and the input of storage, solve the storage space existed in online browse and take greatly, turn the inefficient problem of version.
Further, if the file type identified is html, txt, jpg formatted file, directly outputs to browser end in the mode of document flow and carry out online browse.
Further, if the file type identified is video file, outputs to video player in the mode of video flowing and play online.
Further, if the file type identified is office class file, export with the form of respective file stream, call local application for com component at the direct download file of browser end and directly open file and browse.
Further, if the file type CEB identified, CEBX, pdf document, output to the document flow form of correspondence PDF, CEB of specifying and browse activex control and directly carry out online browse in a browser.
A kind of multi-format document online browse system, comprises memory module, service module, adaptation module and client;
Described memory module is for obtaining network file, and described network file comprises the file be stored on server, the file that is stored in the file on FTP or stores on a distributed;
Described service module is used for generating different http for different file types and responds header information;
Described adaptation module is used for calling described http and responds header information, and identifying can the file type of online browse;
Described client is used for according to the file type that identifies, provides ActiveX to browse, outputs to iframe and browse, transfer video player plug-in unit and browse or write com component and opened file by browser and browse file.
Further, if the file type identified is html, txt, jpg formatted file, directly outputs to browser end in the mode of document flow and carry out online browse.
Further, if the file type identified is video file, outputs to video player in the mode of video flowing and play online.
Further, if the file type identified is office class file, export with the form of respective file stream, call local application for com component at the direct download file of browser end and directly open file and browse.
Further, if the file type CEB identified, CEBX, pdf document, output to the document flow form of correspondence PDF, CEB of specifying and browse activex control and directly carry out online browse in a browser.
Be different from prior art, technique scheme, for the file of different file layout, by the realization of the online browse of WEB, decreases the process of file layout conversion, reduce the hardware of server end and the input of storage, also can be reached through the function of WEB online browse.Greatly reduce the pressure of application server end.Dynamic expansion function to files in different types is provided by providing adaption function.
Accompanying drawing explanation
Fig. 1 is method flow diagram described in the specific embodiment of the invention;
Fig. 2 is system module figure described in the specific embodiment of the invention;
Fig. 3 is online browse stratal diagram described in the specific embodiment of the invention.
Description of reference numerals:
200, memory module;
202, service module;
204, adaptation module;
206, client.
Embodiment
By describe in detail technical scheme technology contents, structural attitude, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.
Refer to Fig. 1, for a kind of multi-format document online browse of the present invention method, comprise the steps, S100 memory module obtains network file, the file that described network file comprises the file be stored on server, is stored in the file on FTP or stores on a distributed, S102 service module generates different http for different file types and responds header information;
S104 adaptation module is called described http and is responded header information, and identifying can the file type of online browse;
S106 client, according to the file type identified, is provided ActiveX to browse to file, outputs to iframe and browse, transfer video player plug-in unit and browse or write com component and opened file by browser and browse.Wherein, client can represent the Fileview programs such as the browser of operation, in the method, further, if the file type identified is html, txt, jpg formatted file, directly outputs to browser end in the mode of document flow and carries out online browse.
Further, if the file type identified is video file, outputs to video player in the mode of video flowing and play online.
Further, if the file type identified is office class file, here class file of handling official business comprises the document, form, PowerPoint etc. of office series, then described office class file is exported with the form of respective file stream, call local application for com component at the direct download file of browser end and directly open file and browse.
Further, if the file type CEB identified, CEBX, pdf document, output to the document flow form of correspondence PDF, CEB of specifying and browse activex control and directly carry out online browse in a browser.
In some specific embodiment, as shown in Figure 3, a multi-format document online browse hierarchical structure can comprise:
1, memory module
Adaptation can be carried out for the file in different storage modes and realize online browse function, provide being stored in server local file, the file be stored on long-range ftp server, store the data source of file on a distributed as file online browse.Design memory module can reduce the call number of file.
2, service module
Service layer generates different http mainly for different file types and responds head, call for row adaptation during client, by identifying that the information of top of file changes into http and responds header information, identifying browser can the file type of online browse, specifically identifies shown in following corresponding table:
The formatted file such as html, txt, jpg identified, directly in output to browser end and carry out direct-on-line and browse.
The video file identified, outputs to video player in the mode of video flowing and plays online.
The file of the office class identified, exports with the form of respective file stream, calls local application directly open file and browse for com component at the direct download file of browser end.
The CEB identified, CEBX, pdf document, output to PDF, CEB browse controls of specifying with the document flow form of correspondence and directly carry out online browse in a browser.
3, adaptation module
Adaptation layer is mainly divided into four kinds of modes and processes, ActiveX is provided directly to browse at browser end, the file can directly browsed for browser directly outputs to iframe with document flow and carries out online browse, carry out direct-on-line by the plug-in unit that player provides at browser end for video player to browse, other file realizes on a web browser directly download file by writing com component, is directly opened browse by the application program of client.Memory module can The method reduces the process of file layout conversion, reduces the hardware of server end and the input of storage, solves the storage space existed in online browse and take greatly, turn the inefficient problem of version.
In the embodiment shown in Figure 2, a kind of multi-format document online browse system, comprises memory module 200, service module 202, adaptation module 204 and client 206;
Described memory module 200 is for obtaining network file, and described network file comprises the file be stored on server, the file that is stored in the file on FTP or stores on a distributed;
Described service module 202 responds header information for generating different http for different file types;
Described adaptation module 204 responds header information for calling described http, and identifying can the file type of online browse;
Described client 206 for according to the file type that identifies, is provided ActiveX to browse to file, outputs to iframe and browse, transfer video player plug-in unit and browse or write com component and opened file by browser and browse.
Further, if the file type identified is html, txt, jpg formatted file, directly outputs to browser end in the mode of document flow and carry out online browse.
Further, if the file type identified is video file, outputs to video player in the mode of video flowing and play online.
Further, if the file type identified is office class file, export with the form of respective file stream, call local application for com component at the direct download file of browser end and directly open file and browse.
Further, if the file type CEB identified, CEBX, pdf document, output to the document flow form of correspondence PDF, CEB of specifying and browse activex control and directly carry out online browse in a browser.
Be different from prior art, technique scheme, for the file of different file layout, by the realization of the online browse of WEB, decreases the process of file layout conversion, reduce the hardware of server end and the input of storage, also can be reached through the function of WEB online browse.Greatly reduce the pressure of application server end.Dynamic expansion function to files in different types is provided by providing adaption function.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal device.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal device comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, system or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described computer equipment, includes but not limited to: personal computer, server, multi-purpose computer, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the process flow diagram of method, equipment (system) and computer program according to embodiment and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce system for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising order set, and this order set realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.

Claims (10)

1. a multi-format document online browse method, it is characterized in that, comprise the steps, memory module obtains network file, the file that described network file comprises the file be stored on server, is stored in the file on FTP or stores on a distributed, service module generates different http for different file types and responds header information;
Adaptation module is called described http and is responded header information, and identifying can the file type of online browse;
Client, according to the file type identified, is provided ActiveX to browse to file, outputs to iframe and browse, transfer video player plug-in unit and browse or write com component and opened file by browser and browse.
2. multi-format document online browse method according to claim 1, is characterized in that, if the file type identified is html, txt, jpg formatted file, directly outputs to browser end in the mode of document flow and carries out online browse.
3. multi-format document online browse method according to claim 1, is characterized in that, the file type identified is video file, outputs to video player play online in the mode of video flowing.
4. multi-format document online browse method according to claim 1, it is characterized in that, the file type identified is office class file, exports with the form of respective file stream, calls local application directly open file and browse for com component at the direct download file of browser end.
5. multi-format document online browse method according to claim 1, it is characterized in that, the file type CEB identified, CEBX, pdf document, output to the document flow form of correspondence PDF, CEB of specifying and browse activex control and directly carry out online browse in a browser.
6. a multi-format document online browse system, is characterized in that, comprises memory module, service module, adaptation module and client;
Described memory module is for obtaining network file, and described network file comprises the file be stored on server, the file that is stored in the file on FTP or stores on a distributed;
Described service module is used for generating different http for different file types and responds header information;
Described adaptation module is used for calling described http and responds header information, and identifying can the file type of online browse;
Described client is used for according to the file type that identifies, provides ActiveX to browse, outputs to iframe and browse, transfer video player plug-in unit and browse or write com component and opened file by browser and browse file.
7. multi-format document online browse system according to claim 6, is characterized in that, if the file type identified is html, txt, jpg formatted file, directly outputs to browser end in the mode of document flow and carries out online browse.
8. multi-format document online browse system according to claim 6, is characterized in that, the file type identified is video file, outputs to video player play online in the mode of video flowing.
9. multi-format document online browse system according to claim 6, it is characterized in that, the file type identified is office class file, exports with the form of respective file stream, calls local application directly open file and browse for com component at the direct download file of browser end.
10. multi-format document online browse system according to claim 6, it is characterized in that, the file type CEB identified, CEBX, pdf document, output to the document flow form of correspondence PDF, CEB of specifying and browse activex control and directly carry out online browse in a browser.
CN201510885984.0A 2015-12-04 2015-12-04 Multi-format file online browsing method and system Pending CN105573967A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510885984.0A CN105573967A (en) 2015-12-04 2015-12-04 Multi-format file online browsing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510885984.0A CN105573967A (en) 2015-12-04 2015-12-04 Multi-format file online browsing method and system

Publications (1)

Publication Number Publication Date
CN105573967A true CN105573967A (en) 2016-05-11

Family

ID=55884120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510885984.0A Pending CN105573967A (en) 2015-12-04 2015-12-04 Multi-format file online browsing method and system

Country Status (1)

Country Link
CN (1) CN105573967A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038329A (en) * 2016-10-19 2017-08-11 北京全域医疗技术有限公司 The on-line processing method and device of medical image file
CN108287920A (en) * 2018-02-13 2018-07-17 深圳市博安达信息技术股份有限公司 A method of handling office files under BS systems
CN108376089A (en) * 2018-01-26 2018-08-07 中国科学院上海高等研究院 Application support method, system, storage medium and electronic equipment based on browser
CN109002335A (en) * 2017-06-06 2018-12-14 北京京东尚科信息技术有限公司 Page file playing method and device
CN109933382A (en) * 2019-03-11 2019-06-25 安徽志辉教育科技有限公司 Online ppt previewing file tool based on owa service
CN110442406A (en) * 2018-05-02 2019-11-12 天津京东深拓机器人科技有限公司 The method and paging control, electronic equipment of paging control processing data
CN113779168A (en) * 2021-08-26 2021-12-10 广州和辰信息科技有限公司 Vector space data analysis method based on WebAssembly

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101023419A (en) * 2004-05-14 2007-08-22 模比莱普斯有限公司 Method of providing a web page with inserted content
US20080243625A1 (en) * 2007-03-30 2008-10-02 Matthew Adkisson Sharing Revenue With a User-Selected Entity
CN102982139A (en) * 2012-11-20 2013-03-20 上海中信信息发展股份有限公司 Universal browser
CN103729338A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 File on-line previewing method
CN104035937A (en) * 2013-03-07 2014-09-10 方正国际软件(北京)有限公司 Extensible system and method for electronic document online browsing
CN104268482A (en) * 2014-09-11 2015-01-07 广西桂能软件有限公司 Document safe browsing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101023419A (en) * 2004-05-14 2007-08-22 模比莱普斯有限公司 Method of providing a web page with inserted content
US20080243625A1 (en) * 2007-03-30 2008-10-02 Matthew Adkisson Sharing Revenue With a User-Selected Entity
CN102982139A (en) * 2012-11-20 2013-03-20 上海中信信息发展股份有限公司 Universal browser
CN104035937A (en) * 2013-03-07 2014-09-10 方正国际软件(北京)有限公司 Extensible system and method for electronic document online browsing
CN103729338A (en) * 2013-12-29 2014-04-16 国云科技股份有限公司 File on-line previewing method
CN104268482A (en) * 2014-09-11 2015-01-07 广西桂能软件有限公司 Document safe browsing method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038329A (en) * 2016-10-19 2017-08-11 北京全域医疗技术有限公司 The on-line processing method and device of medical image file
CN107038329B (en) * 2016-10-19 2020-04-21 北京全域医疗技术集团有限公司 Online processing method and device for medical image file
CN109002335A (en) * 2017-06-06 2018-12-14 北京京东尚科信息技术有限公司 Page file playing method and device
CN108376089A (en) * 2018-01-26 2018-08-07 中国科学院上海高等研究院 Application support method, system, storage medium and electronic equipment based on browser
CN108287920A (en) * 2018-02-13 2018-07-17 深圳市博安达信息技术股份有限公司 A method of handling office files under BS systems
CN110442406A (en) * 2018-05-02 2019-11-12 天津京东深拓机器人科技有限公司 The method and paging control, electronic equipment of paging control processing data
CN109933382A (en) * 2019-03-11 2019-06-25 安徽志辉教育科技有限公司 Online ppt previewing file tool based on owa service
CN113779168A (en) * 2021-08-26 2021-12-10 广州和辰信息科技有限公司 Vector space data analysis method based on WebAssembly

Similar Documents

Publication Publication Date Title
CN105573967A (en) Multi-format file online browsing method and system
US8959519B2 (en) Processing hierarchical data in a map-reduce framework
WO2017167095A1 (en) Model training method and device
CN105630459A (en) Method for converting PPT document to HTML page
CN104951326A (en) Web access method and device
CN108197324B (en) Method and apparatus for storing data
Simitci Storage network performance analysis
CN103150402A (en) Index-code-based virtual file system, establishment method and access method
CN104850440A (en) Android system based resource loading method and system therefor
CN108108247A (en) Distributed picture storage service system and method
CN102955852A (en) Method, device and equipment for webpage resource processing
CN105320669A (en) Method and device for data storage and method and device for data reading
CN110020343B (en) Method and device for determining webpage coding format
EP2686791B1 (en) Variants of files in a file system
CN104317836B (en) The method and device of Mass production data file
CN103036929A (en) Multimedia file processing method and network side equipment in communication system
US9230022B1 (en) Customizable result sets for application program interfaces
CN112148734B (en) Transaction data processing method, device, equipment and storage medium based on block chain
CN105190510A (en) Consuming content incrementally
CN114282895A (en) Data processing method and device, electronic equipment and storage medium
Natrajan et al. To disaggregate or not to disaggregate, that is not the question
US8990265B1 (en) Context-aware durability of file variants
CN104932982A (en) Message access memory compiling method and related apparatus
CN104090898A (en) Method and device for matching local music and music in database
CN113268967B (en) Method and equipment for processing data information

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

RJ01 Rejection of invention patent application after publication