WO2016172968A1 - 传输云端文件的方法、终端及云端服务器 - Google Patents

传输云端文件的方法、终端及云端服务器 Download PDF

Info

Publication number
WO2016172968A1
WO2016172968A1 PCT/CN2015/078126 CN2015078126W WO2016172968A1 WO 2016172968 A1 WO2016172968 A1 WO 2016172968A1 CN 2015078126 W CN2015078126 W CN 2015078126W WO 2016172968 A1 WO2016172968 A1 WO 2016172968A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
information
cloud
terminal
picture
Prior art date
Application number
PCT/CN2015/078126
Other languages
English (en)
French (fr)
Inventor
宋磊
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP15890348.4A priority Critical patent/EP3258672A4/en
Priority to PCT/CN2015/078126 priority patent/WO2016172968A1/zh
Priority to CN201580007611.1A priority patent/CN106332556B/zh
Publication of WO2016172968A1 publication Critical patent/WO2016172968A1/zh
Priority to US15/796,079 priority patent/US10817470B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • 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/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • G06F16/152File search processing using file content signatures, e.g. hash values
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • 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
    • 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]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Definitions

  • the present invention relates to the field of file transmission technologies, and in particular, to a method, a terminal, and a cloud server for transmitting a cloud file.
  • Cloud storage is a cloud computing system with data storage and management at its core. Simply put, cloud storage puts the resources that need to be stored in the cloud for access by people in need. Users can connect to the cloud at any time, anywhere, through any networkable device, and easily access data. At present, various mobile phone manufacturers have launched their own cloud storage solutions to store key information such as photos, videos and user information captured by mobile phones.
  • the thumbnail of the original picture is often cached locally.
  • the mobile phone sends a request to the cloud requesting. Download the original HD picture.
  • the size of the original image is 2MB to 4MB, and the size of the thumbnail is 100 to 200 KB, which is about 1/20 of the original image. Therefore, the mobile terminal only caches thumbnails and does not cache the original image, which occupies very little mobile storage. space.
  • the cloud original image and the local mobile phone thumbnail are only associated by the file name, so the cloud looks up the saved original image by file name.
  • the technical problem to be solved by the present invention is to provide a method for transmitting a cloud file, a terminal, and a cloud server, which can obtain the corresponding file accurately from the cloud without being restricted by the user to change the file name and the location of the mobile file icon;
  • the range improves the user experience in the terminal.
  • the present invention provides a method for transmitting a cloud file, comprising: receiving a request for acquiring a file, the request including a file identifier of the file; and the file identifier, the established file identifier, and the first a first association relationship between the information, the first information is saved, and the first information is generated by calculating the original data of the file, where the original data refers to the file Differentiating data from other files; sending the first information to the cloud, so that the cloud is found according to the first information, the second association relationship between the created file and the first information The saved file; receiving the file sent by the cloud.
  • the step of receiving the request for acquiring a file includes: calculating, by using the original data of the file, to generate the first information;
  • the file of the first information is sent to the cloud, so that the cloud saves the file and establishes a second association relationship between the file and the first information.
  • the step of receiving the request for acquiring a file includes: sending the file to the cloud; receiving the first information sent by the cloud and establishing And determining, by the file, a first association relationship between the file and the first information, where the first information is generated by the cloud computing the original data of the file.
  • the file identifier is a file name of the file.
  • the first information is a verification result generated by calculating, by using a verification algorithm, the original data of the file.
  • the first information is a message digest result generated by calculating, by using a message digest algorithm, the original data of the file.
  • the file is a picture in the JPEG format of the joint photo expert group;
  • the step of receiving the request for acquiring the file includes: converting the image into a thumbnail, and Using the file name of the thumbnail as the file name of the picture, calculating original data of the picture, generating the first information; saving the file name of the picture and the first information in the file An image file format EXIF table of the thumbnail image; the file name carrying the picture and the picture of the first information are sent to the cloud, so that the cloud saves the picture and creates the picture and the a file name of the picture and a third relationship between the first information.
  • the present invention provides a method for transmitting a cloud file, including: receiving first information sent by a terminal, where the first information is generated according to calculation of original data of the file, where the original data refers to The file may be distinguished from original data of other files; the saved file is searched according to the first information, the second association relationship between the created file and the first information; The file is sent to the terminal.
  • the method before the step of receiving the first information sent by the terminal, the method includes: receiving, by the terminal, the file that carries the first information, so as to facilitate The cloud saves the file and establishes a second association relationship between the file and the first information.
  • the step of receiving the first information sent by the terminal includes: receiving the file sent by the terminal; performing calculation on the original data of the file, and generating Transmitting the first information to the terminal, so that the terminal establishes a first association relationship between a file identifier of the file and the first information.
  • the file identifier is a file name of the file.
  • the first information is a verification result generated by calculating, by using a verification algorithm, the original data of the file.
  • the first information is a message digest result generated by calculating, by using a message digest algorithm, the original data of the file.
  • the file is a picture in the JPEG format of the joint photo expert group;
  • the step of receiving the first information sent by the terminal includes: receiving the Converting the picture into a thumbnail, and using the file name of the thumbnail as the file name of the picture; calculating the original data of the picture to generate the first information; a file name, the first information is saved in an EXIF table of the thumbnail; the thumbnail is sent to the terminal, so that the terminal establishes the picture, a file name of the picture, and the A third relationship between information.
  • the present invention provides a terminal, where the terminal includes: a first receiving module, an obtaining module, a first sending module, and a second receiving module; and the first receiving module is configured to receive a request for acquiring a file, where The request includes the file identifier of the file, and the obtaining module is configured to obtain the saved first information by using the file identifier, the first association relationship between the created file identifier and the first information, The first information is generated by calculating the original data of the file, where the original data refers to data that the file can be distinguished from other files; the first sending module is configured to use the first information Sending to the cloud, so that the cloud finds the saved file according to the first information, the second association relationship between the created file and the first information; the second receiving module uses Receiving the file sent by the cloud.
  • the terminal further includes: a first generating module and a second sending module, where the first generating module is configured to calculate the original data of the file
  • the second sending module is configured to send the file carrying the first information to the cloud, so that the cloud saves the file and creates the file and Said A second association between the first information.
  • the terminal further includes: a third sending module and a third receiving module, where the third sending module is configured to send the file to the cloud;
  • the third receiving module is configured to receive the first information sent by the cloud, and establish a first association relationship between the file identifier and the first information, where the first information is the cloud pair
  • the raw data of the file is generated by calculation.
  • the file identifier is a file name of the file.
  • the first information is a verification result generated by calculating, by using a verification algorithm, the original data of the file.
  • the first information is a message digest result generated by calculating, by using a message digest algorithm, the original data of the file.
  • the file is a picture in the JPEG format of the joint photo expert group;
  • the terminal further includes: a conversion module, a second generation module, a saving module, and a fourth sending module; a conversion module, configured to convert the image into a thumbnail, and use a file name of the thumbnail as a file name of the image, and the second generating module is configured to calculate original data of the image And generating, by the saving module, the file name of the picture and the first information in an image file format EXIF table of the thumbnail; the fourth sending module, And sending the file name carrying the picture and the picture of the first information to the cloud, so that the cloud saves the picture and establishes the picture, a file name of the picture, and the The third relationship between the first information.
  • the present invention provides a cloud server, where the server includes: a first receiving module, a searching module, and a first sending module; and the first receiving module is configured to receive first information sent by the terminal, where the first The information is generated according to the calculation of the original data of the file, where the original data refers to data that the file can be distinguished from other files; the searching module is configured to be based on the first information, And searching, by the second association relationship between the file and the first information, the saved file; and sending, by the first sending module, the found file to the terminal.
  • the server further includes: a second receiving module, where the second receiving module is configured to receive the file that is sent by the terminal and that carries the first information So that the cloud saves the file and establishes a second association relationship between the file and the first information.
  • the server further includes: a third receiving module, a first generating module, and a second sending module, where the third receiving module is configured to receive the sending by the terminal
  • the first generating module is configured to calculate the original data of the file to generate the first information
  • the second sending module is configured to send the first information to the terminal So that the terminal establishes a first association relationship between the file identifier of the file and the first information.
  • the file identifier is a file name of the file.
  • the first information is a verification result generated by calculating, by using a verification algorithm, the original data of the file.
  • the first information is a message digest result generated by calculating, by using a message digest algorithm, the original data of the file.
  • the file is a picture in the JPEG format of the joint photo expert group;
  • the server further includes: a fourth receiving module, a converting module, a second generating module, a saving module, and the a third sending module, configured to receive the file sent by the terminal, and the converting module, configured to convert the image into a thumbnail, and use the file name of the thumbnail as a a file name of the picture;
  • the second generation module is configured to calculate the original data of the picture to generate the first information;
  • the saving module is configured to: use the file name of the picture, the first A message is stored in the EXIF table of the thumbnail;
  • the third sending module is configured to send the thumbnail to the terminal, so that the terminal establishes the picture, the file name of the picture, and a third association relationship between the first information.
  • the present invention provides a terminal, where the terminal includes: a processor, a memory coupled to the processor, a receiver, and a transmitter; the receiver, configured to receive a request for acquiring a file, where The request includes a file identifier of the file; the memory is configured to store a first association relationship between the created file identifier and the first information, and store the first information; the processor is configured to adjust Obtaining, by using the file identifier, the first association relationship between the file identifier and the first information saved in the memory, and acquiring the saved first information, where the first information is Generated by calculating the original data of the file, the raw data refers to data that the file can be distinguished from other files; the transmitter is configured to, under the control of the processor, the first Sending a message to the cloud, so that the cloud finds the saved file according to the first information, the second association relationship between the established file and the first information; the receiving For Receiving, by the processor, the file sent by the cloud and saving the file in the memory.
  • the present invention provides a cloud server, the server comprising: a processor, a memory, a receiver, and a transmitter coupled to the processor; the memory, configured to store first information, and store the established a second association relationship between the file and the first information, the file is stored; the receiver is configured to receive, by the processor, the first information sent by the terminal, where the first information is Generated according to the original data of the file, the raw data refers to data that the file can be distinguished from other files; the processor is configured to invoke the memory, according to the first information, the The memory stores a second association between the created file and the first information to find the file stored in the memory; the transmitter is configured to be under the control of the processor The found file is sent to the terminal.
  • the invention has the beneficial effects that, different from the prior art, the present invention receives the request for acquiring a file, requests the file identifier including the file, and uses the file identifier, the first association between the created file identifier and the first information. Relationship, obtain the saved first information, send the first information to the cloud, and then receive the file sent by the cloud. Since the first information is generated by calculating the original data of the file, the original data refers to the data that the file can be distinguished from other files. In this way, the user can change the file name, move the file icon, etc. Restrictions enable users to obtain corresponding accurate files from the cloud; further, the user experience in the terminal can be greatly improved.
  • FIG. 1 is a flowchart of an embodiment of a method for transmitting a cloud file according to the present invention
  • FIG. 2 is a flowchart of another embodiment of a method for transmitting a cloud file according to the present invention.
  • FIG. 3 is a flowchart of still another embodiment of a method for transmitting a cloud file according to the present invention.
  • FIG. 4 is a flowchart of still another embodiment of a method for transmitting a cloud file according to the present invention.
  • FIG. 5 is a flowchart of still another embodiment of a method for transmitting a cloud file according to the present invention.
  • FIG. 6 is a flowchart of still another embodiment of a method for transmitting a cloud file according to the present invention.
  • FIG. 7 is a flowchart of still another embodiment of a method for transmitting a cloud file according to the present invention.
  • FIG. 8 is a flowchart of still another embodiment of a method for transmitting a cloud file according to the present invention.
  • FIG. 9 is a schematic structural diagram of an embodiment of a terminal of the present invention.
  • FIG. 10 is a schematic structural view of another embodiment of a terminal of the present invention.
  • FIG. 11 is a schematic structural diagram of still another embodiment of a terminal of the present invention.
  • FIG. 12 is a schematic structural diagram of still another embodiment of a terminal of the present invention.
  • FIG. 13 is a schematic structural diagram of an embodiment of a cloud server according to the present invention.
  • FIG. 14 is a schematic structural diagram of another embodiment of a cloud server according to the present invention.
  • FIG. 15 is a schematic structural diagram of still another embodiment of a cloud server according to the present invention.
  • FIG. 16 is a schematic structural diagram of still another embodiment of a cloud server according to the present invention.
  • FIG. 17 is a schematic structural diagram of a physical device according to an embodiment of a terminal of the present invention.
  • FIG. 18 is a schematic structural diagram of a physical device according to an embodiment of a cloud server according to the present invention.
  • FIG. 1 is a flowchart of an embodiment of a method for transmitting a cloud file according to the present invention.
  • the flowchart is a flowchart executed from a perspective of a terminal.
  • the application scenario of the method is: on the terminal, due to limitation of storage space.
  • the file (especially a file that takes up a lot of space, such as a picture, etc.) is uploaded to the cloud for storage.
  • the user requests to obtain the file, the corresponding file is downloaded from the cloud to the terminal.
  • the invention establishes a new association relationship for accurately acquiring a file, and even if the user performs operations such as changing the file name and moving the file icon, the corresponding file can still be accurately obtained.
  • the method specifically includes:
  • Step S101 Receive a request for acquiring a file, where the request includes a file identifier of the file.
  • the file identifier is used to identify the file, and the file identifier has a corresponding relationship with the file.
  • the user can issue a request for obtaining a file in a plurality of ways, for example, the user clicks on the icon of the file, or the user sends a request by inputting the file name, or the user inputs an incomplete character to search, and then clicks the corresponding search result. Etc. In these ways, icons, file names, characters, etc. are file identifiers.
  • the terminal receives these requests from the user, it receives a request to obtain a file.
  • Step S102 Acquire the saved first information by using a file identifier, a first association relationship between the created file identifier and the first information, where the first information is generated by calculating the original data of the file, and the original data refers to Files can be distinguished from data from other files.
  • the original data of the file is inherent to the file and can be distinguished from the data of other files, such as the date and time the file was created, the type of the file (office document, picture, video, audio, user information, PDF document, etc.), size, file. Characterized content, etc.; if the file is a picture, the original data can also include: shooting aperture, shutter, white balance, sensitivity ISO, focal length and other shooting conditions, as well as the camera brand, model, color coding , the sound recorded during shooting, and so on. These raw data are the original data unique to the file at the time the terminal was created, and the original data of other files. Differentiated data.
  • These data representations are binary data, and the calculation of the data (ie, binary data) can generate the first information. Since the original data is inherent, unique, and different from the original data of other files, the first A message also has the corresponding characteristics, that is: the same original data is calculated to obtain the same first information, and different original data is calculated to obtain different first information, so if the first information is the same, the file can be considered as If the first information is different, the file that the user needs is considered to be not the file that the user needs. Even if the user performs operations such as changing the file name, moving the file icon, etc., the first information of the file remains unchanged, and therefore, based on the first information, it is possible to accurately determine whether it is the corresponding file.
  • the first information is information for searching for a file, and the first association relationship between the file identifier and the first information is pre-established. After receiving the request for obtaining the file by the user, the file identifier and the established file identifier are obtained. The saved first information is obtained by the first association relationship with the first information.
  • Step S103 Send the first information to the cloud, so that the cloud finds the saved file according to the first information, the second association relationship between the established file and the first information.
  • the cloud saves the file, and also stores the second association relationship between the established file and the first information, and sends the first information to the cloud, and after receiving the first information, the cloud can be based on the created file and the first The second association between the information finds the saved file.
  • Step S104 Receive a file sent by the cloud.
  • the embodiment of the present invention receives the request for obtaining a file, and requests the file identifier including the file, and obtains the first information saved by using the file identifier, the first association relationship between the created file identifier and the first information, and the first information is obtained.
  • the process of calculating the original data of the file to generate the first information may be performed in the terminal or in the cloud, and the specific processes are respectively described.
  • step S101 The process of calculating the original data of the file to generate the first information is performed at the terminal. Referring to FIG. 2, before step S101, the method includes:
  • Step S201 Calculate the original data of the file to generate the first information.
  • Step S202 Send the file carrying the first information to the cloud, so that the cloud saves the file and establishes a second association relationship between the file and the first information.
  • the process of calculating the original data of the file to generate the first information is performed in the cloud. Referring to FIG. 3, from the perspective of the terminal, before step S101, the method includes:
  • Step S301 Send the file to the cloud.
  • Step S302 Receive first information sent by the cloud and establish a first association relationship between the file identifier and the first information, where the first information is generated by the cloud computing the original data of the file.
  • the first information is a verification result generated by calculating a raw data of the file by a verification algorithm.
  • the verification algorithm includes but is not limited to: a cyclic redundancy algorithm, a hash algorithm, a parity algorithm, and the like.
  • the code with the check code is composed of two parts: the ontology code and the check code (such as the organization code), the ontology code is the number indicating the encoding object, and the check code is appended to the body code, which is used to The number that verifies the accuracy of the ontology code during the input process.
  • the ontology code can only have one check code, and the check code is obtained through a prescribed mathematical relationship.
  • the original data of the file is input as the ontology code, and the check code (check result) can be obtained through the prescribed mathematical relationship, and each ontology code can only have one check code, and the original data of the file. There is only one verification result, so that the relationship between the file and the verification result can be formed.
  • the first information is a message digest result generated by calculating a raw data of the file by using a message digest algorithm.
  • Message digest algorithms include, but are not limited to, the MD5 algorithm, the SHA-1 algorithm, and the like.
  • the main feature of the message digest algorithm is that the encryption process does not require a key, and the encrypted data cannot be decrypted. Only the same plaintext data can be obtained by the same message digest algorithm to obtain the same ciphertext. Therefore, the original data of the same file is calculated by the message digest algorithm, and the obtained message digest result is the same, so that the relationship between the file and the message digest result can be formed.
  • the file identifier is the file name of the file.
  • the terminal can also send the file name of the file to the cloud.
  • the cloud can first perform a preliminary search by the file name, and then pass the first information (for example, the verification result, the message summary). The results, etc.) are further aligned to ensure that the retrieved file is the corresponding file that the user needs.
  • the file is a picture in the JPEG format of the Joint Photo Experts Group.
  • step S101 including:
  • Step S401 Convert the picture into a thumbnail, and use the file name of the thumbnail as the file name of the picture, and calculate the original data of the picture to generate the first information.
  • the original data of the picture may be calculated by a verification algorithm or a message digest algorithm to generate the first information.
  • Step S402 The file name and the first information of the picture are saved in the image file format EXIF table of the thumbnail. See Table 1 for the EXIF table of thumbnails:
  • Step S403 Send the file name carrying the picture and the picture of the first information to the cloud, so that the cloud saves the picture and establishes a third association relationship between the picture, the file name of the picture, and the first information.
  • the terminal After receiving the request for obtaining the file, the terminal first extracts the file name and the verification result of the file from the EXIF table of the thumbnail, and sends the file name and the verification result (the first information) to the cloud, so that the cloud can perform the file name and check according to the file name. The result was found in the file.
  • the cloud first performs a preliminary search by file name, and then further compares the check results to ensure that the retrieved image is a file corresponding to the thumbnail.
  • FIG. 5 is a flowchart of still another embodiment of a method for transmitting a cloud file according to the present invention.
  • the flowchart corresponds to the flowchart of FIG. 1 and is a flowchart executed from a cloud perspective.
  • the method specifically includes:
  • Step S501 Receive first information sent by the terminal, where the first information is generated according to calculation of original data of the file, where the original data refers to data that the file can be distinguished from other files.
  • the original data of the file is inherent to the file and is used for data that can be distinguished from other files, such as the date and time the file was created, the type of the file (office documents, images, PDF documents, etc.), the size, the characterization content of the file, etc. Etc; if the file is a picture, the raw data can also include: light when shooting Various shooting conditions such as circle, shutter, white balance, sensitivity ISO, focal length, etc., as well as the brand, model, color coding, and sound recorded during shooting, etc. These raw data are data that is inherent, unique, and distinct from the original data of other files when the terminal is created.
  • These raw data representations are binary data, and the original data (ie, binary data) is calculated to generate the first information. Since the original data is inherent, unique, and different from the original data of other files, Therefore, the first information also has corresponding characteristics, that is: the same original data is calculated to obtain the same first information, and different original data is calculated to obtain different first information, so if the first information is the same, the file can be considered as the file. That is, the file required by the user. If the first information is different, the file can be considered as a file that the user needs. Even if the user performs operations such as changing the file name, moving the file icon, and the like, the first information of the file remains unchanged. Therefore, based on the first information, it is possible to accurately determine whether the corresponding file is required by the user.
  • Step S502 Search for the saved file according to the first information, the second association relationship between the created file and the first information.
  • the second association relationship between the file and the first information is pre-established. After receiving the first information sent by the terminal, according to the first information, the second association relationship between the established file and the first information , you can find the file.
  • Step S503 Send the found file to the terminal.
  • the first information is generated by calculating the original data of the file, and the original data refers to the data that the file can be distinguished from other files.
  • the file name and the file icon can be changed without the user changing the file name.
  • the limitation of operation such as location makes the cloud find the corresponding file accurately; further, the user experience in the terminal can be greatly improved.
  • the process of calculating the original data of the file to generate the first information may be performed in the terminal or in the cloud, and the specific processes are respectively described.
  • the process of calculating the original data of the file to generate the first information is performed at the terminal. Referring to FIG. 6, from the perspective of the cloud, before step S501, the method includes:
  • Step S601 Receive a file that is sent by the terminal and carries the first information.
  • Step S602 Save the file and establish a second association relationship between the file and the first information.
  • the process of generating the first information by calculating the original data of the file is performed by the terminal. Therefore, the terminal sends the file carrying the first information to the cloud in advance, and after the cloud receives the file, the file is saved and the file is created. The second association between the information.
  • the process of calculating the original data of the file to generate the first interest is performed in the cloud. Referring to FIG. 7, from the perspective of the cloud, before step S501, the method includes:
  • Step S701 Receive a file sent by the terminal.
  • Step S702 Calculate the original data of the file to generate the first information.
  • Step S703 Send the first information to the terminal, so that the terminal establishes a first association relationship between the file identifier of the file and the first information.
  • the first information is a verification result generated by calculating a raw data of the file by a verification algorithm.
  • the verification algorithm includes but is not limited to: a cyclic redundancy algorithm, a hash algorithm, a parity algorithm, and the like.
  • the code with the check code is composed of two parts: the body code and the check code (such as the organization code).
  • the body code is the number indicating the code object, and the check code is attached to the back of the body code.
  • Each ontology code can only have one check code, and the check code is obtained through a prescribed mathematical relationship.
  • the original data of the file is input as the ontology code, and the check code (check result) can be obtained through the prescribed mathematical relationship, and each ontology code can only have one check code, and the original data of the file.
  • the file has a file identifier at the terminal, and further, an association relationship between the file identifier and the verification result is formed.
  • the first information is a message digest result generated by calculating a raw data of the file by using a message digest algorithm.
  • Message digest algorithms include, but are not limited to, the MD5 algorithm, the SHA-1 algorithm, and the like.
  • the main feature of the message digest algorithm is that the encryption process does not require a key, and the encrypted data cannot be decrypted. Only the same plaintext data can be obtained by the same message digest algorithm to obtain the same ciphertext. Therefore, the original data of the same file is calculated by the message digest algorithm, and the obtained message digest result is the same, so that the relationship between the file and the message digest result can be formed.
  • the file identifier is the file name of the file.
  • the terminal may also send the file name to the cloud.
  • the cloud may first perform a preliminary search through the file name, and then pass the first information (for example, the verification result, the message summary result, etc.) Further alignment to ensure that the retrieved file is the corresponding file that the user needs.
  • the file is a picture in the JPEG format of the Joint Photo Experts Group.
  • step S501 the method includes:
  • Step S801 Receive a picture sent by the terminal.
  • Step S802 Convert the picture into a thumbnail, and use the file name of the thumbnail as the file name of the picture, and calculate the original data of the picture to generate the first information.
  • the original data of the picture may be calculated by a verification algorithm or a message digest algorithm to generate the first information.
  • Step S803 The file name and the first information of the picture are saved in the EXIF table of the thumbnail.
  • Step S804 Send the thumbnail to the terminal, so that the terminal establishes a third association relationship between the picture, the file name of the picture, and the first information.
  • FIG. 9 is a schematic structural diagram of an embodiment of a terminal according to the present invention.
  • the terminal can perform the steps in the foregoing FIG. 1 to FIG. 4, and the detailed description can refer to the related text description in the foregoing method flow.
  • the terminal includes: a first receiving module 101, an obtaining module 102, a first sending module 103, and a second receiving module 104.
  • the first receiving module 101 is configured to receive a request for acquiring a file, where the request includes a file identifier of the file.
  • the obtaining module 102 is configured to obtain the saved first information by using a file identifier, a first association relationship between the created file identifier and the first information, where the first information is generated by calculating the original data of the file, and the original data is generated. Refers to the data that the file can distinguish from other files.
  • the first sending module 103 is configured to send the first information to the cloud, so that the cloud finds the saved file according to the first information, the second association relationship between the established file and the first information.
  • the second receiving module 104 is configured to receive a file sent by the cloud.
  • the embodiment of the present invention receives the request for obtaining a file, and requests the file identifier including the file, and obtains the first information saved by using the file identifier, the first association relationship between the created file identifier and the first information, and the first information is obtained.
  • the terminal further includes: a first generating module 201 and a second sending module 202.
  • the first generating module 201 is configured to calculate original data of the file to generate first information
  • the second sending module 202 is configured to send the file carrying the first information to the cloud, so that the cloud saves the file and establishes a second association relationship between the file and the first information.
  • the terminal further includes: a third sending module 301 and a third receiving module 302.
  • the third sending module 301 is configured to send the file to the cloud.
  • the third receiving module 302 is configured to receive the first information sent by the cloud and establish a first association relationship between the file identifier and the first information, where the first information is generated by calculating, by the cloud, the original data of the file.
  • the file identifier is the file name of the file.
  • the first information is a verification result generated by calculating a raw data of the file by a verification algorithm.
  • the first information is a message digest result generated by calculating a raw data of the file by using a message digest algorithm.
  • the file is a picture in the JPEG format of the Joint Photo Experts Group.
  • the terminal further includes: a conversion module 401, a second generation module 402, a saving module 403, and a fourth sending module 404.
  • the conversion module 401 is configured to convert the image into a thumbnail, and use the file name of the thumbnail as the file name of the image.
  • the second generation module 402 is configured to calculate the original data of the picture to generate the first information.
  • the save module 403 is configured to save the file name and the first information of the picture in the image file format EXIF table of the thumbnail.
  • the fourth sending module 404 is configured to send the file name carrying the picture and the picture of the first information to the cloud, so that the cloud saves the picture and establishes a third association relationship between the picture, the file name of the picture, and the first information.
  • FIG. 13 is a schematic structural diagram of an embodiment of a cloud server according to the present invention.
  • the server may perform the steps in FIG. 5-8, and the detailed description may refer to the related text description in the foregoing method flow.
  • the server includes: a first receiving module 501, a searching module 502, and a first sending module 503.
  • the first receiving module 501 is configured to receive first information sent by the terminal, where the first information is generated according to the original data of the file, and the original data refers to data that the file can be distinguished from other files.
  • the searching module 502 is configured to search for the saved file according to the first information, the second association relationship between the created file and the first information.
  • the first sending module 503 is configured to send the found file to the terminal.
  • the first information is generated by calculating the original data of the file, and the original data refers to the data that the file can be distinguished from other files.
  • the file name and the file icon can be changed without the user changing the file name.
  • the limitation of operation such as location makes the cloud find the corresponding file accurately; further, the user experience in the terminal can be greatly improved.
  • the server further includes: a second receiving module 601 and a saving module 602.
  • the second receiving module 601 is configured to receive a file that is sent by the terminal and that carries the first information.
  • the saving module 602 is configured to save the file and establish a second association relationship between the file and the first information.
  • the server further includes: a third receiving module 701, a first generating module 702, and a second sending module 703.
  • the third receiving module 701 is configured to receive a file sent by the terminal.
  • the first generation module 702 is configured to calculate the original data of the file to generate the first information.
  • the second sending module 703 is configured to send the first information to the terminal, so that the terminal establishes a first association relationship between the file identifier of the file and the first information.
  • the file identifier is the file name of the file.
  • the first information is a verification result generated by calculating a raw data of the file by a verification algorithm.
  • the first information is a message digest result generated by calculating a raw data of the file by using a message digest algorithm.
  • the file is a picture in the JPEG format of the Joint Photo Experts Group.
  • the server further includes: a fourth receiving module 801, a converting module 802, a second generating module 803, a saving module 804, and a third sending module 805.
  • the fourth receiving module 801 is configured to receive a file sent by the terminal.
  • the conversion module 802 is configured to convert the picture into a thumbnail and use the file name of the thumbnail as the file name of the picture.
  • the second generation module 803 is configured to calculate the original data of the picture to generate the first information.
  • the saving module 804 is configured to save the file name and the first information of the picture in the EXIF table of the thumbnail.
  • the third sending module 805 is configured to send the thumbnail to the terminal, so that the terminal establishes a third association relationship between the picture, the file name of the picture, and the first information.
  • FIG. 17 is a schematic structural diagram of a physical device according to an embodiment of the present invention.
  • the terminal in this embodiment may perform the steps in FIG. 1 to FIG. 4, and the detailed description may refer to the foregoing method flow. Related text descriptions.
  • the terminal includes a processor 11, a memory 12 coupled to the processor 11, a receiver 13, and a transmitter 14.
  • the receiver 11 is configured to receive a request to acquire a file, the request including a file identifier of the file.
  • the memory 12 is configured to store a first association relationship between the established file identifier and the first information, and store the first information.
  • the processor 11 is configured to retrieve the memory 12, and the first association relationship between the established file identifier and the first information is saved in the file identifier, and the saved first information is obtained.
  • the first information is a file.
  • the raw data is generated by calculation, and the original data refers to data that the file can be distinguished from other files.
  • the transmitter 13 is configured to send the first information to the cloud under the control of the processor 11, so that the cloud finds the saved file according to the first information, the second association relationship between the established file and the first information.
  • the receiver 14 is configured to receive the file sent by the cloud under the control of the processor 11 and save it in the memory.
  • the embodiment of the present invention receives the request for obtaining a file, and requests the file identifier including the file, and obtains the first information saved by using the file identifier, the first association relationship between the created file identifier and the first information, and the first information is obtained.
  • FIG. 18 is a schematic structural diagram of a physical device according to an embodiment of the cloud server of the present invention.
  • the terminal in this embodiment may perform the steps in FIG. 5-8 above.
  • FIG. 5-8 For details, refer to the related text description in the foregoing method flow.
  • the server includes a processor 21, a memory 22 coupled to the processor 21, a receiver 23, and a transmitter 24.
  • the memory 22 is configured to store the first information, store a second association relationship between the created file and the first information, and store the file.
  • the receiver 23 is configured to receive, by the processor, the first information sent by the terminal, where the first information is generated according to the original data of the file, and the original data means that the file can be distinguished from other texts.
  • the raw data of the piece is configured to receive, by the processor, the first information sent by the terminal, where the first information is generated according to the original data of the file, and the original data means that the file can be distinguished from other texts.
  • the processor 21 is configured to call the memory 22, and according to the first information, the memory 22 stores the second association relationship between the created file and the first information to search for the file stored in the memory 22.
  • the transmitter 24 is configured to transmit the found file to the terminal under the control of the processor 21.
  • the first information is generated by calculating the original data of the file, and the original data refers to the data that the file can be distinguished from other files.
  • the file name and the file icon can be changed without the user changing the file name.
  • the limitation of operation such as location makes the cloud find the corresponding file accurately; further, the user experience in the terminal can be greatly improved.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device implementations described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used. Combinations can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the methods of the various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), and a magnetic disk. Or a variety of media such as optical discs that can store program code.

