CN111352910B - Method and device for online previewing of data - Google Patents

Method and device for online previewing of data Download PDF

Info

Publication number
CN111352910B
CN111352910B CN202010115417.8A CN202010115417A CN111352910B CN 111352910 B CN111352910 B CN 111352910B CN 202010115417 A CN202010115417 A CN 202010115417A CN 111352910 B CN111352910 B CN 111352910B
Authority
CN
China
Prior art keywords
data
server
item
data compression
compression packet
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
CN202010115417.8A
Other languages
Chinese (zh)
Other versions
CN111352910A (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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202010115417.8A priority Critical patent/CN111352910B/en
Publication of CN111352910A publication Critical patent/CN111352910A/en
Application granted granted Critical
Publication of CN111352910B publication Critical patent/CN111352910B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for online previewing of data, which relate to the technical field of computers and mainly aim to enable other development members to preview product prototype graphs online after uploading the product prototype graphs in a compressed package form. The main technical scheme of the invention is as follows: acquiring a data compression packet to be uploaded; uploading the data compression packet to a server, and acquiring an access identifier of the server and a storage address for storing the data compression packet; decompressing, by the server, the data in the data compression packet into a current folder according to the storage address; and generating an online preview address of the data in the data compression packet according to the access identification and the storage address of the server. The method and the device are mainly used for online previewing of the data.

Description

Method and device for online previewing of data
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for online previewing data.
Background
In the Web product development process, improvements, revisions, and confirmation of product prototypes need to share and read each other among personnel in the development team. Whereas traditional sharing approaches are mainly implemented through team member mail or enterprise network disk. For example, in the mail mode, a person (typically a product manager) needs to manually export an HTML document, package and compress the HTML document, upload the HTML document into a mail in the form of an attachment, and then send the HTML document to mailboxes of other team members in the mode of adding a recipient, and the HTML document is checked by the other members, downloaded the attachment and decompressed to a local computer for viewing. When the method is implemented in an enterprise network disk mode, the HTML document is manually exported and uploaded to a corresponding storage directory, other members are informed to view a new document on the enterprise network disk, the other members also need to download the new document from the enterprise network disk to view the new document locally, and only intranet access is supported for a general enterprise network disk, so that the access mode of team members can be limited. Therefore, the traditional sharing approach is to download the documents of the product prototype graph to be checked locally by team members, but for the current Web development project, the required product prototype graph is larger and larger, and the compressed documents take longer time to upload or download, which is not beneficial to the execution progress of the development team, so that the development efficiency is reduced.
Disclosure of Invention
In view of the above problems, the present invention provides a method and apparatus for online previewing of data, which mainly aims to enable other development members to online preview product prototype graphs after uploading the product prototype graphs in the form of compressed packets.
In order to achieve the above purpose, the present invention mainly provides the following technical solutions:
in a first aspect, the present invention provides a method for online previewing of data, comprising:
acquiring a data compression packet to be uploaded;
uploading the data compression packet to a server, and acquiring an access identifier of the server and a storage address for storing the data compression packet;
decompressing, by the server, the data in the data compression packet into a current folder according to the storage address;
and generating an online preview address of the data in the data compression packet according to the access identification and the storage address of the server.
Preferably, after obtaining the data compression packet to be uploaded, the method further comprises:
detecting whether the file format of the data compression packet is a preset format or not;
if not, generating alarm information to prompt the file format error of the data compression packet.
Preferably, the obtaining the data compression packet to be uploaded includes:
determining an item corresponding to the data compression packet to be uploaded, wherein the item corresponds to a server address for storing item data;
if the project exists, determining that the server corresponding to the project is the server uploaded by the data compression packet;
and if the item does not exist, creating a new item for the data compression packet to be uploaded.
Preferably, the method further comprises:
when a new project is created, acquiring project information, wherein the project information at least comprises a project name and a version number;
a server for determining the new item storage data;
and creating the new project according to the project information and the server.
Preferably, the method further comprises:
determining the project authority of an access user by a server according to login information of the access user, wherein the project authority is used for limiting the project which can be previewed on line by the access user;
according to the item authority of the access user, displaying an item list which can be previewed on line by the access user, wherein the item list is divided into a full item list and an updated item list according to the selection of the access user, the full item list is recorded with data on-line preview addresses of different versions corresponding to all items which can be previewed on line by the access user, and the updated item list is recorded with updated data on-line preview addresses corresponding to the items which can be previewed on line by the access user and are updated in a specified time period.
Preferably, the method further comprises:
the list of items is updated when it is determined that an online preview address is generated.
In a second aspect, the present invention provides an apparatus for online previewing of data, the apparatus comprising:
the acquisition unit is used for acquiring the data compression packet to be uploaded;
the data transmitting unit is used for uploading the data compression packet obtained by the obtaining unit to a server, and obtaining an access identifier of the server and a storage address for storing the data compression packet;
the decompression unit is used for decompressing the data in the data compression packet to the current folder by the server according to the storage address;
and the address generating unit is used for generating an online preview address of the data in the data compression packet according to the access identifier and the storage address of the server acquired by the data transmitting unit.
Preferably, the apparatus further comprises:
the detection unit is used for detecting whether the file format of the data compression packet is a preset format or not after the acquisition unit acquires the data compression packet to be uploaded;
and the alarm unit is used for generating alarm information to prompt the file format error of the data compression packet if the detection unit detects that the file format of the data compression packet is not the preset format.
Preferably, the acquisition unit includes:
the item detection module is used for determining an item corresponding to the data compression packet to be uploaded, wherein the item corresponds to a server address for storing item data;
the determining module is used for determining that the server corresponding to the project is the server uploaded by the data compression packet if the project detection module determines that the project exists;
and the creation module is used for creating a new item for the data compression packet to be uploaded if the item detection module determines that the item does not exist.
Preferably, the creation module is specifically configured to obtain the item information when creating a new item, where the item information includes at least an item name and a version number; a server for determining the new item storage data; and creating the new project according to the project information and the server.
Preferably, the apparatus further comprises:
the determining unit is used for determining the project authority of the access user according to the login information of the access user by the server, wherein the project authority is used for limiting the project which can be previewed on line by the access user;
the display unit is used for displaying an item list which can be previewed on line by the access user according to the item authority of the access user, wherein the item list is divided into a full item list and an updated item list according to the selection of the access user, the full item list is recorded with data on-line preview addresses of different versions corresponding to all items which can be previewed on line by the access user, and the updated item list is recorded with updated data on-line preview addresses corresponding to the items which can be previewed on line by the access user and are stored in a designated time period.
Preferably, the apparatus further comprises:
and the updating unit is used for updating the item list when the address generating unit is determined to generate the online preview address.
Preferably, the apparatus further comprises:
and the encryption unit is used for encrypting the online preview address generated by the address generation unit by adopting an advanced encryption standard algorithm.
On the other hand, the invention also provides a storage medium for storing a computer program, wherein the computer program controls a gateway device where the storage medium is located to execute the method for online previewing of data according to the first aspect when running.
By means of the technical scheme, the method and the device for online previewing of the data are characterized in that when the data compression package is uploaded to the server, the server is controlled to decompress data in the data compression package in a currently stored folder, address mapping is conducted on the decompressed data according to the access identification of the server and the storage address of the stored data compression package, and online previewing addresses of the data are obtained.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
FIG. 1 is a flowchart of a method for online previewing of data according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another method for online previewing of data according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for online previewing of data according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another device for online previewing of data according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The embodiment of the invention provides a method for online previewing of data, which is not limited to be applied to a data sharing platform and a server, and specifically comprises the following steps as shown in fig. 1:
101. and obtaining the data compression packet to be uploaded.
The data compression packet is provided by a user, that is, the user provides a storage address of the data compression packet, and generally, the user can select the data compression packet to be uploaded through an operation interface, so as to obtain a storage path of the data compression packet, and extract the data compression packet to be uploaded according to the storage path.
102. Uploading the data compression packet to a server, and obtaining an access identifier of the server and a storage address for storing the data compression packet.
Based on the operation interface provided for the user, the user triggers the uploading instruction, for example, by setting the uploading case in the interface, so as to realize one-key processing of uploading operation. And uploading the data compression packet to a server according to the uploading instruction.
It should be noted that, for the uploaded server, it may be a pre-designated server, or may be a randomly determined server, or a server determined based on algorithm calculation, for example, load balancing, storage capacity of the server, and the like.
The access identifier of the server is obtained while the data compression packet is uploaded to the server, the access identifier may be an ID, a domain name, etc. of the server, and a storage address storing the data compression packet is obtained.
103. And decompressing the data in the data compression packet into the current folder by the server according to the storage address.
After receiving the completed data compression packet, the server automatically decompresses the data in the data compression packet into the current folder. Based on the decompression operation, other users can directly access the data in the data compression packet without downloading the data compression packet as a whole.
104. And generating an online preview address of the data in the data compression packet according to the access identification and the storage address of the server.
The method comprises the step of mapping the address of the decompressed data based on the decompressed data to obtain an access address of the online preview data, so that an access user can directly check the data content by using the online preview address.
Based on the implementation manner, it can be seen that, in the method for online previewing of data adopted in the embodiment of the present invention, when a data compression packet is uploaded to a server, the server is controlled to decompress data in the data compression packet in a currently stored folder, and address mapping is performed on the decompressed data according to an access identifier of the server and a storage address of the stored data compression packet, so as to obtain online previewing addresses of the data, so that other users can directly view data content online by accessing the online previewing addresses, and the user does not need to download the data compression packet from the server to a local and view the data, thereby saving time required by the user to view the data, particularly for a product prototype graph with larger data volume, and helping to improve sharing efficiency of the data.
When the method is applied to Web product development, personnel in a development team can upload the compressed package of the manufactured product prototype graph to a server, the server decompresses the compressed package to the current folder according to the storage address, so that an online preview address of the corresponding product prototype graph is obtained, and by sharing the address, other members of the team can preview the specific product prototype graph online without consuming a large amount of time to download the compressed package.
Further, when the embodiment of the present invention is applied to the specific application of the prototype graph of the product, because the prototype graph of the product is based on a specific item and there is a need for multiple modifications and uploading, that is, the same item generally has multiple modified versions, the embodiment of the present invention further provides a method for online previewing of the prototype graph, which specifically includes the steps as shown in fig. 2:
201. and determining the item corresponding to the data compression packet to be uploaded.
For the Web product development process, a large number of product prototype graphs which need to be shared in a development team exist in each project, and for one development team, a plurality of projects are generally developed at the same time, so that data compression packages for different projects need to be stored according to the corresponding projects and different positions, wherein the different positions can be different servers or different storage addresses in the same server.
For members in the development team, when uploading the data compression package of a certain project, it is required to determine whether the project exists, that is, determine whether the project is the first person to upload the data compression package related to the project, specifically, it may be determined by querying the project name or other project identifiers, if the project exists, the project may be selected, the data compression package may be uploaded to the server corresponding to the project, and if not, the user may be required to create a new project for the data compression package, that is, determine the server storing the data related to the new project, and then upload the data compression package to the server corresponding to the new project.
Further, when creating a new item, it is also necessary to obtain item information, where the item information includes at least an item name, a version number, and the like, where the version number is continuously updated according to a data compression packet uploaded by the item. Such item information is typically provided by a user, such as entering the item information through an input interface. Then, the server for storing the data of the new item needs to be determined, specifically, the user can manually specify the server, or can select default, that is, the corresponding server is determined by the system according to a preset algorithm. After the server is determined, a new project is created in the system based on the project information.
202. And obtaining the data compression packet to be uploaded.
203. And detecting whether the file format of the data compression packet is a preset format or not.
In order to ensure access to the online preview, it is necessary to limit the file format of the uploaded data compression package, and for this purpose, after the data compression package is acquired, the file format of the data compression package is detected. If the file format does not conform to the preset format, alarm information needs to be generated to prompt the user that the file format of the data compression packet to be uploaded is wrong, and the data compression packet with the correct file format needs to be redetermined.
And after determining that the file format accords with the preset format, executing uploading operation.
204. And uploading the data compression packet conforming to the preset format to a server.
In this step, the data compression packet will be uploaded to the server in the form of an input stream.
205. And obtaining the access identification of the server and storing the storage address of the data compression packet.
206. And decompressing the data in the data compression packet into the current folder by the server according to the storage address.
Because the file format of the data compression packet is preset, after receiving the completed data compression packet, the server decompresses the uploaded data compression packet into the current folder, that is, decompresses the data compression packet on the current storage path of the data compression packet, so as to obtain a specific product prototype graph therein. The data in this embodiment, that is, the product prototype graph, may be an HTML page, or may be an HTML DOM element.
207. And generating an online preview address of the data in the data compression packet according to the access identification and the storage address of the server.
Specifically, this step combines the access identifier of the server with the storage address, and obtains a new access address, i.e., an online preview address of the data, through address mapping. Other users can realize online real-time preview of the product prototype graph by accessing the online preview address without downloading the data compression packet.
208. And encrypting the generated online preview address by adopting an advanced encryption standard algorithm.
In order to ensure the security of the data in the data compression packet, after the online preview address is generated, the online preview address needs to be encrypted. In this embodiment, but not limited to, an advanced encryption standard algorithm (AES, advanced Encryption Standard) is used for data encryption, the AES encryption algorithm is a common symmetric encryption algorithm, the specific encryption principle of the AES encryption algorithm is not described in detail in this step, and by encrypting the online preview address, an access user or a browsing user cannot directly obtain information such as an access path and a data name of data from address data information, so that leakage of product prototype image pages and HTML DOM element data is effectively prevented.
209. And according to the project authority of the access user, displaying a project list which can be previewed on line by the access user.
The item list may display information such as item names, version numbers, online preview addresses, creation time, creator, etc. corresponding to each item. The item list can be further specifically divided into a full item list and an updated item list according to the selection of the access user, wherein all items which can be previewed on line by the access user and on-line preview addresses of data of different versions corresponding to the items are recorded in the full item list; and the updated items recorded in the updated item list are online preview addresses of the updated data corresponding to the items which can be previewed online by the access user and exist in the appointed time period.
In addition, the project authority is configured for the access user by the administrator, that is, the administrator determines which users have the project authority of the project according to the created project and configures the project authority of the project to the corresponding users, so that the administrator needs to perform authority management on the created project, for example, the corresponding relationship between the project and the users can be determined by maintaining a project authority table, and when the access user logs in, the server can determine the project which can be accessed by the access user according to the login information of the access user, such as the work number, the user name and the like. And users accessing the items also need to be subjected to authority verification during access, and only users with authority are allowed to preview or upload the data compression package online. In this embodiment, the verification of the item rights may be achieved by encrypting the item identification.
Further, when the online preview address is determined to be generated, the item list can be updated, so that the user can more clearly find the item with new data when looking up the item list.
Based on the above embodiment, the method for online previewing of data provided by the embodiment of the present invention may be applied to a data sharing platform, where a user registers as a user with specified rights on the platform, and when the user logs in the sharing platform, the user may search for data corresponding to a specified item to be viewed through inputting an item identifier, and may also view an item list, and directly preview corresponding data content through an online preview address recorded in the item list, without downloading a related data compression packet. And the user can also upload data compression packages related to the item in the specified item and can create a new item.
Further, as an implementation of the method embodiment shown in fig. 1, the embodiment of the present invention provides a device for online previewing of data, where the device may upload data to be shared in a compressed packet form, and may enable other access users to online preview specific data in the compressed packet. The embodiment of the device corresponds to the foregoing method embodiment, and for convenience of reading, details of the foregoing method embodiment are not described one by one in this embodiment, but it should be clear that the interaction device in this embodiment can correspondingly implement all the foregoing method embodiments. As shown in fig. 3, the device includes:
an obtaining unit 31, configured to obtain a data compression packet to be uploaded;
a data sending unit 32, configured to upload the data compression packet obtained by the obtaining unit 31 to a server, and obtain an access identifier of the server and a storage address for storing the data compression packet;
a decompression unit 33, configured to decompress the data in the data compression packet into a current folder according to the storage address obtained by the data transmission unit 32;
an address generating unit 34, configured to generate an online preview address of the data in the data compression packet according to the access identifier and the storage address of the server acquired by the acquiring unit 31.
Further, as shown in fig. 4, the apparatus further includes:
a detecting unit 35, configured to detect, after the acquiring unit 31 acquires a data compression packet to be uploaded, whether a file format of the data compression packet is a preset format;
and an alarm unit 36, configured to generate alarm information to prompt an error in the file format of the data compression packet if the detection unit detects that the file format of the data compression packet is not the preset format.
Further, as shown in fig. 4, the acquisition unit 31 includes:
the item detection module 311 is configured to determine an item corresponding to the data compression packet to be uploaded, where the item corresponds to a server storing item data;
a determining module 312, configured to determine that, if the item detection module determines that the item already exists, the server corresponding to the item is the server uploaded by the data compression packet;
and the creation module 313 is configured to create a new item for the data compression packet to be uploaded if the item detection module determines that the item does not exist.
Further, the creation module 313 is specifically configured to obtain, when a new item is created, the item information, where the item information includes at least an item name, a version number, and an item right, where the item right is used to define a user who previews the item online; a server for determining the new item storage data; and creating the new project according to the project information and the server.
Further, as shown in fig. 4, the apparatus further includes:
a determining unit 37, configured to determine, by a server, an item right of an access user according to login information of the access user, where the item right is used to define an item that the access user can preview online;
and a display unit 38, configured to display, according to the item authority of the access user, an item list that can be previewed online by the access user, where the item list is divided into a full item list and an updated item list according to the selection of the access user, where the full item list records online preview addresses of different versions of data corresponding to all items that can be previewed online by the access user, and the updated item list records online preview addresses of updated data corresponding to items that can be previewed online by the access user in a specified period of time.
Further, as shown in fig. 4, the apparatus further includes:
an updating unit 39 for updating the item list when it is determined that the address generating unit 34 generates an online preview address.
Further, as shown in fig. 4, the apparatus further includes:
an encrypting unit 30 for encrypting the online preview address generated by the address generating unit 34 when an advanced encryption standard algorithm is adopted.
Further, an embodiment of the present invention further provides a storage medium, where the storage medium is configured to store a computer program, where when the computer program runs, control an electronic tag where the storage medium is located to execute the method for online previewing of data described in fig. 1 and fig. 2.
In summary, the method and the device for online previewing of data according to the embodiments of the present invention control the server to decompress the data in the data compression packet in the currently stored folder when uploading the data compression packet to the server, and redirect the decompressed data according to the access identifier of the server and the storage address of the stored data compression packet, so as to obtain online previewing addresses of the data, so that other users can directly view the data content online by accessing the online previewing addresses, without the need of viewing after the user downloads the data compression packet from the server to the local, thereby greatly saving the time required by the user to view the data, especially for the product prototype graph with larger data volume, and helping to improve the sharing efficiency of the data.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the methods and apparatus described above may be referenced to one another. In addition, the "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent the merits and merits of the embodiments.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general-purpose systems may also be used with the teachings herein. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
Furthermore, the memory may include volatile memory, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), in a computer readable medium, the memory including at least one memory chip.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (8)

