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

Method and device for online previewing of data Download PDF

Info

Publication number
CN111352910A
CN111352910A CN202010115417.8A CN202010115417A CN111352910A CN 111352910 A CN111352910 A CN 111352910A CN 202010115417 A CN202010115417 A CN 202010115417A CN 111352910 A CN111352910 A CN 111352910A
Authority
CN
China
Prior art keywords
data
server
data compression
compression packet
project
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.)
Granted
Application number
CN202010115417.8A
Other languages
Chinese (zh)
Other versions
CN111352910B (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

Images

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, relates to the technical field of computers, and mainly aims to enable other development members to online preview a product prototype graph after the product prototype graph is uploaded 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, data in the data compression packet to 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 identifier and the storage address of the server. The invention is mainly used for online preview of data.

Description

Method and device for online previewing of data
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for online previewing of data.
Background
In the Web product development process, improvement, revision and confirmation of product prototypes require mutual sharing and circulation among the personnel in the development team. And the traditional sharing approach is mainly realized by mails of team members or enterprise network disks. For example, in the form of a mail, someone (typically a product manager) needs to manually export an HTML document, package and compress the HTML document, upload the HTML document to the mail in the form of an attachment, send the attachment to a mailbox of another team member in a recipient adding manner, check and receive the attachment by the other team member, download the attachment, and decompress the attachment to a local computer for viewing. When the method is implemented in the enterprise network disk, the HTML document needs to be manually exported and uploaded to the corresponding storage directory, and other members are notified to view the new document on the enterprise network disk, while other members also need to download the new document from the enterprise network disk to view the new document locally, and for a general enterprise network disk, only intranet access is supported, and the access mode of team members is limited. Therefore, the traditional sharing approach is mainly that team members download documents of product prototype diagrams to local for viewing, but for current Web development projects, the required product prototype diagrams are larger and larger, and the compressed documents occupy longer time for uploading or downloading, which is not beneficial to the execution progress of development teams, thereby reducing development efficiency.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for online previewing data, and a main objective of the present invention is to enable other development members to online preview a product prototype diagram after uploading the product prototype diagram in a compressed package form.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in a first aspect, the present invention provides a method for online previewing of data, including:
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, data in the data compression packet to 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 identifier and the storage address of the server.
Preferably, after obtaining the data compression packet to be uploaded, the method further includes:
detecting whether the file format of the data compression packet is a preset format or not;
and if not, generating alarm information to prompt that the file format of the data compression packet is wrong.
Preferably, the acquiring the data compression packet to be uploaded includes:
determining a project corresponding to the data compression packet to be uploaded, wherein the project corresponds to a server address for storing project data;
if the project already exists, determining that a server corresponding to the project is a server for uploading the data compression packet;
and if the project does not exist, creating a new project for the data compression packet to be uploaded.
Preferably, the method further comprises:
when a new project is created, acquiring the project information, wherein the project information at least comprises a project name and a version number;
determining a server of the new project storage data;
and creating the new project according to the project information and the server.
Preferably, the method further comprises:
determining, by a server, an item authority of an access user according to login information of the access user, wherein the item authority is used for limiting an item which can be previewed by the access user on line;
displaying an item list which can be previewed online by an 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 online preview addresses of different versions corresponding to all items which can be previewed online by the access user, and the updated item list is recorded with updated data online preview addresses corresponding to items which can be previewed online by the access user and are updated in a specified time period.
Preferably, the method further comprises:
updating the item list 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 a data compression packet to be uploaded;
the data sending 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 into a 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 that the file format of the data compression packet is wrong if the detection unit detects that the file format of the data compression packet is not the preset format.
Preferably, the acquiring 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;
a determining module, configured to determine that a server corresponding to the item is a server to which the data compression packet is uploaded if the item detecting module determines that the item already exists;
and the creating module is used for creating a new project for the data compression packet to be uploaded if the project detection module determines that the project does not exist.
Preferably, the creating module is specifically configured to, when a new project is created, obtain the project information, where the project information at least includes a project name and a version number; determining a server of the new project 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 item authority of an access user by a server according to login information of the access user, wherein the item authority is used for limiting an item which can be previewed by the access user on line;
the display unit is used for displaying an item list which can be previewed online by an 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 data online preview addresses of different versions corresponding to all items which can be previewed online by the access user are recorded in the full item list, and the updated data online preview addresses corresponding to the updated items which can be previewed online by the access user in a specified time period are recorded in the updated item list.
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.
In another aspect, the present invention further provides a storage medium, where the storage medium is used to store a computer program, where the computer program controls, when running, a gateway device where the storage medium is located to execute the method for online previewing of data according to the first aspect.
By means of the technical scheme, the method and the device for online previewing data provided by the invention have the advantages that when the data compression packet is uploaded to the server, the server is controlled to decompress the data in the data compression packet in the currently stored folder, address mapping is carried out on the decompressed data according to the access identifier of the server and the storage address of the stored data compression packet, and the online previewing addresses of the data are obtained.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
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 refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for online previewing data according to an embodiment of the present invention;
FIG. 2 is a flow chart of another method for online previewing 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 apparatus for online previewing 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 invention are shown in the drawings, it should be understood that the invention can 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 the specific execution steps are shown in fig. 1, and the method comprises the following steps:
101. and acquiring a 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, 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 the data compression packet to be uploaded is extracted according to the storage path.
102. And 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.
Based on an operation interface provided for a user, the user triggers an uploading instruction, for example, an uploading case is set in the interface, so that one-click processing of uploading operation is realized. And uploading the data compression packet to a server according to the uploading instruction.
The uploaded servers may be pre-designated servers, randomly determined servers, or servers determined based on algorithm calculation, such as load balancing, storage capacity of the servers, and the like.
And acquiring an access identifier of the server while uploading the data compression packet to the server, wherein the access identifier can be an ID (identity), a domain name and the like of the server, and acquiring a storage address for storing the data compression packet.
103. And decompressing the data in the data compression packet to 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 package without downloading the data compression package in a whole.
104. And 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 step is to map 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 view 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 the data compression packet is uploaded to the server, the server is controlled to decompress the data in the data compression packet in the currently stored folder, and address mapping is performed on 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 the online preview address of the data.
When the method is applied to Web product development, personnel in a development team can upload a compression package of the manufactured product prototype drawing to a server, the server decompresses the compression package into a current folder according to a storage address, so that an online preview address corresponding to the product prototype drawing is obtained, other members of the team can preview the specific product prototype drawing online by sharing the address, and a large amount of time is not consumed for downloading the compression package.
Further, on the basis of the embodiment shown in fig. 1, when the embodiment of the present invention is directed to a specific application of a product prototype diagram, since the product prototype diagram is based on a specific project and there is a need to modify and upload for multiple times, that is, a same project generally has multiple modified versions, an embodiment of the present invention further provides a method for previewing a prototype diagram on line, which includes the specific steps shown in fig. 2:
201. and determining the corresponding item of the data compression packet to be uploaded.
For the Web product development process, a large number of product prototype diagrams which need to be shared in a development team exist in each project, and for a development team, a plurality of projects are generally developed simultaneously, for this reason, data compression packages for different projects need to be stored in different positions according to the corresponding projects, wherein the different positions can be different servers or different storage addresses in the same server.
For the members in the development team, when a data compression package of a certain project is to be uploaded, it is necessary to determine whether the project exists first, that is, whether the project is the first person who uploads the data compression package related to the project, specifically, it may be determined by querying a project name or other project identifiers, if the project exists, the project may be selected, the data compression package is uploaded to a server corresponding to the project, and if the project does not exist, the user is required to create a new project for the data compression package, that is, a server storing data related to the new project is determined, and then the data compression package is uploaded to a server corresponding to the new project.
Further, when a new project is created, project information at least including a project name, a version number, and the like needs to be acquired, wherein the version number is continuously updated according to a data compression packet uploaded by the project. Such project information is typically provided by a user, such as entry of project information through an input interface. After that, the server for storing the data of the new project needs to be determined, specifically, the user may manually designate the server, or may select a default, that is, the system determines the corresponding server according to a preset algorithm. After determining the server, a new project is created in the system based on the project information.
202. And acquiring a data compression packet to be uploaded.
203. And detecting whether the file format of the data compression packet is a preset format.
In order to ensure the access of online preview, the file format of the uploaded data compression package needs to be limited, and for this reason, after the data compression package is obtained, 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 a user that the file format of the data compression packet to be uploaded by the user is wrong, and the data compression packet with the correct file format needs to be determined again.
And after the file format is determined to accord with the preset format, performing uploading operation.
204. And uploading the data compression packet conforming to the preset format to a server.
In this step, the data compression packet is uploaded to the server in the form of an input stream.
205. And acquiring an access identifier of the server and a storage address for storing the data compression packet.
206. And decompressing the data in the data compression packet to the current folder by the server according to the storage address.
Due to the fact that the file format of the data compression packet is preset, after the server receives the finished data compression packet, the uploaded data compression packet is decompressed to a current folder, namely, the data compression packet is decompressed on a current storage path, and a specific product prototype diagram is obtained. The data in this embodiment, that is, the product prototype diagram, may be an HTML page, and may also be an HTML DOM element.
207. And 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.
Specifically, in this step, a new access address, that is, an online preview address of the data, is obtained by address mapping according to the combination of the access identifier and the storage address of the server. Other users can realize online real-time preview of the prototype graph of the product by accessing the online preview address without downloading a data compression package.
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 the embodiment, an Advanced Encryption Standard (AES) algorithm is adopted for data encryption, the AES algorithm is a common symmetric encryption algorithm, the specific encryption principle is not described in detail in the 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 data of a product prototype graph page and HTML DOM element data is effectively prevented.
209. And displaying the item list which can be previewed online by the access user according to the item authority of the access user.
The project list shows information such as project names, version numbers, online preview addresses, creation time, creators and the like corresponding to all projects. The item list can be 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 by the access user on line and online preview addresses of data of different versions corresponding to the items are recorded in the full item list; and the items which can be previewed online by the accessing user and updated in a specified time period and online preview addresses of updated data corresponding to the items are recorded in the updated item list.
In addition, the project authority is configured by the administrator for the access user, 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 corresponding users, so that the administrator needs to perform authority management on the created project, for example, the administrator can determine the corresponding relationship between the project and the users by maintaining a project authority table, and when the access user logs in, the server can determine the project that can be accessed by the access user according to the login information of the access user, such as a job number, a user name, and the like. And the user who accesses the item also needs to verify the authority of the user when accessing the item, and only the user with the authority allows the online preview or upload of the data compression package. In this embodiment, the verification of the item right may be implemented by encrypting the item identifier.
Further, when the online preview address is determined to be generated, the item list can be updated, so that the user accessing the item list can more clearly find the item with new data.
Based on the above embodiments, the method for online previewing of data provided by the embodiments of the present invention may be applied to a data sharing platform, where a user registers as a user with a specified right 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 by 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 package. And the user can also upload the data compression package related to the project in the specified project and can create a new project.
Further, as an implementation of the method embodiment shown in fig. 1, an 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 package, and enable other access users to online preview specific data in the data compressed package. The embodiment of the apparatus corresponds to the foregoing method embodiment, and details in the foregoing method embodiment are not repeated in this embodiment for convenience of reading, but it should be clear that the interactive apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiment. As shown in fig. 3 in detail, the apparatus 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 where the data compression packet is stored;
the decompression unit 33 is configured to decompress, to the storage address obtained by the data sending unit 32, the data in the data compression packet into the current folder;
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:
the detecting unit 35 is configured to detect whether a file format of a data compression packet is a preset format after the acquiring unit 31 acquires the data compression packet to be uploaded;
and the alarm unit 36 is configured to generate alarm information to prompt that the file format of the data compression packet is wrong 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 acquiring 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, if the item detecting module determines that the item already exists, that a server corresponding to the item is a server to which the data compression packet is uploaded;
a creating module 313, configured to create a new project for the to-be-uploaded data compression packet if the project detection module determines that the project does not exist.
Further, the creating module 313 is specifically configured to, when a new project is created, obtain the project information, where the project information at least includes a project name, a version number, and a project authority, where the project authority is used to limit a user who previews the project online; determining a server of the new project 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 the 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;
a display unit 38, configured to display an item list that can be previewed online by an accessing user according to an item permission of the accessing user, where the item list is divided into a full item list and an updated item list according to a selection of the accessing user, data online preview addresses of different versions corresponding to all items that the accessing user can preview online are recorded in the full item list, and an updated data online preview address corresponding to an item that the accessing user can preview online within a specified time period is recorded in the updated item list.
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 the online preview address.
Further, as shown in fig. 4, the apparatus further includes:
and an encryption unit 30, configured to encrypt the online preview address generated by the address generation 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 used to store a computer program, where the computer program controls, when running, the 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 apparatus for online previewing data according to the embodiments of the present invention are that when a data compression packet is uploaded to a server, a control server decompresses data in the data compression packet in a currently stored folder, and redirects the decompressed data according to an access identifier of the server and a storage address where the data compression packet is stored, so as to obtain online preview addresses of the data.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In addition, the memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The 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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, 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 above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for online previewing of data, the method 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, data in the data compression packet to 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 identifier and the storage address of the server.
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;
and if not, generating alarm information to prompt that the file format of the data compression packet is wrong.
3. The method of claim 1, wherein the obtaining the compressed data packet to be uploaded comprises:
determining a project corresponding to the data compression packet to be uploaded, wherein the project corresponds to a server address for storing project data;
if the project already exists, determining that a server corresponding to the project is a server for uploading the data compression packet;
and if the project does not exist, creating a new project for the data compression packet to be uploaded.
4. The method of claim 3, further comprising:
when a new project is created, acquiring the project information, wherein the project information at least comprises a project name and a version number;
determining a server of the new project storage data;
and creating the new project according to the project information and the server.
5. The method of claim 1, further comprising:
determining, by a server, an item authority of an access user according to login information of the access user, wherein the item authority is used for limiting an item which can be previewed by the access user on line;
displaying an item list which can be previewed online by an 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 online preview addresses of different versions corresponding to all items which can be previewed online by the access user, and the updated item list is recorded with updated data online preview addresses corresponding to items which can be previewed online by the access user and are updated in a specified time period.
6. The method of claim 5, further comprising:
updating the item list when it is determined that an online preview address is generated.
7. The method of claim 1, wherein compressing the data in the packet comprises: HTML page, HTML dom element.
8. The method of claim 1, further comprising:
and encrypting the generated online preview address by adopting an advanced encryption standard algorithm.
9. An apparatus for online previewing of data, the apparatus comprising:
the acquisition unit is used for acquiring a data compression packet to be uploaded;
the data sending 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 into a 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.
10. A storage medium for storing a computer program, wherein the computer program controls a management server where the storage medium is located to execute the method for online previewing of data according to any one of claims 1 to 8 when running.
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 true CN111352910A (en) 2020-06-30
CN111352910B 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 (5)

* 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
US20170142042A1 (en) * 2015-11-18 2017-05-18 Yahoo! Inc. Preview of Compressed File Email Attachments
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170142042A1 (en) * 2015-11-18 2017-05-18 Yahoo! Inc. Preview of Compressed File Email Attachments
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
CN111352910B (en) 2024-04-16

Similar Documents

Publication Publication Date Title
JP6876790B2 (en) Kernel event trigger
US9245137B2 (en) Management of digital information
CN101840471B (en) Document right control method and device
TWI552015B (en) Method,computer system and non-transitory computer readable storage medium for composite document
US11645424B2 (en) Integrity verification in cloud key-value stores
CN105488078A (en) Web page data caching method and equipment
US20160269446A1 (en) Template representation of security resources
CN101689238B (en) File management system, device
US10146926B2 (en) Differentiated authentication for compartmentalized computing resources
CN111259364A (en) Method, device, equipment and storage medium for using national secret encryption card
US20110010754A1 (en) Access control system, access control method, and recording medium
CN111352910B (en) Method and device for online previewing of data
JP6755539B2 (en) Methods and equipment for publishing copyrighted works on networks
CN107294766B (en) Centralized control method and system
CN111651416B (en) Sketch project file uploading preview method, system, equipment and medium
CN113836169A (en) Clickhouse-based data processing method, device and medium
Zhang et al. A study of the use of idas in cloud storage
JP2011159189A (en) Communication system, portal server, authentication server, service server, communication method, and program
CN110995690A (en) Secure storage method and device based on cloud storage
US20210266299A1 (en) Computer method for secure disclosure of information
AU2020201415B2 (en) Document tamper detection
Boopathy et al. Data type identification and extension validator framework model for public cloud storage
Haunts et al. Key Storage and Azure Key Vault
Faridi et al. Selection of Probabilistic Data Structures for SPV Wallet Filtering
Priyadharshini et al. Data Governance on Local Storage in Offsite

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