Abstract

本发明公开了一种传输云端文件的方法、终端及服务器,该方法包括:接收获取文件的请求,请求包括文件的文件标识;通过文件标识、已建立的文件标识与第一信息之间的第一关联关系,获取保存的第一信息,第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据;将第一信息发送到云端,以便于云端根据第一信息、已建立的文件与第一信息之间的第二关联关系找到保存的文件;接收所述云端发送的所述文件。通过这种方式,能够使终端不受用户更改文件名、移动文件图标的位置等操作的限制,获取云端对应的、准确的文件。

Description

传输云端文件的方法、终端及云端服务器 【技术领域】
本发明涉及文件传输技术领域,特别涉及一种传输云端文件的方法、终端及云端服务器。
【背景技术】
云存储是一个以数据存储和管理为核心的云计算系统。简单来说,云存储是将需要存储的资源放到云端上,供需要的人进行存取。使用者可以在任何时间、任何地方,通过任何可连网的装置连接到云上,方便地存取数据。目前各家手机厂家都推出了自己的云存储方案,用来存储手机拍摄的照片、视频、用户信息等关键信息。
现有技术中,手机端把本地原始图片(例如照片)备份到云端之后,往往只在本地缓存一张原始图片的缩略图,待用户请求浏览原始图片时,手机端会向云端提出请求,要求下载原始的高清图片。原始图片的大小为2MB~4MB,其缩略图的大小为100~200KB,是原始图片的1/20左右,因此,手机端只缓存缩略图,不缓存原始图片,这占用很少的手机端存储空间。通常情况下,云端原始图片和本地手机缩略图只通过文件名进行关联,因此,云端通过文件名查找保存的原始图片。
但是,当用户移动本地缩略图的存储位置、或修改本地缩略图的文件名时,本地手机缩略图和云端原始图片之间的联系断开,导致用户无法获取云端原始图片的高清大图。
【发明内容】
本发明主要解决的技术问题是提供一种传输云端文件的方法、终端及云端服务器,能够不受用户更改文件名、移动文件图标的位置等操作的限制,准确从云端获得对应的文件;可以大幅度提升用户在终端的使用体验。
第一方面,本发明提供一种传输云端文件的方法,包括:接收获取文件的请求,所述请求包括所述文件的文件标识;通过所述文件标识、已建立的所述文件标识与第一信息之间的第一关联关系,获取保存的第一信息,所述第一信息是对所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可 以区别于其它文件的数据;将所述第一信息发送到云端,以便于所述云端根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系找到保存的所述文件;接收所述云端发送的所述文件。
在第一方面的第一种可能的实施方式中,所述接收获取文件的请求的步骤之前,包括:对所述文件的所述原始数据进行计算,以生成所述第一信息;将携带所述第一信息的所述文件发送到所述云端,以便于所述云端保存所述文件并建立所述文件与所述第一信息之间的第二关联关系。
在第一方面的第二种可能的实施方式中,所述接收获取文件的请求的步骤之前,包括:将所述文件发送到所述云端;接收所述云端发送的所述第一信息并建立所述文件标识与所述第一信息之间的第一关联关系,所述第一信息是所述云端对所述文件的所述原始数据进行计算而生成的。
在第一方面的第三种可能的实施方式中,所述文件标识是所述文件的文件名。
在第一方面的第四种可能的实施方式中,所述第一信息是通过校验算法对所述文件的所述原始数据进行计算而生成的校验结果。
在第一方面的第五种可能的实施方式中,所述第一信息是通过消息摘要算法对所述文件的所述原始数据进行计算而生成的消息摘要结果。
在第一方面的第六种可能的实施方式中,所述文件是联合照片专家组JPEG格式的图片;所述接收获取文件的请求的步骤之前,包括:将所述图片转化为缩略图,并将所述缩略图的文件名作为所述图片的文件名,对所述图片的原始数据进行计算,生成所述第一信息;将所述图片的文件名和所述第一信息保存在所述缩略图的图象文件格式EXIF表中;将携带所述图片的文件名、所述第一信息的所述图片发送到所述云端,以便于所述云端保存所述图片并建立所述图片、所述图片的文件名以及所述第一信息之间的第三关联关系。
第二方面,本发明提供一种传输云端文件的方法,包括:接收终端发送的第一信息,所述第一信息是根据所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的原始数据;根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系查找保存的所述文件;将找到的所述文件发送到所述终端。
在第二方面的第一种可能的实现方式中,所述接收终端发送的第一信息的步骤之前,包括:接收所述终端发送的携带所述第一信息的所述文件,以便于 所述云端保存所述文件并建立所述文件与所述第一信息之间的第二关联关系。
在第二方面的第二种可能的实现方式中,所述接收终端发送的第一信息的步骤之前,包括:接收所述终端发送的所述文件;对所述文件的原始数据进行计算,生成所述第一信息;将所述第一信息发送到所述终端,以便于所述终端建立所述文件的文件标识与所述第一信息之间的第一关联关系。
在第二方面的第三种可能的实现方式中,所述文件标识是所述文件的文件名。
在第二方面的第四种可能的实现方式中,所述第一信息是通过校验算法对所述文件的所述原始数据进行计算而生成的校验结果。
在第二方面的第五种可能的实现方式中,所述第一信息是通过消息摘要算法对所述文件的所述原始数据进行计算而生成的消息摘要结果。
在第二方面的第六种可能的实现方式中,所述文件是联合照片专家组JPEG格式的图片;所述接收终端发送的第一信息的步骤之前,包括:接收所述终端发送的所述图片;将所述图片转化为缩略图,并将所述缩略图的文件名作为所述图片的文件名;对所述图片的原始数据进行计算,生成所述第一信息;将所述图片的文件名、所述第一信息保存在所述缩略图的EXIF表中;将所述缩略图发送到所述终端,以便于所述终端建立所述图片、所述图片的文件名以及所述第一信息之间的第三关联关系。
第三方面,本发明提供一种终端,所述终端包括:第一接收模块、获取模块、第一发送模块以及第二接收模块;所述第一接收模块,用于接收获取文件的请求,所述请求包括所述文件的文件标识;所述获取模块,用于通过所述文件标识、已建立的所述文件标识与第一信息之间的第一关联关系,获取保存的第一信息,所述第一信息是对所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的数据;所述第一发送模块,用于将所述第一信息发送到云端,以便于所述云端根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系找到保存的所述文件;所述第二接收模块,用于接收所述云端发送的所述文件。
在第三方面的第一种可能的实现方式中,所述终端还包括:第一生成模块和第二发送模块;所述第一生成模块,用于对所述文件的所述原始数据进行计算,以生成所述第一信息;所述第二发送模块,用于将携带所述第一信息的所述文件发送到所述云端,以便于所述云端保存所述文件并建立所述文件与所述 第一信息之间的第二关联关系。
在第三方面的第二种可能的实现方式中,所述终端还包括:第三发送模块和第三接收模块;所述第三发送模块,用于将所述文件发送到所述云端;所述第三接收模块,用于接收所述云端发送的所述第一信息并建立所述文件标识与所述第一信息之间的第一关联关系,所述第一信息是所述云端对所述文件的所述原始数据进行计算而生成的。
在第三方面的第三种可能的实现方式中,所述文件标识是所述文件的文件名。
在第三方面的第四种可能的实现方式中,所述第一信息是通过校验算法对所述文件的所述原始数据进行计算而生成的校验结果。
在第三方面的第五种可能的实现方式中,所述第一信息是通过消息摘要算法对所述文件的所述原始数据进行计算而生成的消息摘要结果。
在第三方面的第六种可能的实现方式中,所述文件是联合照片专家组JPEG格式的图片;所述终端还包括:转化模块、第二生成模块、保存模块以及第四发送模块;所述转化模块,用于将所述图片转化为缩略图,并将所述缩略图的文件名作为所述图片的文件名,所述第二生成模块,用于对所述图片的原始数据进行计算,生成所述第一信息;所述保存模块,用于将所述图片的文件名和所述第一信息保存在所述缩略图的图象文件格式EXIF表中;所述第四发送模块,用于将携带所述图片的文件名、所述第一信息的所述图片发送到所述云端,以便于所述云端保存所述图片并建立所述图片、所述图片的文件名以及与所述第一信息之间的第三关联关系。
第四方面,本发明提供一种云端服务器,所述服务器包括:第一接收模块、查找模块以及第一发送模块;所述第一接收模块,用于接收终端发送的第一信息,所述第一信息是根据所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的数据;所述查找模块,用于根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系查找保存的所述文件;第一发送模块,用于将找到的所述文件发送到所述终端。
在第四方面的第一种可能的实现方式中,所述服务器还包括:第二接收模块;所述第二接收模块,用于接收所述终端发送的携带所述第一信息的所述文件,以便于所述云端保存所述文件并建立所述文件与所述第一信息之间的第二关联关系。
在第四方面的第二种可能的实现方式中,所述服务器还包括:第三接收模块、第一生成模块以及第二发送模块;所述第三接收模块,用于接收所述终端发送的所述文件;所述第一生成模块,用于对所述文件的原始数据进行计算,生成所述第一信息;所述第二发送模块,用于将所述第一信息发送到所述终端,以便于所述终端建立所述文件的文件标识与所述第一信息之间的第一关联关系。
在第四方面的第三种可能的实现方式中,所述文件标识是所述文件的文件名。
在第四方面的第四种可能的实现方式中,所述第一信息是通过校验算法对所述文件的所述原始数据进行计算而生成的校验结果。
在第四方面的第五种可能的实现方式中,所述第一信息是通过消息摘要算法对所述文件的所述原始数据进行计算而生成的消息摘要结果。
在第四方面的第六种可能的实现方式中,所述文件是联合照片专家组JPEG格式的图片;所述服务器还包括:第四接收模块、转化模块、第二生成模块、保存模块以及第三发送模块;所述第四接收模块,用于接收所述终端发送的所述文件;所述转化模块,用于将所述图片转化为缩略图,并将所述缩略图的文件名作为所述图片的文件名;所述第二生成模块,用于对所述图片的原始数据进行计算,生成所述第一信息;所述保存模块,用于将所述图片的文件名、所述第一信息保存在所述缩略图的EXIF表中;所述第三发送模块,用于将所述缩略图发送到所述终端,以便于所述终端建立所述图片、所述图片的文件名以及所述第一信息之间的第三关联关系。
第五方面,本发明提供一种终端,所述终端包括:处理器、与所述处理器耦联的存储器、接收器以及发送器;所述接收器,用于接收获取文件的请求,所述请求包括所述文件的文件标识;所述存储器,用于存储已建立的所述文件标识与第一信息之间的第一关联关系,存储所述第一信息;所述处理器,用于调取所述存储器,通过所述文件标识、所述存储器中保存已建立的所述文件标识与所述第一信息之间的第一关联关系,获取保存的第一信息,所述第一信息是对所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的数据;所述发送器,用于在所述处理器的控制下,将所述第一信息发送到云端,以便于所述云端根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系找到保存的所述文件;所述接收器,用于在 所述处理器的控制下,接收所述云端发送的所述文件,并保存在所述存储器中。
第六方面,本发明提供一种云端服务器,所述服务器包括:处理器,与所述处理器耦合的存储器、接收器以及发送器;所述存储器,用于存储第一信息,存储已建立的文件与所述第一信息之间的第二关联关系,存储所述文件;所述接收器,用于在处理器的控制下,接收终端发送的所述第一信息,所述第一信息是根据所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的数据;所述处理器,用于调用所述存储器,根据所述第一信息、所述存储器存储已建立的所述文件与所述第一信息之间的第二关联关系查找保存在所述存储器的所述文件;所述发送器,用于在所述处理器的控制下,将找到的所述文件发送到所述终端。
本发明的有益效果是:区别于现有技术的情况,本发明接收到获取文件的请求,请求包括文件的文件标识,通过文件标识、已建立的文件标识与第一信息之间的第一关联关系,获取保存的第一信息,将第一信息发送到云端,然后接收云端发送的文件。由于第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据,通过这种方式,可以不受用户更改文件名、移动文件图标的位置等操作的限制,使用户从云端获得对应的准确的文件;进一步地,可以大幅度提升用户在终端的使用体验。
【附图说明】
图1是本发明传输云端文件的方法一实施方式的流程图;
图2是本发明传输云端文件的方法另一实施方式的流程图;
图3是本发明传输云端文件的方法又一实施方式的流程图;
图4是本发明传输云端文件的方法又一实施方式的流程图;
图5是本发明传输云端文件的方法又一实施方式的流程图;
图6是本发明传输云端文件的方法又一实施方式的流程图;
图7是本发明传输云端文件的方法又一实施方式的流程图;
图8是本发明传输云端文件的方法又一实施方式的流程图;
图9是本发明终端一实施方式的结构示意图;
图10是本发明终端另一实施方式的结构示意图;
图11是本发明终端又一实施方式的结构示意图;
图12是本发明终端又一实施方式的结构示意图;
图13是本发明云端服务器一实施方式的结构示意图;
图14是本发明云端服务器另一实施方式的结构示意图;
图15是本发明云端服务器又一实施方式的结构示意图;
图16是本发明云端服务器又一实施方式的结构示意图;
图17是本发明终端一实施方式的实体装置结构示意图;
图18是本发明云端服务器一实施方式的实体装置结构示意图。
【具体实施方式】
下面结合附图和实施方式对本发明进行详细说明。
参阅图1,图1是本发明传输云端文件的方法一实施方式的流程图,该流程图是从终端的角度来执行的流程图,该方法的应用场景是:终端上,由于存储空间的限制,通常将文件(特别是占用空间很大的文件,例如图片等)上传到云端进行保存,在用户请求获取文件的时候,再从云端下载相应的文件到终端上。本发明建立了一种新的关联关系,用于准确地获取文件,即使用户进行更改文件名、移动文件图标的位置等操作,也依然可以准确地获取对应的文件。该方法具体包括:
步骤S101:接收获取文件的请求,该请求包括该文件的文件标识。
文件标识用于标识文件,文件标识与文件之间具有对应的关联关系。用户发出获取文件的请求的表现方式可以有很多,例如:用户点击文件的图标,或用户用输入文件名的方式发出请求,或用户输入不完整的字符进行搜索后,再点击相应的搜索结果等等,在这些方式中,图标、文件名、字符等均是文件标识。当终端接收到用户的这些请求后,即为接收获取文件的请求。
步骤S102:通过文件标识、已建立的文件标识与第一信息之间的第一关联关系,获取保存的第一信息,第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据。
文件的原始数据是文件固有的,可以区别于其它文件的数据,例如:文件建立的日期、时间、文件的类型(office文档、图片、视频、音频、用户信息、PDF文档等)、大小、文件的特征化内容等等;如果文件是图片,原始数据还可以包括:拍摄时的光圈、快门、白平衡、感光度ISO、焦距等各种拍摄条件以及拍摄用的相机的品牌、型号、色彩编码、拍摄时录制的声音等等。这些原始数据是文件在终端建立的时候即已经固有的、唯一的、且和其它文件的原始数据 相区别的数据。
这些数据表现形式是二进制数据,对这些数据(即二进制数据)进行计算,即可生成第一信息,由于原始数据是固有的、唯一的、且和其它文件的原始数据相区别的数据,因此第一信息也具备相应的特点,即:相同的原始数据经过计算获得相同的第一信息,不同的原始数据经过计算获得不同的第一信息,因此,如果第一信息相同,可以认为该文件即为用户需要的文件,如果第一信息不相同,可以认为该文件不是用户需要的文件。即使用户进行更改文件名、移动文件图标的位置等操作,文件的第一信息依然是不变的,因此,根据第一信息可以准确判断是否是对应的文件。
第一信息是用于查找文件的信息,文件标识与第一信息之间的第一关联关系是预先已经建立完成的,当接收到用户获取文件的请求后,通过文件标识、已建立的文件标识与第一信息之间的第一关联关系,即可获得保存的第一信息。
步骤S103:将第一信息发送到云端,以便于云端根据第一信息、已建立的文件与第一信息之间的第二关联关系找到保存的文件。
云端保存有文件,还保存有已建立的文件与第一信息之间的第二关联关系,将第一信息发送到云端,云端接收到第一信息后,即可根据已建立的文件与第一信息之间的第二关联关系找到保存的文件。
步骤S104:接收云端发送的文件。
本发明实施方式接收到获取文件的请求,请求包括文件的文件标识,通过文件标识、已建立的文件标识与第一信息之间的第一关联关系,获取保存的第一信息,将第一信息发送到云端,然后接收云端发送的文件。由于第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据,通过这种方式,可以不受用户更改文件名、移动文件图标的位置等操作的限制,使用户从云端获得对应的准确的文件;进一步地,可以大幅度提升用户在终端的使用体验。
其中,在开始本发明图1的流程之前,对文件的原始数据进行计算而生成第一信息的过程,既可以在终端执行,也可以在云端执行,现分别说明具体流程。
对文件的原始数据进行计算而生成第一信息的过程,在终端执行,参见图2,步骤S101之前,包括:
步骤S201:对文件的原始数据进行计算,以生成第一信息。
步骤S202:将携带第一信息的文件发送到云端,以便于云端保存文件并建立文件与第一信息之间的第二关联关系。
对文件的原始数据进行计算而生成第一信息的过程,在云端执行,参见图3,从终端的角度,步骤S101之前,包括:
步骤S301:将文件发送到云端。
步骤S302:接收云端发送的第一信息并建立文件标识与第一信息之间的第一关联关系,第一信息是云端对文件的原始数据进行计算而生成的。
其中,第一信息是通过校验算法对文件的原始数据进行计算而生成的校验结果。校验算法包括但不限于:循环冗余算法、哈希算法、奇偶算法等。
代码作为数据在向计算机或其它设备进行输入时,容易产生输入错误,为了减少输入错误,编码专家发明各种校验检错方法,并依据这些方法设置了校验码。凡设有校验码的代码,是由本体码与校验码两部分组成(如组织机构代码),本体码是表示编码对象的号码,校验码则是附加在本体码后边,是用来校验本体码在输入过程中准确性的号码。每一个本体码只能有一个校验码,校验码通过规定的数学关系得到。因此,在本申请中,文件的原始数据作为本体码输入,通过规定的数学关系即可获得校验码(校验结果),每一个本体码只能有一个校验码,文件的原始数据的校验结果也只有一个,从而可以形成文件与校验结果之间的关联关系。
其中,第一信息是通过消息摘要算法对文件的原始数据进行计算而生成的消息摘要结果。消息摘要算法包括但不限于:MD5算法、SHA-1算法等。
消息摘要算法的主要特征是加密过程不需要密钥,并且经过加密的数据无法被解密,只有输入相同的明文数据经过相同的消息摘要算法才能得到相同的密文。因此,相同的文件的原始数据,通过消息摘要算法进行计算后,获得的消息摘要结果是一样的,从而可以形成文件与消息摘要结果之间的关联关系。
其中,文件标识是文件的文件名。
文件标识是文件的文件名时,终端还可以将文件的文件名发送到云端,云端在查找文件时,可以先通过文件名进行初步检索,然后通过第一信息(例如:校验结果、消息摘要结果等)进一步比对,以确保检索到的文件是用户需要的对应的文件。
从用户调研的数据看,现在的消费者都有自己归类不同照片的需求,因此,通常给文件一个文件名,文件标识是文件的文件名这一特征,可以满足上 述用户的需求,从而提升用户体验。
其中,文件是联合照片专家组JPEG格式的图片。
此时,请参见图4,步骤S101之前,包括:
步骤S401:将图片转化为缩略图,并将缩略图的文件名作为图片的文件名,对图片的原始数据进行计算,生成第一信息。
可以通过校验算法、或消息摘要算法等对图片的原始数据进行计算,生成第一信息。
步骤S402:将图片的文件名和第一信息保存在缩略图的图象文件格式EXIF表中。缩略图的EXIF表参见表1:
表1
Figure PCTCN2015078126-appb-000001
步骤S403:将携带图片的文件名、第一信息的图片发送到云端,以便于云端保存图片并建立图片、图片的文件名以及第一信息之间的第三关联关系。
终端接收到获取文件的请求后,首先从缩略图的EXIF表中提取文件的文件名和校验结果,将文件名、校验结果(第一信息)发送到云端,以便于云端根据文件名和校验结果查到文件。云端首先通过文件名进行初步检索,然后再用校验结果进一步比对,以确保检索到的图片是缩略图对应的文件。
参见图5,图5是本发明传输云端文件的方法又一实施方式的流程图,本流程图与图1的流程图对应,是从云端的角度来执行的流程图,该方法具体包括:
步骤S501:接收终端发送的第一信息,第一信息是根据文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据。
文件的原始数据是文件固有的,用于可以区别于其它文件的数据,例如:文件建立的日期、时间、文件的类型(office文档、图片、PDF文档等)、大小、文件的特征化内容等等;如果文件是图片,原始数据还可以包括:拍摄时的光 圈、快门、白平衡、感光度ISO、焦距等各种拍摄条件以及拍摄用的相机的品牌、型号、色彩编码、拍摄时录制的声音等等。这些原始数据是文件在终端建立的时候即已经固有的、唯一的、且和其它文件的原始数据相区别的数据。
这些原始数据表现形式是二进制数据,对这些原始数据(即二进制数据)进行计算,即可生成第一信息,由于原始数据是固有的、唯一的、且和其它文件的原始数据相区别的数据,因此第一信息也具备相应的特点,即:相同的原始数据经过计算获得相同的第一信息,不同的原始数据经过计算获得不同的第一信息,因此,如果第一信息相同,可以认为该文件即为用户需要的文件,如果第一信息不相同,可以认为该文件不是用户需要的文件。即使用户进行更改文件名、移动文件图标的位置等操作,文件的第一信息依然是不变的,因此,根据第一信息可以准确判断是否是用户需要的对应的文件。
步骤S502:根据第一信息、已建立的文件与第一信息之间的第二关联关系查找保存的文件。
文件与第一信息之间的第二关联关系是预先已经建立完成的,当接收到终端发送的第一信息后,根据第一信息,已建立的文件与第一信息之间的第二关联关系,即可找到文件。
步骤S503:将找到的文件发送到终端。
本发明实施方式由于第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据,通过这种方式,可以不受用户更改文件名、移动文件图标的位置等操作的限制,准确使云端找到对应的文件;进一步地,可以大幅度提升用户在终端的使用体验。
其中,在开始本发明图5的流程之前,对文件的原始数据进行计算而生成第一信息的过程,既可以在终端执行,也可以在云端执行,现分别说明具体流程。
对文件的原始数据进行计算而生成第一信息的过程,在终端执行,参见图6,从云端的角度,步骤S501之前,包括:
步骤S601:接收终端发送的携带第一信息的文件。
步骤S602:保存文件并建立文件与第一信息之间的第二关联关系。
由于对文件的原始数据进行计算而生成第一信息的过程是在终端执行的,因此,终端预先把携带第一信息的文件发送到云端,云端接收到后,保存文件,同时建立文件与第一信息之间的第二关联关系。
对文件的原始数据进行计算而生成第一息的过程,在云端执行,参见图7,从云端的角度,步骤S501之前,包括:
步骤S701:接收终端发送的文件。
步骤S702:对文件的原始数据进行计算,生成第一信息。
步骤S703:将第一信息发送到终端,以便于终端建立文件的文件标识与第一信息之间的第一关联关系。
其中,第一信息是通过校验算法对文件的原始数据进行计算而生成的校验结果。校验算法包括但不限于:循环冗余算法、哈希算法、奇偶算法等。
代码作为数据在向计算机或其它设备进行输入时,容易产生输入错误,为了减少输入错误,编码专家发明了各种校验检错方法,并依据这些方法设置了校验码。凡设有校验码的代码,是由本体码与校验码两部分组成(如组织机构代码),本体码是表示编码对象的号码,校验码则是附加在本体码后边,用来校验本体码在输入过程中准确性的号码。每一个本体码只能有一个校验码,校验码通过规定的数学关系得到。因此,在本申请中,文件的原始数据作为本体码输入,通过规定的数学关系即可获得校验码(校验结果),每一个本体码只能有一个校验码,文件的原始数据的校验结果也只有一个,从而可以形成文件与校验结果之间的关联关系,该文件在终端具有文件标识,进一步,形成文件标识与校验结果之间的关联关系。
其中,第一信息是通过消息摘要算法对文件的原始数据进行计算而生成的消息摘要结果。消息摘要算法包括但不限于:MD5算法、SHA-1算法等。
消息摘要算法的主要特征是加密过程不需要密钥,并且经过加密的数据无法被解密,只有输入相同的明文数据经过相同的消息摘要算法才能得到相同的密文。因此,相同的文件的原始数据,通过消息摘要算法进行计算后,获得的消息摘要结果是一样的,从而可以形成文件与消息摘要结果之间的关联关系。
其中,文件标识是文件的文件名。
文件标识是文件的文件名时,终端也可以将文件名发送给云端,云端在查找文件时,可以先通过文件名进行初步检索,然后通过第一信息(例如:校验结果、消息摘要结果等)进一步比对,以确保检索到的文件是用户需要的对应的文件。
从用户调研的数据看,现在的消费者都有自己归类不同照片的需求,因此,通常给文件一个文件名,文件标识是文件的文件名这一特征,可以满足上 述用户的需求,从而提升用户体验。
其中,文件是联合照片专家组JPEG格式的图片。
此时,请参见图8,步骤S501之前,包括:
步骤S801:接收终端发送的图片。
步骤S802:将图片转化为缩略图,并将缩略图的文件名作为图片的文件名,对图片的原始数据进行计算,生成第一信息。
可以通过校验算法、或消息摘要算法等对图片的原始数据进行计算,生成第一信息。
步骤S803:将图片的文件名、第一信息保存在缩略图的EXIF表中。
步骤S804:将缩略图发送到终端,以便于终端建立图片、图片的文件名以及第一信息之间的第三关联关系。
参见图9,图9是本发明终端一实施方式的结构示意图,该终端可以执行上述图1-图4中的步骤,详细说明可以参见上述方法流程中相关的文字说明。该终端包括:第一接收模块101、获取模块102、第一发送模块103以及第二接收模块104。
第一接收模块101用于接收获取文件的请求,该请求包括该文件的文件标识。
获取模块102用于通过文件标识、已建立的文件标识与第一信息之间的第一关联关系,获取保存的第一信息,第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据。
第一发送模块103用于将第一信息发送到云端,以便于云端根据第一信息、已建立的文件与第一信息之间的第二关联关系找到保存的文件。
第二接收模块104用于接收云端发送的文件。
本发明实施方式接收到获取文件的请求,请求包括文件的文件标识,通过文件标识、已建立的文件标识与第一信息之间的第一关联关系,获取保存的第一信息,将第一信息发送到云端,然后接收云端发送的文件。由于第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据,通过这种方式,可以不受用户更改文件名、移动文件图标的位置等操作的限制,使用户从云端获得对应的准确的文件;进一步地,可以大幅度提升用户在终端的使用体验。
参见图10,终端还包括:第一生成模块201和第二发送模块202。
第一生成模块201用于对文件的原始数据进行计算,以生成第一信息;
第二发送模块202用于将携带第一信息的文件发送到云端,以便于云端保存文件并建立文件与第一信息之间的第二关联关系。
参见图11,终端还包括:第三发送模块301和第三接收模块302。
第三发送模块301用于将文件发送到云端。
第三接收模块302用于接收云端发送的第一信息并建立文件标识与第一信息之间的第一关联关系,第一信息是云端对文件的原始数据进行计算而生成的。
其中,文件标识是文件的文件名。
其中,第一信息是通过校验算法对文件的原始数据进行计算而生成的校验结果。
其中,第一信息是通过消息摘要算法对文件的原始数据进行计算而生成的消息摘要结果。
其中,文件是联合照片专家组JPEG格式的图片。
参见图12,终端还包括:转化模块401、第二生成模块402、保存模块403以及第四发送模块404。
转化模块401用于将图片转化为缩略图,并将缩略图的文件名作为图片的文件名,
第二生成模块402用于对图片的原始数据进行计算,生成第一信息。
保存模块403用于将图片的文件名和第一信息保存在缩略图的图象文件格式EXIF表中。
第四发送模块404用于将携带图片的文件名、第一信息的图片发送到云端,以便于云端保存图片并建立图片、图片的文件名以及第一信息之间的第三关联关系。
参见图13,图13是本发明云端服务器一实施方式的结构示意图,该服务器可以执行图5-图8中的步骤,详细说明可以参见上述方法流程中相关的文字说明。该服务器包括:第一接收模块501、查找模块502以及第一发送模块503。
第一接收模块501用于接收终端发送的第一信息,第一信息是根据文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据。
查找模块502用于根据第一信息、已建立的文件与第一信息之间的第二关联关系查找保存的文件。
第一发送模块503用于将找到的文件发送到终端。
本发明实施方式由于第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据,通过这种方式,可以不受用户更改文件名、移动文件图标的位置等操作的限制,准确使云端找到对应的文件;进一步地,可以大幅度提升用户在终端的使用体验。
参见图14,服务器还包括:第二接收模块601和保存模块602。
第二接收模块601用于接收终端发送的携带第一信息的文件。
保存模块602用于保存文件并建立文件与第一信息之间的第二关联关系。
参见图15,服务器还包括:第三接收模块701、第一生成模块702以及第二发送模块703。
第三接收模块701用于接收终端发送的文件。
第一生成模块702用于对文件的原始数据进行计算,生成第一信息。
第二发送模块703用于将第一信息发送到终端,以便于终端建立文件的文件标识与第一信息之间的第一关联关系。
其中,文件标识是文件的文件名。
其中,第一信息是通过校验算法对文件的原始数据进行计算而生成的校验结果。
其中,第一信息是通过消息摘要算法对文件的原始数据进行计算而生成的消息摘要结果。
其中,文件是联合照片专家组JPEG格式的图片。
参见图16,服务器还包括:第四接收模块801、转化模块802、第二生成模块803、保存模块804以及第三发送模块805。
第四接收模块801用于接收终端发送的文件。
转化模块802用于将图片转化为缩略图,并将缩略图的文件名作为图片的文件名。
第二生成模块803用于对图片的原始数据进行计算,生成第一信息。
保存模块804用于将图片的文件名、第一信息保存在缩略图的EXIF表中。
第三发送模块805用于将缩略图发送到终端,以便于终端建立图片、图片的文件名以及第一信息之间的第三关联关系。
参见图17,图17是本发明终端一实施方式的实体装置结构示意图,本实施方式的终端可以执行上述图1-图4中的步骤,详细说明可以参见上述方法流程 中相关的文字说明。
终端包括:处理器11、与处理器11耦联的存储器12、接收器13以及发送器14。
接收器11用于接收获取文件的请求,该请求包括该文件的文件标识。
存储器12用于存储已建立的文件标识与第一信息之间的第一关联关系,存储第一信息。
处理器11用于调取存储器12,通过所述文件标识、存储器12中保存已建立的文件标识与第一信息之间的第一关联关系,获取保存的第一信息,第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据。
发送器13用于在处理器11的控制下,将第一信息发送到云端,以便于云端根据第一信息、已建立的文件与第一信息之间的第二关联关系找到保存的文件。
接收器14用于在处理器11的控制下,接收云端发送的文件,并保存在存储器中。
本发明实施方式接收到获取文件的请求,请求包括文件的文件标识,通过文件标识、已建立的文件标识与第一信息之间的第一关联关系,获取保存的第一信息,将第一信息发送到云端,然后接收云端发送的文件。由于第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据,通过这种方式,可以不受用户更改文件名、移动文件图标的位置等操作的限制,使用户从云端获得对应的准确的文件;进一步地,可以大幅度提升用户在终端的使用体验。
参见图18,图18是本发明云端服务器一实施方式的实体装置结构示意图,本实施方式的终端可以执行上述图5-图8中的步骤,详细说明可以参见上述方法流程中相关的文字说明。
服务器包括:处理器21,与处理器21耦合的存储器22、接收器23以及发送器24。
存储器22用于存储第一信息,存储已建立的文件与第一信息之间的第二关联关系,存储文件。
接收器23用于在处理器的控制下,接收终端发送的第一信息,第一信息是根据文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文 件的原始数据。
处理器21用于调用存储器22,根据第一信息、存储器22存储已建立的文件与第一信息之间的第二关联关系查找保存在存储器22的文件。
发送器24用于在处理器21的控制下,将找到的文件发送到终端。
本发明实施方式由于第一信息是对文件的原始数据进行计算而生成的,原始数据是指文件可以区别于其它文件的数据,通过这种方式,可以不受用户更改文件名、移动文件图标的位置等操作的限制,准确使云端找到对应的文件;进一步地,可以大幅度提升用户在终端的使用体验。
在本发明所提供的几个实施方式中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施方式仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施方式方案的目的。
另外,在本发明各个实施方式中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟 或者光盘等各种可以存储程序代码的介质。
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (30)

  1. 一种传输云端文件的方法,其特征在于,所述方法包括:
    接收获取文件的请求,所述请求包括所述文件的文件标识;
    通过所述文件标识、已建立的所述文件标识与第一信息之间的第一关联关系,获取保存的第一信息,所述第一信息是对所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的数据;
    将所述第一信息发送到云端,以便于所述云端根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系找到保存的所述文件;
    接收所述云端发送的所述文件。
  2. 根据权利要求1所述的方法,其特征在于,所述接收获取文件的请求的步骤之前,包括:
    对所述文件的所述原始数据进行计算,以生成所述第一信息;
    将携带所述第一信息的所述文件发送到所述云端,以便于所述云端保存所述文件并建立所述文件与所述第一信息之间的第二关联关系。
  3. 根据权利要求1所述的方法,其特征在于,所述接收获取文件的请求的步骤之前,包括:
    将所述文件发送到所述云端;
    接收所述云端发送的所述第一信息并建立所述文件标识与所述第一信息之间的第一关联关系,所述第一信息是所述云端对所述文件的所述原始数据进行计算而生成的。
  4. 根据权利要求1所述的方法,其特征在于,所述文件标识是所述文件的文件名。
  5. 根据权利要求1所述的方法,其特征在于,所述第一信息是通过校验算法对所述文件的所述原始数据进行计算而生成的校验结果。
  6. 根据权利要求1所述的方法,其特征在于,所述第一信息是通过消息摘要算法对所述文件的所述原始数据进行计算而生成的消息摘要结果。
  7. 根据权利要求1所述的方法,其特征在于,所述文件是联合照片专家组JPEG格式的图片;
    所述接收获取文件的请求的步骤之前,包括:
    将所述图片转化为缩略图,并将所述缩略图的文件名作为所述图片的文件 名,
    对所述图片的原始数据进行计算,生成所述第一信息;
    将所述图片的文件名和所述第一信息保存在所述缩略图的图象文件格式EXIF表中;
    将携带所述图片的文件名、所述第一信息的所述图片发送到所述云端,以便于所述云端保存所述图片并建立所述图片、所述图片的文件名以及所述第一信息之间的第三关联关系。
  8. 一种传输云端文件的方法,其特征在于,所述方法包括:
    接收终端发送的第一信息,所述第一信息是根据所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的原始数据;
    根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系查找保存的所述文件;
    将找到的所述文件发送到所述终端。
  9. 根据权利要求8所述的方法,其特征在于,所述接收终端发送的第一信息的步骤之前,包括:
    接收所述终端发送的携带所述第一信息的所述文件,以便于所述云端保存所述文件并建立所述文件与所述第一信息之间的第二关联关系。
  10. 根据权利要求8所述的方法,其特征在于,所述接收终端发送的第一信息的步骤之前,包括:
    接收所述终端发送的所述文件;
    对所述文件的原始数据进行计算,生成所述第一信息;
    将所述第一信息发送到所述终端,以便于所述终端建立所述文件的文件标识与所述第一信息之间的第一关联关系。
  11. 根据权利要求10所述的方法,其特征在于,所述文件标识是所述文件的文件名。
  12. 根据权利要求8所述的方法,其特征在于,所述第一信息是通过校验算法对所述文件的所述原始数据进行计算而生成的校验结果。
  13. 根据权利要求8所述的方法,其特征在于,所述第一信息是通过消息摘要算法对所述文件的所述原始数据进行计算而生成的消息摘要结果。
  14. 根据权利要求8所述的方法,其特征在于,所述文件是联合照片专家组JPEG格式的图片;
    所述接收终端发送的第一信息的步骤之前,包括:
    接收所述终端发送的所述图片;
    将所述图片转化为缩略图,并将所述缩略图的文件名作为所述图片的文件名;
    对所述图片的原始数据进行计算,生成所述第一信息;
    将所述图片的文件名、所述第一信息保存在所述缩略图的EXIF表中;
    将所述缩略图发送到所述终端,以便于所述终端建立所述图片、所述图片的文件名以及所述第一信息之间的第三关联关系。
  15. 一种终端,其特征在于,所述终端包括:第一接收模块、获取模块、第一发送模块以及第二接收模块;
    所述第一接收模块,用于接收获取文件的请求,所述请求包括所述文件的文件标识;
    所述获取模块,用于通过所述文件标识、已建立的所述文件标识与第一信息之间的第一关联关系,获取保存的第一信息,所述第一信息是对所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的数据;
    所述第一发送模块,用于将所述第一信息发送到云端,以便于所述云端根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系找到保存的所述文件;
    所述第二接收模块,用于接收所述云端发送的所述文件。
  16. 根据权利要求15所述的终端,其特征在于,所述终端还包括:第一生成模块和第二发送模块;
    所述第一生成模块,用于对所述文件的所述原始数据进行计算,以生成所述第一信息;
    所述第二发送模块,用于将携带所述第一信息的所述文件发送到所述云端,以便于所述云端保存所述文件并建立所述文件与所述第一信息之间的第二关联关系。
  17. 根据权利要求15所述的终端,其特征在于,所述终端还包括:第三发送模块和第三接收模块;
    所述第三发送模块,用于将所述文件发送到所述云端;
    所述第三接收模块,用于接收所述云端发送的所述第一信息并建立所述文 件标识与所述第一信息之间的第一关联关系,所述第一信息是所述云端对所述文件的所述原始数据进行计算而生成的。
  18. 根据权利要求15所述的终端,其特征在于,所述文件标识是所述文件的文件名。
  19. 根据权利要求15所述的终端,其特征在于,所述第一信息是通过校验算法对所述文件的所述原始数据进行计算而生成的校验结果。
  20. 根据权利要求15所述的终端,其特征在于,所述第一信息是通过消息摘要算法对所述文件的所述原始数据进行计算而生成的消息摘要结果。
  21. 根据权利要求15所述的终端,其特征在于,所述文件是联合照片专家组JPEG格式的图片;
    所述终端还包括:转化模块、第二生成模块、保存模块以及第四发送模块;
    所述转化模块,用于将所述图片转化为缩略图,并将所述缩略图的文件名作为所述图片的文件名,
    所述第二生成模块,用于对所述图片的原始数据进行计算,生成所述第一信息;
    所述保存模块,用于将所述图片的文件名和所述第一信息保存在所述缩略图的图象文件格式EXIF表中;
    所述第四发送模块,用于将携带所述图片的文件名、所述第一信息的所述图片发送到所述云端,以便于所述云端保存所述图片并建立所述图片、所述图片的文件名以及与所述第一信息之间的第三关联关系。
  22. 一种云端服务器,其特征在于,所述服务器包括:第一接收模块、查找模块以及第一发送模块;
    所述第一接收模块,用于接收终端发送的第一信息,所述第一信息是根据所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的数据;
    所述查找模块,用于根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系查找保存的所述文件;
    第一发送模块,用于将找到的所述文件发送到所述终端。
  23. 根据权利要求22所述的服务器,其特征在于,所述服务器还包括:第二接收模块;
    所述第二接收模块,用于接收所述终端发送的携带所述第一信息的所述文 件,以便于所述云端保存所述文件并建立所述文件与所述第一信息之间的第二关联关系。
  24. 根据权利要求22所述的服务器,其特征在于,所述服务器还包括:第三接收模块、第一生成模块以及第二发送模块;
    所述第三接收模块,用于接收所述终端发送的所述文件;
    所述第一生成模块,用于对所述文件的原始数据进行计算,生成所述第一信息;
    所述第二发送模块,用于将所述第一信息发送到所述终端,以便于所述终端建立所述文件的文件标识与所述第一信息之间的第一关联关系。
  25. 根据权利要求24所述的服务器,其特征在于,所述文件标识是所述文件的文件名。
  26. 根据权利要求22所述的服务器,其特征在于,所述第一信息是通过校验算法对所述文件的所述原始数据进行计算而生成的校验结果。
  27. 根据权利要求22所述的服务器,其特征在于,所述第一信息是通过消息摘要算法对所述文件的所述原始数据进行计算而生成的消息摘要结果。
  28. 根据权利要求22所述的服务器,其特征在于,所述文件是联合照片专家组JPEG格式的图片;
    所述服务器还包括:第四接收模块、转化模块、第二生成模块、保存模块以及第三发送模块;
    所述第四接收模块,用于接收所述终端发送的所述文件;
    所述转化模块,用于将所述图片转化为缩略图,并将所述缩略图的文件名作为所述图片的文件名;
    所述第二生成模块,用于对所述图片的原始数据进行计算,生成所述第一信息;
    所述保存模块,用于将所述图片的文件名、所述第一信息保存在所述缩略图的EXIF表中;
    所述第三发送模块,用于将所述缩略图发送到所述终端,以便于所述终端建立所述图片、所述图片的文件名以及所述第一信息之间的第三关联关系。
  29. 一种终端,其特征在于,所述终端包括:处理器、与所述处理器耦联的存储器、接收器以及发送器;
    所述接收器,用于接收获取文件的请求,所述请求包括所述文件的文件标 识;
    所述存储器,用于存储已建立的所述文件标识与第一信息之间的第一关联关系,存储所述第一信息;
    所述处理器,用于调取所述存储器,通过所述文件标识、所述存储器中保存已建立的所述文件标识与所述第一信息之间的第一关联关系,获取保存的第一信息,所述第一信息是对所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的数据;
    所述发送器,用于在所述处理器的控制下,将所述第一信息发送到云端,以便于所述云端根据所述第一信息、已建立的所述文件与所述第一信息之间的第二关联关系找到保存的所述文件;
    所述接收器,用于在所述处理器的控制下,接收所述云端发送的所述文件,并保存在所述存储器中。
  30. 一种云端服务器,其特征在于,所述服务器包括:处理器,与所述处理器耦合的存储器、接收器以及发送器;
    所述存储器,用于存储第一信息,存储已建立的文件与所述第一信息之间的第二关联关系,存储所述文件;
    所述接收器,用于在处理器的控制下,接收终端发送的所述第一信息,所述第一信息是根据所述文件的原始数据进行计算而生成的,所述原始数据是指所述文件可以区别于其它文件的数据;
    所述处理器,用于调用所述存储器,根据所述第一信息、所述存储器存储已建立的所述文件与所述第一信息之间的第二关联关系查找保存在所述存储器的所述文件;
    所述发送器,用于在所述处理器的控制下,将找到的所述文件发送到所述终端。
PCT/CN2015/078126 2015-04-30 2015-04-30 传输云端文件的方法、终端及云端服务器 WO2016172968A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP15890348.4A EP3258672A4 (en) 2015-04-30 2015-04-30 Cloud file transmission method, terminal and cloud server
PCT/CN2015/078126 WO2016172968A1 (zh) 2015-04-30 2015-04-30 传输云端文件的方法、终端及云端服务器
CN201580007611.1A CN106332556B (zh) 2015-04-30 2015-04-30 传输云端文件的方法、终端及云端服务器
US15/796,079 US10817470B2 (en) 2015-04-30 2017-10-27 Cloud file transmission method, terminal, and cloud server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/078126 WO2016172968A1 (zh) 2015-04-30 2015-04-30 传输云端文件的方法、终端及云端服务器

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/796,079 Continuation US10817470B2 (en) 2015-04-30 2017-10-27 Cloud file transmission method, terminal, and cloud server

Publications (1)

Publication Number Publication Date
WO2016172968A1 true WO2016172968A1 (zh) 2016-11-03

Family

ID=57198049

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078126 WO2016172968A1 (zh) 2015-04-30 2015-04-30 传输云端文件的方法、终端及云端服务器

Country Status (4)

Country Link
US (1) US10817470B2 (zh)
EP (1) EP3258672A4 (zh)
CN (1) CN106332556B (zh)
WO (1) WO2016172968A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110362546A (zh) * 2019-07-22 2019-10-22 网易(杭州)网络有限公司 转换文件的获取方法、装置及文件转换系统
CN112449099B (zh) * 2019-08-30 2022-08-19 华为技术有限公司 一种图像处理方法、电子设备及云服务器
CN111726401B (zh) * 2020-06-09 2023-05-26 北京天空卫士网络安全技术有限公司 一种文件传输方法和装置
CN111813738A (zh) * 2020-08-20 2020-10-23 深圳须弥云图空间科技有限公司 数据转换方法、数据下载方法及相关装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387125A (zh) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 访问微博的方法和系统及微博网站图片发送方法和系统
CN103049491A (zh) * 2012-12-07 2013-04-17 深圳市同洲电子股份有限公司 一种图片文件的管理方法及装置
CN103390012A (zh) * 2012-09-13 2013-11-13 爱乐活(北京)科技有限公司 一种基于访问的展示图片生成方法和装置
CN103458016A (zh) * 2013-08-21 2013-12-18 小米科技有限责任公司 图片管理的方法、装置及终端设备

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW559702B (en) * 2000-08-31 2003-11-01 Nippon Telegraph & Telephone File transfer system, apparatus, method and computer readable medium storing file transfer program
JP4353467B2 (ja) * 2003-10-06 2009-10-28 富士フイルム株式会社 画像サーバおよびその制御方法
KR101035302B1 (ko) * 2010-10-11 2011-05-19 (주)이스트소프트 클라우드 시스템 및 클라우드 시스템에서 파일 압축 및 전송 방법
WO2013118505A1 (ja) * 2012-02-09 2013-08-15 パナソニック株式会社 マルチメディアコンテンツ編集サーバ、マルチメディアコンテンツ編集方法、プログラム及び集積回路
CN102546836A (zh) * 2012-03-09 2012-07-04 腾讯科技(深圳)有限公司 一种上传文件的方法、终端、服务器及系统
US9268802B2 (en) * 2012-06-26 2016-02-23 Google Inc. System and method for end-to-end exposure of exported representations of native data types to third-party applications
US9106721B2 (en) * 2012-10-02 2015-08-11 Nextbit Systems Application state synchronization across multiple devices
US9037682B2 (en) * 2012-12-13 2015-05-19 Google Technology Holdings LLC System and methods for preventing interruptions due to battery drain during streaming media sessions between devices
US9317522B2 (en) * 2013-01-07 2016-04-19 Google Inc. Saving files from third-party systems directly to a cloud storage system
US10601943B2 (en) * 2013-02-27 2020-03-24 Pavlov Media, Inc. Accelerated network delivery of channelized content
US9235846B2 (en) * 2013-03-13 2016-01-12 Salesforce.Com, Inc. Systems, methods, and apparatuses for populating a table having null values using a predictive query interface
US9241044B2 (en) * 2013-08-28 2016-01-19 Hola Networks, Ltd. System and method for improving internet communication by using intermediate nodes
JP6555032B2 (ja) * 2015-09-10 2019-08-07 ブラザー工業株式会社 印刷仲介サーバ及びプリンタシステム
US10735639B2 (en) * 2017-06-29 2020-08-04 Canon Kabushiki Kaisha Information processing apparatus, information processing method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387125A (zh) * 2010-09-02 2012-03-21 腾讯科技(深圳)有限公司 访问微博的方法和系统及微博网站图片发送方法和系统
CN103390012A (zh) * 2012-09-13 2013-11-13 爱乐活(北京)科技有限公司 一种基于访问的展示图片生成方法和装置
CN103049491A (zh) * 2012-12-07 2013-04-17 深圳市同洲电子股份有限公司 一种图片文件的管理方法及装置
CN103458016A (zh) * 2013-08-21 2013-12-18 小米科技有限责任公司 图片管理的方法、装置及终端设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3258672A4 *