1. A method for online previewing of data, the method comprising:
acquiring a data compression packet to be uploaded, and specifically determining an item corresponding to the data compression packet to be uploaded, wherein the item corresponds to a server address for storing item data; if the project exists, determining that the server corresponding to the project is the server uploaded by the data compression packet; if the item does not exist, creating a new item for the data compression packet to be uploaded;
uploading the data compression packet to a server, and acquiring an access identifier of the server and a storage address for storing the data compression packet;
decompressing, by the server, the data in the data compression packet into a current folder according to the storage address;
generating an online preview address of the data in the data compression packet according to the access identifier and the storage address of the server;
the method further comprises the steps of:
determining the project authority of an access user by a server according to login information of the access user, wherein the project authority is used for limiting the project which can be previewed on line by the access user;
according to the item authority of the access user, displaying an item list which can be previewed on line by the access user, wherein the item list is divided into a full item list and an updated item list according to the selection of the access user, the full item list is recorded with data on-line preview addresses of different versions corresponding to all items which can be previewed on line by the access user, and the updated item list is recorded with updated data on-line preview addresses corresponding to the items which can be previewed on line by the access user and are updated in a specified time period.
2. The method of claim 1, wherein after obtaining the data compression packet to be uploaded, the method further comprises:
detecting whether the file format of the data compression packet is a preset format or not;
if not, generating alarm information to prompt the file format error of the data compression packet.
3. The method according to claim 2, wherein the method further comprises:
when a new project is created, acquiring project information, wherein the project information at least comprises a project name and a version number;
a server for determining the new item storage data;
and creating the new project according to the project information and the server.
4. The method according to claim 1, wherein the method further comprises:
the list of items is updated when it is determined that an online preview address is generated.
5. The method of claim 1, wherein the data in the data compression packet comprises: HTML page, HTMLDOM element.
6. The method according to claim 1, wherein the method further comprises:
and encrypting the generated online preview address by adopting an advanced encryption standard algorithm.
7. An apparatus for online previewing of data, the apparatus comprising:
an obtaining unit, configured to obtain a data compression packet to be uploaded, where the obtaining unit includes: the item detection module is used for determining an item corresponding to the data compression packet to be uploaded, and the item corresponds to a server for storing item data; the determining module is used for determining that the server corresponding to the project is the server uploaded by the data compression packet if the project detection module determines that the project exists; the creation module is used for creating a new item for the data compression packet to be uploaded if the item detection module determines that the item does not exist;
the data transmitting unit is used for uploading the data compression packet obtained by the obtaining unit to a server, and obtaining an access identifier of the server and a storage address for storing the data compression packet;
the decompression unit is used for decompressing the data in the data compression packet to the current folder by the server according to the storage address;
the address generating unit is used for generating an online preview address of the data in the data compression packet according to the access identifier and the storage address of the server acquired by the data transmitting unit;
the apparatus further comprises:
the determining unit is used for determining the project authority of the access user according to the login information of the access user by the server, wherein the project authority is used for limiting the project which can be previewed on line by the access user;
the display unit is used for displaying an item list which can be previewed on line by the access user according to the item authority of the access user, wherein the item list is divided into a full item list and an updated item list according to the selection of the access user, the full item list is recorded with data on-line preview addresses of different versions corresponding to all items which can be previewed on line by the access user, and the updated item list is recorded with updated data on-line preview addresses corresponding to the items which can be previewed on line by the access user and are stored in a designated time period.
8. A storage medium for storing a computer program, wherein the computer program when run controls a management server on which the storage medium resides to perform the method of online previewing of data according to any one of claims 1 to 6.
CN202010115417.8A 2020-02-25 2020-02-25 Method and device for online previewing of data Active CN111352910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010115417.8A CN111352910B (en) 2020-02-25 2020-02-25 Method and device for online previewing of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010115417.8A CN111352910B (en) 2020-02-25 2020-02-25 Method and device for online previewing of data

Publications (2)

Publication Number Publication Date
CN111352910A CN111352910A (en) 2020-06-30
CN111352910B true CN111352910B (en) 2024-04-16

Family

ID=71197162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010115417.8A Active CN111352910B (en) 2020-02-25 2020-02-25 Method and device for online previewing of data

Country Status (1)

Country Link
CN (1) CN111352910B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868321A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 File management method and device
CN107426588A (en) * 2017-07-12 2017-12-01 深圳创维-Rgb电子有限公司 One kind obtains configuration information of television method, system and storage device
CN108804503A (en) * 2018-04-12 2018-11-13 北京明朝万达科技股份有限公司 A kind of online method for previewing of document and system
CN109766321A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 A kind of sharing files method, apparatus, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10623354B2 (en) * 2015-11-18 2020-04-14 Oath Inc. Preview of compressed file email attachments

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868321A (en) * 2016-03-25 2016-08-17 乐视控股(北京)有限公司 File management method and device
CN107426588A (en) * 2017-07-12 2017-12-01 深圳创维-Rgb电子有限公司 One kind obtains configuration information of television method, system and storage device
CN108804503A (en) * 2018-04-12 2018-11-13 北京明朝万达科技股份有限公司 A kind of online method for previewing of document and system
CN109766321A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 A kind of sharing files method, apparatus, computer equipment and storage medium

Also Published As

Publication number Publication date
CN111352910A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
WO2019041766A1 (en) Page resource loading method and apparatus, terminal device and medium
CN109376133B (en) File access method and file access system
US20130275398A1 (en) Cloud service enabled to handle a set of files depicted to a user as a single file in a native operating system
US9716771B2 (en) Cache control for web application resources
US8615477B2 (en) Monitoring relationships between digital items on a computing apparatus
CN101840471B (en) Document right control method and device
CN104992124A (en) Document safety access method for cloud storage environment
US20150150081A1 (en) Template representation of security resources
CN104361007A (en) Browser and processing method for browser favorites
US20110010754A1 (en) Access control system, access control method, and recording medium
CN111352910B (en) Method and device for online previewing of data
CN116644250B (en) Page detection method, page detection device, computer equipment and storage medium
JP6755539B2 (en) Methods and equipment for publishing copyrighted works on networks
CN106598567A (en) Method and device for displaying page elements on terminal equipment
CN107294766B (en) Centralized control method and system
CN113836169A (en) Clickhouse-based data processing method, device and medium
CN111651416B (en) Sketch project file uploading preview method, system, equipment and medium
US10853057B1 (en) Software library versioning with caching
CN110647766A (en) Method and system for ensuring file downloading safety of data warehouse
AU2020201415B2 (en) Document tamper detection
CN110968758B (en) Webpage data crawling method and device
Boopathy et al. Data type identification and extension validator framework model for public cloud storage
CN115994185A (en) Medical data management method and system based on non-relational database
CN116737657A (en) Document management method and device, storage medium and electronic equipment
CN117453307A (en) Method, equipment and storage medium for supporting file previewing of multi-type browser

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant