CN104915454A - File preview system and method - Google Patents

File preview system and method Download PDF

Info

Publication number
CN104915454A
CN104915454A CN201510380036.1A CN201510380036A CN104915454A CN 104915454 A CN104915454 A CN 104915454A CN 201510380036 A CN201510380036 A CN 201510380036A CN 104915454 A CN104915454 A CN 104915454A
Authority
CN
China
Prior art keywords
user
file
web page
application server
storage system
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
CN201510380036.1A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510380036.1A priority Critical patent/CN104915454A/en
Publication of CN104915454A publication Critical patent/CN104915454A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/9038Presentation of query results

Abstract

The invention discloses a file preview system and method. The file preview system comprises a storage system, a distribution server and a plurality of application servers, wherein the distribution server receives a user request and distributes the user request to the application servers; a WEB application in each application server obtains a corresponding webpage file from the storage system according to the user request and pushes the webpage file to a browser; and a user previews the pushed webpage file through the browser. The user can browser files like browsing a native webpage without installing any plugin, server pressure is reduced, and file safety is improved.

Description

A kind of previewing file system and method
Technical field
The invention belongs to document online reading field, particularly relate to a kind of previewing file system and method.
Background technology
Along with the development of internet, people can download various document and browse to this locality from internet, but the local ocr software as uneasy dress respective document, then cannot check this document, in addition, the download of document too increases people's extra time, and Consumer's Experience is declined.At present, increasing website supporting documentation online reading, makes, without the need to downloading document, just to carry out preview by browser.
SWFTools is the set of a kind of utility and Adobe Flash paper work, it can convert pdf document to Flash, FlexPaper is the assembly showing various Flash on a web browser of a lightweight of increasing income, make in Flex, show PDF and become possibility, and this process without the need to the support of PDF software environment.
Prior art mainly adopts OpenOffice/LibreOffice (a kind of free office software, the Office of similar Microsoft) convert Microsoft Office (mainly Word, Excel, PowerPoint) to pdf document, re-use the Flash that pdf document is converted to agreement by SWFTools, then use paging, perpendicular screen and controlled mode by the content revealing of original Microsoft Office to user by FlexPaper.Call the method that FlexPaper provides, import the parameter of following form into: { filename [* needs the number of " 0 " of filling], total page number } can realize the object that paging loads Flash.But " filename " attribute in this parameter needs file address on the server, i.e. the form of similar http://doc.jd.com/testDoc.docx.This kind of mode has certain potential safety hazard, if taken this URL(uniform resource locator) (URL) by certain mode, just can directly download this file by its input column address, this can allow unique people have an opportunity to take advantage of.Further, this browsing mode needs to download Flash plug-in unit, in addition, if all documents all to be existed the storage pressure that an application server can increase application server, and is not suitable for distributed environment.
As shown in Figure 1, when user is by certain file of browse request preview, first can through Distributor, or processed by application server 2 actually it can determine that the request of user is processed by application server 1, suppose that user's request is processed by application server 1, now generation Flash is kept on application server 1, if user's request is processed by server 2, the Flash that at this moment generation one is identical again.Even if do not consider stand-by period MicroSoft Office being converted to Flash meeting adding users like this, the document of the redundancy that server stores also can be made a large amount of.
Pdf2htmlEX is a kind of open source software that pdf document can be realized to be converted to high-fidelity web page files, the present invention is based on pdf2htmlEX and provides a kind of previewing file system and method.
Summary of the invention
(1) technical matters that will solve
The object of the present invention is to provide a kind of previewing file system and method, making user not need to install any plug-in unit as browsing browser document primary webpage, can reduce server stress, and improving the security of file.
(2) technical scheme
The invention provides a kind of previewing file system, for pushing web page files to browser, to make user by this web page files of browser preview, previewing file system comprises storage system, Distributor and multiple application server, wherein:
Storage system stores multiple web page files;
Distributor is asked for receiving user, and by user's Requests routing to an application server in described multiple application server;
Each application server for storage in multiple application server has WEB application, and WEB application, according to user's request of distribution, obtains corresponding web page file from storage system, and this web page files is pushed to browser.
The present invention also provides a kind of previewing file method, and be applied to previewing file system, method comprises:
S1, user sends user's request by browser to Distributor;
S2, Distributor receives user's request, and by described user's Requests routing to an application server;
S3, the WEB application in described server is asked according to user, obtains corresponding web page file from storage system, and this web page files is pushed to described browser;
S4, the web page files that user is pushed by browser preview.
(3) beneficial effect
1, pdf document is directly converted to web page files by pdf2htmlEX by the present invention, makes browser without the need to installing any plug-in unit, just by browsing the mode online browse pdf document of webpage.
2, for same pdf document, the size of the web page files converted to is less than FLASH, therefore the present invention can support larger pdf document.
3, web page files is stored in special storage system by the present invention, instead of is stored in server, makes server without the need to storing the document of a large amount of redundancies.
4, the present invention is according to the present load of each application server, by user's request forward to the minimum application server of present load, balances the load of each application server, reduces the pressure in specific application servers, be applicable to distributed environment.
5, in the present invention, WEB application obtains web page files according to the file unique identification in user's request, file path can not be made to expose, ensure that the security of file.
Accompanying drawing explanation
Fig. 1 is the structural representation of prior art file prebrowsing system.
Fig. 2 is the structural representation of the previewing file system that the embodiment of the present invention provides.
Fig. 3 is the process flow diagram of the previewing file method that the embodiment of the present invention provides.
Embodiment
The invention provides a kind of previewing file system, comprise storage system, Distributor and multiple application server, Distributor receives user's request, and by user's Requests routing to application server, WEB application in application server is asked according to user, obtain corresponding web page file from storage system, and this web page files is pushed to browser, the web page files that user is pushed by browser preview.
The present invention also provides a kind of previewing file method, comprising:
S1, user sends user's request by browser to Distributor;
S2, Distributor receives user's request, and by user's Requests routing to an application server;
S3, the WEB application in application server is asked according to user, obtains corresponding web page file from storage system, and this web page files is pushed to described browser;
S4, the web page files that user is pushed by browser preview.
In one embodiment, Distributor according to the present load of each application server, by user's Requests routing to the minimum application server of present load.
In one embodiment, storage system is cloud storage system, such as Jingdone district cloud storage system.
In one embodiment, the web page files in storage system is converted to by pdf document, by pdf2htmlEX, pdf document can be converted to web page files.
In one embodiment, user's request includes file unique identification, and WEB application, according to file unique identification, obtains corresponding web page files from storage system.
In one embodiment, user's request is URL(uniform resource locator) (URL).
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
Fig. 2 is the structural representation of the previewing file system that the embodiment of the present invention provides.As shown in Figure 2, previewing file system comprises cloud storage system, Distributor and two methods server.User sends URL by browser to Distributor; Distributor receives URL, according to the present load of each application server, URL is distributed to the application server that present load is little; WEB application in application server resolves URL, obtains the file unique identification comprised in URL, obtains corresponding web page file according to file unique identification from cloud storage system, and this web page files is pushed to browser; The web page files that user is pushed by browser preview.Wherein, the web page files in storage system is converted to by pdf document, by pdf2htmlEX, pdf document can be converted to web page files.
Fig. 3 is the process flow diagram of the previewing file method that the embodiment of the present invention provides.As shown in Figure 2, previewing file method comprises:
S1, user sends URL by browser to Distributor;
S2, Distributor receives URL, according to the present load of each application server, URL is distributed to the application server that present load is little;
S3, the WEB application in application server resolves URL, obtains the file unique identification comprised in URL, obtains corresponding web page file according to file unique identification from cloud storage system, and this web page files is pushed to browser;
S4, the web page files that user is pushed by browser preview.
Does is URL such as http://doc.jd.com/preview? id=1, wherein, doc.jd.com is the title of WEB application, preview is the self-defining mark that application server can identify, can know to show which page to user by this identification server, "? id=" parameter is below exactly file unique identification, compared to prior art doc.jd.com? (path is self-defining key to path=d:/test.doc, d:/test.doc is the value that key path is corresponding) file is come out safer in the position (i.e. d:/test.doc) of server.
Preferably, the present embodiment uses Jingdone district cloud storage system, above being stored in by the web page files handled well.When needs online reading document, first browser access doc.jd.com/preview is passed through by user? this URL of id=xx asks the document reading id=xx, then server judges that whether the id parameter on URL is legal, if do not conform to rule directly return the miscue page, if legal, according to the position of id and browser scroll bar, obtain the document flow of the given content needing the specified documents browsed, be not stored into application server to be directly shown in browser, both for application server alleviates storage pressure, turn increase the security of file.
Above-described specific embodiment; object of the present invention, technical scheme and beneficial effect are further described; be understood that; the foregoing is only specific embodiments of the invention; be not limited to the present invention; within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. a previewing file system, for pushing web page files to browser, to make user by described this web page files of browser preview, it is characterized in that, described previewing file system comprises storage system, Distributor and multiple application server, wherein:
Shown storage system stores multiple web page files;
Described Distributor is asked for receiving user, and by described user's Requests routing to an application server in described multiple application server;
Each application server for storage in described multiple application server has WEB application, and described WEB application, according to user's request of distribution, obtains corresponding web page file from described storage system, and this web page files is pushed to described browser.
2. previewing file system according to claim 1, is characterized in that, described Distributor according to the present load of each application server, by described user's Requests routing to the minimum application server of present load.
3. previewing file system according to claim 1, is characterized in that, described storage system is cloud storage system.
4. previewing file system according to claim 1, is characterized in that, the web page files in described storage system is converted to by pdf document.
5. previewing file system according to claim 1, is characterized in that, described user's request includes file unique identification, and described WEB application, according to the file unique identification in described user's request, obtains corresponding web page files from described storage system.
6. previewing file system according to claim 5, is characterized in that, described user's request is uniform resource position mark URL.
7. a previewing file method, be applied to the previewing file system as described in claim 1-5 any one, it is characterized in that, the method comprises:
S1, user sends user's request by browser to Distributor;
S2, described Distributor receives described user request, and by described user's Requests routing to an application server;
S3, the WEB application in described application server is asked according to described user, obtains corresponding web page file from storage system, and this web page files is pushed to described browser;
S4, the web page files that user is pushed by described browser preview.
8. previewing file method according to claim 7, is characterized in that, described Distributor according to the present load of each application server, by described user's Requests routing to the minimum application server of present load.
9. previewing file method according to claim 7, is characterized in that, described storage system is cloud storage system.
10. previewing file method according to claim 7, is characterized in that, the web page files in described storage system is converted to by pdf document.
11. previewing file methods according to claim 7, is characterized in that, described user's request includes file unique identification, and described WEB application, according to the file unique identification in described user's request, obtains corresponding web page files from described storage system.
12. previewing file methods according to claim 11, is characterized in that, described user's request is uniform resource position mark URL.
CN201510380036.1A 2015-07-01 2015-07-01 File preview system and method Pending CN104915454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510380036.1A CN104915454A (en) 2015-07-01 2015-07-01 File preview system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510380036.1A CN104915454A (en) 2015-07-01 2015-07-01 File preview system and method

Publications (1)

Publication Number Publication Date
CN104915454A true CN104915454A (en) 2015-09-16

Family

ID=54084517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510380036.1A Pending CN104915454A (en) 2015-07-01 2015-07-01 File preview system and method

Country Status (1)

Country Link
CN (1) CN104915454A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589836A (en) * 2015-12-21 2016-05-18 华为技术有限公司 Document previewing method, terminal and server
CN108090078A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 The online method for previewing of document and device
CN108256114A (en) * 2018-02-09 2018-07-06 金蝶软件(中国)有限公司 The online method for previewing of document, device, computer equipment and storage medium
CN109213968A (en) * 2018-08-01 2019-01-15 山东浪潮通软信息科技有限公司 A kind of method of online preview network disk file
CN109376133A (en) * 2018-09-26 2019-02-22 中国平安人寿保险股份有限公司 File access method and file access system
CN109450972A (en) * 2018-09-29 2019-03-08 阿里巴巴集团控股有限公司 A kind of processing method of data, device and equipment
CN110209960A (en) * 2019-05-29 2019-09-06 国网浙江电动汽车服务有限公司 A kind of integrated two-dimensional code control technology

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5911776A (en) * 1996-12-18 1999-06-15 Unisys Corporation Automatic format conversion system and publishing methodology for multi-user network
CN101976268A (en) * 2010-11-19 2011-02-16 百度在线网络技术(北京)有限公司 Online document reading device and method
CN102662928A (en) * 2012-03-28 2012-09-12 福建榕基软件股份有限公司 Rich text editing method for importing documents and device thereof
CN103201997A (en) * 2010-10-12 2013-07-10 天津书生投资有限公司 A method and system of Web-based document service

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5911776A (en) * 1996-12-18 1999-06-15 Unisys Corporation Automatic format conversion system and publishing methodology for multi-user network
CN103201997A (en) * 2010-10-12 2013-07-10 天津书生投资有限公司 A method and system of Web-based document service
CN101976268A (en) * 2010-11-19 2011-02-16 百度在线网络技术(北京)有限公司 Online document reading device and method
CN102662928A (en) * 2012-03-28 2012-09-12 福建榕基软件股份有限公司 Rich text editing method for importing documents and device thereof

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589836A (en) * 2015-12-21 2016-05-18 华为技术有限公司 Document previewing method, terminal and server
CN108090078A (en) * 2016-11-22 2018-05-29 北京京东尚科信息技术有限公司 The online method for previewing of document and device
CN108090078B (en) * 2016-11-22 2021-11-30 北京京东尚科信息技术有限公司 Document online preview method and device, storage medium and electronic equipment
US11256773B2 (en) 2016-11-22 2022-02-22 Beijing Jingdong Shangke Information Technology Co., Ltd. Document online preview method and device
CN108256114A (en) * 2018-02-09 2018-07-06 金蝶软件(中国)有限公司 The online method for previewing of document, device, computer equipment and storage medium
CN108256114B (en) * 2018-02-09 2021-02-02 金蝶软件(中国)有限公司 Document online preview method and device, computer equipment and storage medium
CN109213968A (en) * 2018-08-01 2019-01-15 山东浪潮通软信息科技有限公司 A kind of method of online preview network disk file
CN109376133A (en) * 2018-09-26 2019-02-22 中国平安人寿保险股份有限公司 File access method and file access system
CN109376133B (en) * 2018-09-26 2023-08-18 中国平安人寿保险股份有限公司 File access method and file access system
CN109450972A (en) * 2018-09-29 2019-03-08 阿里巴巴集团控股有限公司 A kind of processing method of data, device and equipment
CN110209960A (en) * 2019-05-29 2019-09-06 国网浙江电动汽车服务有限公司 A kind of integrated two-dimensional code control technology

Similar Documents

Publication Publication Date Title
CN104915454A (en) File preview system and method
US8683311B2 (en) Generating structured data objects from unstructured web pages
US20120084346A1 (en) Page Loading Optimization Using Page-Maintained Cache
US8225192B2 (en) Extensible cache-safe links to files in a web page
CN107704615B (en) Webpage font display method and system based on Chinese font subset
CN104572870B (en) The method and apparatus and system of document online reading are provided
TWI592807B (en) Method and device for web style address merge
CN107872437B (en) Method, device and server for service request
US10762095B2 (en) Validation of log formats
KR20100057922A (en) Methods, apparatus, and systems for providing local and online data services
US9727643B2 (en) Managing loading of web pages
US20070168868A1 (en) Method and system for integrating calculation and presentation technologies
CN105528369A (en) Webpage transcoding method and device and server
US8041732B2 (en) System and method for downloading text content and images in web pages
CN104980464B (en) A kind of network request processing method, network server and network system
CN110413846B (en) Data processing method and device for webpage mirror image and computer readable storage medium
CN105653678A (en) Data chart subscription method and data chart subscription system
US8549390B2 (en) Verifying content of resources in markup language documents
CN111177600B (en) Built-in webpage loading method and device based on mobile application
Strawn Masterminds of the World Wide Web.
US20130110912A1 (en) System and method for providing anonymous internet browsing
CN104219277A (en) Rearranging a server response
CN104978340A (en) Link address generation method and equipment, and server
Varbanov et al. Static generation of websites–positives and negatives
CN111104619B (en) Method for collecting articles and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150916

RJ01 Rejection of invention patent application after publication