Also Published As

Publication number Publication date
US10817470B2 (en) 2020-10-27
EP3258672A1 (en) 2017-12-20
CN106332556B (zh) 2021-11-19
EP3258672A4 (en) 2018-02-28
CN106332556A (zh) 2017-01-11
US20180060342A1 (en) 2018-03-01

Similar Documents

Publication Publication Date Title
US11968199B2 (en) Methods for authenticating photographic image data
US20070198632A1 (en) Transferring multimedia from a connected capture device
CN105518679B (zh) 图片管理方法以及图片同步方法
CN111601115B (zh) 一种视频检测的方法、相关装置、设备及存储介质
CN107622026B (zh) 数据传输的方法及设备
KR20160074500A (ko) 모바일 비디오 서치 기법
WO2019128568A1 (zh) 内容推送方法、装置及设备
WO2016172968A1 (zh) 传输云端文件的方法、终端及云端服务器
WO2015165053A1 (zh) 一种二维码处理方法和终端
CN105979363A (zh) 一种身份识别法和装置
CN105493436A (zh) 用于向授权用户分发内容项目的方法、内容拥有者设备、计算机程序和计算机程序产品
US20220272096A1 (en) Media data based user profiles
WO2017107431A1 (zh) 一种图片分类方法、装置及电子设备
WO2015192615A1 (zh) 一种图像文件共享方法、装置和计算机存储介质
US9374559B1 (en) Low-latency media sharing
AU2018431320B2 (en) Wireless device, computer server node, and methods thereof
KR20120080379A (ko) 디지털 카메라의 이미지 어노테이션 처리 방법 및 장치
WO2019096207A1 (zh) 图像处理方法和计算机设备、计算机可读存储介质
JP6288109B2 (ja) カメラ端末装置、シンクライアントサーバ装置、カメラシステム、および制御方法
WO2016070371A1 (zh) 移动终端和web终端之间互连及流传输和流媒体播放的方法
JP2017111542A (ja) 情報処理端末、情報処理端末の制御方法、情報処理端末の制御プログラム、携帯端末、携帯端末の制御方法、および携帯端末の制御プログラム
JP5804723B2 (ja) 送信装置、受信装置
KR20240062847A (ko) O2o 환경에서 nft 기반 컨텐츠 검증 방법
WO2019023970A1 (zh) 一种智能终端的图片分享方法及图片分享系统
US20150288992A1 (en) Method and apparatus for providing model release for multimedia data

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15890348

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2015890348

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE