WO2017114190A1 - File uploading processing method and device - Google Patents

File uploading processing method and device Download PDF

Info

Publication number
WO2017114190A1
WO2017114190A1 PCT/CN2016/110357 CN2016110357W WO2017114190A1 WO 2017114190 A1 WO2017114190 A1 WO 2017114190A1 CN 2016110357 W CN2016110357 W CN 2016110357W WO 2017114190 A1 WO2017114190 A1 WO 2017114190A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
picture
content
description information
data
Prior art date
Application number
PCT/CN2016/110357
Other languages
French (fr)
Chinese (zh)
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 阿里巴巴集团控股有限公司
Publication of WO2017114190A1 publication Critical patent/WO2017114190A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures 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/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a file upload processing method and apparatus.
  • the traditional image uploading process includes a front-end processing process and a back-end processing process.
  • the front-end processing process is performed after the mobile phone performs image processing (such as image special effect processing, file compression, etc.), and the back-end processing process is performed on the server side, and the server receives the uploading process.
  • image processing such as image special effect processing, file compression, etc.
  • the back-end processing process is performed on the server side, and the server receives the uploading process.
  • a temporary file is generated on the server side, and then the data of the temporary file is read out by the application, the picture description information such as the picture specification is written into the database, and the picture content data is sent to the picture storage system, and the picture is stored by the picture.
  • the system stores.
  • the network where the mobile phone is located may be a 2G network, a 3G network, or a wireless local area network
  • the stability of the network is uncertain, and the image upload process needs to be cached in the memory of the server, which often results in a long image upload delay. , uploading efficiency is low.
  • caching temporary files in the server also occupies a large amount of memory resources on the server.
  • the embodiment of the present application provides a file upload processing method and device, which are used to improve file uploading efficiency.
  • the obtained file content is stored in a database; wherein In the database, the file description information is associated with the file content.
  • the file data is picture file data
  • the file description information and file content are file description information and picture content of the picture file.
  • the acquired image file data includes a protocol part and a file part, and the file part includes a file description part and a file content part, and the adjacent parts are separated by a separator;
  • Obtaining the file description information and the picture content in the picture file data including:
  • the storing, according to the obtained file description information, the acquired image content in a database including:
  • a record is created in the database, and the obtained file description information is stored in the file description field of the record, and the obtained image content is stored in the picture content field of the record;
  • the obtained picture content is stored in the picture content field of the record.
  • the method further includes:
  • server-side application program interface is configured to apply the image uploaded by the mobile terminal to the client according to the client user identity information after being invoked. End application.
  • the file description information includes one or a combination of the following information: a file name, a file type, and a picture size.
  • the picture content is secondary data.
  • a first acquiring module configured to acquire file data sent by the mobile terminal
  • a second obtaining module configured to acquire file description information and file content in the file data
  • a storage module configured to store, according to the obtained file description information, the obtained file content into a database; wherein, in the database, the file description information is associated with the file content.
  • the file data is picture file data
  • the file description information and file content are file description information and picture content of the picture file.
  • the acquired image file data includes a protocol part and a file part, and the file part includes a file description part and a file content part, and the adjacent parts are separated by a separator;
  • the second acquiring module is specifically configured to:
  • the storage module is specifically configured to:
  • a record is created in the database, and the obtained file description information is stored in the file description field of the record, and the obtained image content is stored in the picture content field of the record;
  • the obtained picture content is stored in the picture content field of the record.
  • the method further comprises:
  • a calling module configured to invoke a server-side application program interface by using the client user identity information of the mobile terminal after storing the acquired image content to the database according to the obtained file description information, where the server-side application program interface is used Applying the picture uploaded by the mobile terminal to the client application according to the client user identity information after being called.
  • the file description information includes one or a combination of the following information: a file name, a file type, and a picture size.
  • the picture content is secondary data.
  • the server after the server obtains the file data sent by the mobile terminal, Obtaining the file description information and the file content in the file data, and storing the obtained file content into the database according to the obtained file description information.
  • the server after receiving the file uploaded by the mobile terminal, the server does not cache the file as a temporary file, but stores it after receiving, thereby reducing the delay of file uploading and improving the efficiency of file uploading. And can also save server-side memory resource overhead.
  • FIG. 1 is a schematic structural diagram of a system applicable to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a file uploading process according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a server according to an embodiment of the present invention.
  • the embodiment of the present application provides a file uploading scheme for improving file uploading efficiency.
  • the solution provided by the embodiment of the present application can be applied to a process in which a mobile terminal uploads a file to a network side, where the mobile terminal can be a wireless communication capability device such as a mobile phone, a PDA (Personal Digital Assistant), or a smart wearable device. device.
  • the file types involved may be multimedia files such as pictures, audio and video, or other files, such as text files.
  • the embodiment of the present application is particularly applicable to a file type uploading process.
  • FIG. 1 exemplarily shows a network architecture to which the embodiment of the present application is applied.
  • this The network architecture may include a mobile terminal and a server on the network side, and the mobile terminal and the server communicate through the network.
  • the mobile terminal in the above architecture can upload files to the server on the network side through the network.
  • the mobile terminal can also process the uploaded image before uploading the file, for example, performing image special effect processing, file compression processing, etc., and then encapsulating the image file into a file of the corresponding format according to a prescribed protocol. And upload to the server on the network side.
  • the server in the above architecture can implement storage of files uploaded by the mobile terminal.
  • image-related application such as a social application (which requires the user to provide an avatar and display the user avatar in the user interface of the client application)
  • the client application of the application needs to be installed on the mobile terminal, and the server side needs to install the server-side application of the application, and the client application and the server-side application cooperate with each other to complete the social application.
  • the mobile terminal and the server can exchange information through the network, and the network can be a wide area network, a local area network or the Internet, or an Internet using mobile communication technology.
  • the mobile terminal can access the Internet wirelessly, and the server usually connects to the Internet in a wired manner.
  • the mobile terminal and the server can adopt cloud computing technology to implement information processing based on the powerful functions of the cloud computing technology.
  • Servers and mobile terminals can use cloud-based technology-based operating systems, such as YunOS, to integrate the resources and services of the cloud and mobile terminals.
  • FIG. 2 is a schematic flowchart of a file uploading process provided by an embodiment of the present application. This process can be implemented on the server side of the network side. As shown, the process can include the following steps:
  • Step 201 The server acquires file data sent by the mobile terminal.
  • Step 202 The server acquires file description information and file content in the file data.
  • Step 203 The server stores the obtained file content in a database according to the obtained file description information.
  • the file description information is associated with the file content in the database.
  • the server after receiving the file data sent by the mobile terminal, the server does not need to perform caching to generate a temporary file, but can store the received file data, thereby reducing the delay of file uploading and improving the time.
  • the efficiency of file uploading can save server storage resources Source overhead.
  • the file types involved may be multiple.
  • the mobile terminal encapsulates the picture file data to be uploaded according to a prescribed protocol, and then sends the picture file data to the server.
  • the protocol for transferring picture files may be an HTML (Hyper Text Mark-up Language) protocol.
  • HTML Hyper Text Mark-up Language
  • the mobile terminal encapsulates the picture file data to be uploaded according to the HTML protocol.
  • Multipart/form-data (multi-part form data) format is used when encapsulating image file data using the HTML protocol.
  • a message in a multipart/form-data format usually includes a protocol part, a file description part, and a file content part, and the adjacent components are divided by a separator.
  • the following code exemplarily shows a multipart/form-data format message content of picture file data.
  • HTTP HyperText Transfer Protoco, Hypertext Transfer Protocol
  • lines 1 to 8 are the headers of the protocol, that is, the protocol part, which mainly declares that the type of the command is POST, protocol version information, server address, content-type is multipart/form-data, and is defined.
  • the separator "---------------------7db372eb000e2" is used to separate multiple files, form items, etc., and the separator does not match the contents of the file or form item.
  • the data conflicts.
  • the content-type field needs to be defined. It includes a flag-like flag called boundary, which can be a random input character.
  • Content-Length 3693, here 3693 is the total length of the file to be uploaded.
  • the part after the 10th line to the position of the separator is the data to be uploaded, which may be text or a picture.
  • the data content is preceded by a description field such as Content-Disposition, Content-Type, and Content-Transfer-Encoding, which is used to define file description information, including data type (file), file name, file type (such as image format).
  • file data type
  • file type such as image format
  • Each of the separated data can use Content-Type to indicate the type of the following data, refer to rfc1341 (http://www.ietf.org/rfc/rfc1341.txt).
  • Contect-Type: image/jpeg indicates that the following data is jpeg file data.
  • step 202 after receiving the picture file data of the above format sent by the mobile terminal, the server parses the received message, and obtains the file description information and the picture content therein. Since the picture file data sent by the mobile terminal is in the multipart/form-data format specified by the protocol, the server can parse the received picture file data in the multipart/form-data format according to the protocol.
  • the server may determine the file description information and the location of the image content in the image file data according to the separator between the adjacent portions in the image file data message, and then describe the file according to the determined image file data.
  • the location of the information and image content, and the text in the image file data Description information and picture content (such as binary data).
  • the server may store the obtained file content (such as binary data) into the database according to the obtained file description information.
  • the server can store images in the following two ways:
  • Method 1 Store the image in the specified directory and add the storage path as a field value to the database record;
  • Method 2 Store the image in binary data in the database as the value of the OLE field.
  • the data storage structure of the database is also different.
  • ID serial number
  • Filename the name of the file
  • the field for storing the picture can be added in the database.
  • the field name fileimage of the stored image is added to the database, and the data type is "OLE object", which is used to store binary image data.
  • OE object which is used to store binary image data.
  • ID serial number
  • Filename the name of the file
  • Fileimage store the contents of the uploaded file (binary data);
  • Submit_date upload time
  • Width the length of the image
  • the fileimage field is a "picture content field” for storing picture binary data; the remaining fields are used to describe a picture or picture file, which may be collectively referred to as "file description field", and the "file description field” specifically includes fields.
  • file description field specifically includes fields.
  • the specific content in the "file description field” can be extracted from the picture file data received by the server.
  • the embodiment of the present invention preferably performs picture storage by using the above manner 2.
  • the server may query the records in the database according to the obtained file description information, for example, may further combine the sender's user information (such as the user according to the file ID, the file name, and the like). ID) Query the database to query whether there is a record matching the information (a record contains fields such as "file description information field” and "picture content field", and further, may also include a user ID field); if not queried , indicating that the currently received packet is the first packet of all the packets corresponding to the image file, and a record is created in the database, and the obtained file description information is stored in the file description of the record.
  • the sender's user information such as the user according to the file ID, the file name, and the like.
  • ID Query the database to query whether there is a record matching the information (a record contains fields such as "file description information field” and "picture content field”, and further, may also include a user ID field); if not queried , indicating that the currently received packet is the first packet of all the packets
  • the field stores the obtained image content in the picture content field of the record; if the query is found, the current received message is a message other than the first message in all the messages corresponding to the image file. Text, at this time the corresponding data record has been created, the server will store the obtained image content to the picture of the record Yung field.
  • the data volume of an image file is usually large, and the packet format specified by the transmission protocol has a certain length requirement. Therefore, it is usually required to split one image file data into multiple packets for transmission.
  • the server can use the BinaryRead method of the Request object of the ASP to read the binary information of the uploaded image of the mobile terminal, obtain the file name and absolute path of the uploaded image file, and the file type, etc., and specifically determine the identifier according to the separator. The starting position of the binary data of the file name, and then use ASP technology to convert the binary data into a file name to save. Further, the server writes the contents of the binary file into the OLE field of the database through the AppendChunk method of the recordset object.
  • the server first performs decompression processing after receiving the picture file data sent by the mobile terminal, and recovers. To the original image data.
  • the server obtains the file data sent by the mobile terminal, the file description information and the file content in the file data are obtained, and the obtained file content is stored according to the obtained file description information.
  • the server does not cache the file as a temporary file, but stores it after receiving, thereby reducing the delay of file uploading and improving the efficiency of file uploading. And can also save server-side memory resource overhead.
  • the server may also use the client user identity information (such as the user ID) of the mobile terminal to invoke the server-side application interface.
  • the server-side application program interface is configured to apply the image uploaded by the mobile terminal to the client application according to the client user identity information after being called.
  • the client user initiates a callback process through its client App. Since the network where the mobile terminal is located may be a 2G network, a 3G network, or a wireless local area network, the stability of the network is uncertain. Therefore, the client user initiates a callback process on the mobile terminal side. On the one hand, the delay may be long. It is also possible that the callback process fails, and on the other hand, the user operation is cumbersome.
  • the server side simulates the client user identity to initiate a callback, that is, instead of the client user initiating the callback, compared with the prior art, the delay can be reduced, and the success rate of the callback process is improved. It also simplifies user operations.
  • the client application of the application A needs to be installed on the mobile terminal, and the server-side application of the application needs to be installed on the server.
  • the application A is a social application, and the user is required to provide an avatar and display it in the user interface of the client application.
  • the user uses the user account (user ID) to log in to the client app of the mobile terminal, and selects a function button or a menu command of "set user avatar” in the user avatar setting interface provided by the client app, and according to the prompt of the setting interface, Select a picture as the avatar in the picture library of the mobile terminal. It After that, the user selects the function button or menu command of “Upload Picture” according to the prompt of the setting interface.
  • the client App obtains the image file description information and the binary data of the image content according to the command of “uploading the image”, and the obtained image file description information may include: a picture file name, a picture type (such as a JPEG format or other pictures). One or a combination of information such as format, absolute path, and length and width of the picture. Then, according to the HTML protocol, the obtained picture file description information and the binary data of the picture content are encapsulated into one or more messages. For the specific packet format, refer to the foregoing embodiment, which is not repeated here.
  • the client App sends the encapsulated message to the server, where the address of the server can be preset in the client App, or the client App can obtain the address of the server in other manners.
  • the server receives the picture data message sent by the mobile terminal, parses the message according to the HTML protocol, and obtains the picture file description information and the binary data of the picture content.
  • the picture description information includes an image file name, a picture file format, and a picture size.
  • the server creates a record in the database, and fills in the obtained image file name, image file format, image size, and user ID into the corresponding field of the record, and adds the binary data of the obtained image content to the record. OLE field.
  • the server calls the developer API (Application Programming Interface) of the application A with the user ID of the client.
  • the API Application Programming Interface
  • the following process is triggered to apply the image uploaded by the client user to the client application, that is, the image is displayed in the avatar display area of the user interface. This process is called a callback process.
  • the embodiment of the present application further provides a server, which can implement the above file upload processing flow.
  • FIG. 3 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • the device may include: a first obtaining module 301, a second obtaining module 302, and a storage module 303, where:
  • the first obtaining module 301 is configured to acquire file data sent by the mobile terminal
  • the second obtaining module 302 is configured to acquire file description information and file content in the file data.
  • the storage module 303 is configured to store the obtained file content into a database according to the obtained file description information, where the file description information is associated with the file content.
  • the file data is picture file data
  • the file description information and file content are file description information and picture content of the picture file.
  • the acquired picture file data includes a protocol part and a file part
  • the file part includes a file description part and a file content part
  • the adjacent parts are separated by a separator.
  • the second obtaining module 302 is specifically configured to: determine, according to a separator between adjacent portions, file description information and a location of the image content in the image file data; according to the determined image file data The file description information and the location of the picture content, and the file description information and the picture content in the picture file data are obtained.
  • the storage module 303 is specifically configured to: query a corresponding record in the database according to the obtained file description information; if not, create a record in the database, and store the obtained file description information. Go to the file description field of the record, and store the obtained image content in the picture content field of the record; if queried, store the obtained picture content in the picture content field of the record.
  • the server may further include a calling module 304, configured to invoke the server-side application program interface by using the client user identity information of the mobile terminal after storing the acquired image content to the database according to the obtained file description information.
  • the server-side application program interface is configured to apply the image uploaded by the mobile terminal to the client application according to the client user identity information after being invoked.
  • the file description information includes one or a combination of the following information: a file name, a file type, and a picture size.
  • the picture content is secondary data.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A file uploading processing method and device are provided. The method comprises: after a server obtains file data sent by a mobile terminal, the server obtains file description information and file content in the file data, and stores the obtained file content into a database according to the obtained file description information. Compared with the prior art, the server, after receiving an uploaded file from the mobile terminal, does not cache the uploaded file as a temporary file, instead, stores the uploaded file right after receiving the same, thereby reducing the time delay in file uploading, improving the efficiency of file uploading, and saving memory overhead of the server.

Description

一种文件上传处理方法及装置File upload processing method and device 技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种文件上传处理方法及装置。The present application relates to the field of communications technologies, and in particular, to a file upload processing method and apparatus.
背景技术Background technique
随着移动通信技术的飞速发展和移动多媒体时代的到来,手机作为人们必备的移动通信工具,已从简单的通话工具向智能化发展,演变成一个移动的信息收集和处理平台。在当前移动互联网时代,手机作为一种常见的终端,充当重要的角色。With the rapid development of mobile communication technology and the advent of the mobile multimedia era, mobile phones, as a necessary mobile communication tool for people, have evolved from simple call tools to intelligent development, and have evolved into a mobile information collection and processing platform. In the current mobile Internet era, mobile phones play an important role as a common terminal.
在云计算时代,通过手机进行图片上传在不同业务场景下得到广泛应用。传统的图片上传过程包括前端处理过程和后端处理过程,前端处理过程是指手机进行图片处理(比如图片特效处理、文件压缩等)后发送,后端处理过程在服务器端进行,服务器接收到上传的图片数据后,在服务器端生成临时文件,然后通过应用程序将临时文件的数据读取出来,将图片规格等图片描述信息写入数据库,再将图片内容数据向图片存储系统发送,由图片存储系统进行存储。In the era of cloud computing, image uploading via mobile phones has been widely used in different business scenarios. The traditional image uploading process includes a front-end processing process and a back-end processing process. The front-end processing process is performed after the mobile phone performs image processing (such as image special effect processing, file compression, etc.), and the back-end processing process is performed on the server side, and the server receives the uploading process. After the picture data, a temporary file is generated on the server side, and then the data of the temporary file is read out by the application, the picture description information such as the picture specification is written into the database, and the picture content data is sent to the picture storage system, and the picture is stored by the picture. The system stores.
由于手机所在的网络有可能是2G网络、3G网络或无线局域网等,网络的稳定性具有不确定性,而且图片上传过程中需要在服务器的内存中进行缓存,因此往往导致图片上传时延比较长,上传效率较低。而且,在服务器中缓存临时文件,也会占用服务器大量内存资源。Since the network where the mobile phone is located may be a 2G network, a 3G network, or a wireless local area network, the stability of the network is uncertain, and the image upload process needs to be cached in the memory of the server, which often results in a long image upload delay. , uploading efficiency is low. Moreover, caching temporary files in the server also occupies a large amount of memory resources on the server.
申请内容Application content
本申请实施例提供了一种文件上传处理方法及装置,用以提高文件上传效率。The embodiment of the present application provides a file upload processing method and device, which are used to improve file uploading efficiency.
本申请实施例提供的文件上传处理方法,包括:The file upload processing method provided by the embodiment of the present application includes:
获取移动终端发送的文件数据;Obtaining file data sent by the mobile terminal;
获取所述文件数据中的文件描述信息以及文件内容;Obtaining file description information and file content in the file data;
根据获取到的文件描述信息,将获取到的文件内容存储到数据库中;其中, 所述数据库中,所述文件描述信息与所述文件内容相关联。According to the obtained file description information, the obtained file content is stored in a database; wherein In the database, the file description information is associated with the file content.
优选地,所述文件数据为图片文件数据,所述文件描述信息和文件内容为图片文件的文件描述信息和图片内容。Preferably, the file data is picture file data, and the file description information and file content are file description information and picture content of the picture file.
优选地,获取到的图片文件数据中包括协议部分和文件部分,所述文件部分包括文件描述部分和文件内容部分,相邻部分之间用分隔符分割;Preferably, the acquired image file data includes a protocol part and a file part, and the file part includes a file description part and a file content part, and the adjacent parts are separated by a separator;
所述获取所述图片文件数据中的文件描述信息以及图片内容,包括:Obtaining the file description information and the picture content in the picture file data, including:
根据相邻部分之间的分隔符,确定所述图片文件数据中的文件描述信息和图片内容的位置;Determining a location of the file description information and the picture content in the picture file data according to a separator between adjacent portions;
根据确定出的所述图片文件数据中的文件描述信息和图片内容的位置,获取所述图片文件数据中的文件描述信息以及图片内容。And obtaining file description information and picture content in the picture file data according to the determined file description information and the location of the picture content in the picture file data.
优选地,所述根据获取到的文件描述信息,将获取到的图片内容存储到数据库中,包括:Preferably, the storing, according to the obtained file description information, the acquired image content in a database, including:
根据获取到的文件描述信息查询所述数据库中的相应记录;Querying corresponding records in the database according to the obtained file description information;
若未查询到,则在所述数据库中创建一条记录,将获取到的文件描述信息存储到该条记录的文件描述字段,将获取到的图片内容存储到该条记录的图片内容字段;If not found, a record is created in the database, and the obtained file description information is stored in the file description field of the record, and the obtained image content is stored in the picture content field of the record;
若查询到,则将获取到的图片内容存储到该条记录的图片内容字段。If queried, the obtained picture content is stored in the picture content field of the record.
优选地,所述根据获取到的文件描述信息,存储获取到的图片内容到数据库之后,还包括:Preferably, after the stored image content is stored in the database according to the obtained file description information, the method further includes:
使用所述移动终端的客户端用户身份信息调用服务器端的应用程序接口,所述服务器端的应用程序接口用于在被调用后根据所述客户端用户身份信息将所述移动终端上传的图片应用于客户端应用程序。Using the client user identity information of the mobile terminal to invoke a server-side application program interface, where the server-side application program interface is configured to apply the image uploaded by the mobile terminal to the client according to the client user identity information after being invoked. End application.
优选地,所述文件描述信息包括以下信息中的一种或组合:文件名称、文件类型、图片大小。Preferably, the file description information includes one or a combination of the following information: a file name, a file type, and a picture size.
优选地,所述图片内容为二级制数据。Preferably, the picture content is secondary data.
本申请实施例提供的服务器,包括:The server provided in this embodiment of the present application includes:
第一获取模块,用于获取移动终端发送的文件数据; a first acquiring module, configured to acquire file data sent by the mobile terminal;
第二获取模块,用于获取所述文件数据中的文件描述信息以及文件内容;a second obtaining module, configured to acquire file description information and file content in the file data;
存储模块,用于根据获取到的文件描述信息,将获取到的文件内容存储到数据库中;其中,所述数据库中,所述文件描述信息与所述文件内容相关联。And a storage module, configured to store, according to the obtained file description information, the obtained file content into a database; wherein, in the database, the file description information is associated with the file content.
优选地,所述文件数据为图片文件数据,所述文件描述信息和文件内容为图片文件的文件描述信息和图片内容。Preferably, the file data is picture file data, and the file description information and file content are file description information and picture content of the picture file.
优选地,获取到的图片文件数据中包括协议部分和文件部分,所述文件部分包括文件描述部分和文件内容部分,相邻部分之间用分隔符分割;Preferably, the acquired image file data includes a protocol part and a file part, and the file part includes a file description part and a file content part, and the adjacent parts are separated by a separator;
所述第二获取模块具体用于:The second acquiring module is specifically configured to:
根据相邻部分之间的分隔符,确定所述图片文件数据中的文件描述信息和图片内容的位置;Determining a location of the file description information and the picture content in the picture file data according to a separator between adjacent portions;
根据确定出的所述图片文件数据中的文件描述信息和图片内容的位置,获取所述图片文件数据中的文件描述信息以及图片内容。And obtaining file description information and picture content in the picture file data according to the determined file description information and the location of the picture content in the picture file data.
优选地,所述存储模块具体用于:Preferably, the storage module is specifically configured to:
根据获取到的文件描述信息查询所述数据库中的相应记录;Querying corresponding records in the database according to the obtained file description information;
若未查询到,则在所述数据库中创建一条记录,将获取到的文件描述信息存储到该条记录的文件描述字段,将获取到的图片内容存储到该条记录的图片内容字段;If not found, a record is created in the database, and the obtained file description information is stored in the file description field of the record, and the obtained image content is stored in the picture content field of the record;
若查询到,则将获取到的图片内容存储到该条记录的图片内容字段。If queried, the obtained picture content is stored in the picture content field of the record.
优选地,还包括:Preferably, the method further comprises:
调用模块,用于在根据获取到的文件描述信息,存储获取到的图片内容到数据库之后,使用所述移动终端的客户端用户身份信息调用服务器端的应用程序接口,所述服务器端的应用程序接口用于在被调用后根据所述客户端用户身份信息将所述移动终端上传的图片应用于客户端应用程序。a calling module, configured to invoke a server-side application program interface by using the client user identity information of the mobile terminal after storing the acquired image content to the database according to the obtained file description information, where the server-side application program interface is used Applying the picture uploaded by the mobile terminal to the client application according to the client user identity information after being called.
优选地,所述文件描述信息包括以下信息中的一种或组合:文件名称、文件类型、图片大小。Preferably, the file description information includes one or a combination of the following information: a file name, a file type, and a picture size.
优选地,所述图片内容为二级制数据。Preferably, the picture content is secondary data.
本申请的上述实施例中,当服务器端获取到移动终端发送的文件数据后, 获取该文件数据中的文件描述信息以及文件内容,并根据获取到的文件描述信息,将获取到的文件内容存储到数据库中。与现有技术相比,服务器端在接收到移动终端上传的文件后未将其缓存为临时文件,而是接收后就进行存储,从而降低了文件上传的时延,提高了文件上传的效率,并且还可以节省服务器端的内存资源开销。In the above embodiment of the present application, after the server obtains the file data sent by the mobile terminal, Obtaining the file description information and the file content in the file data, and storing the obtained file content into the database according to the obtained file description information. Compared with the prior art, after receiving the file uploaded by the mobile terminal, the server does not cache the file as a temporary file, but stores it after receiving, thereby reducing the delay of file uploading and improving the efficiency of file uploading. And can also save server-side memory resource overhead.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following drawings will be briefly described in the description of the embodiments. It is obvious that the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1为本发明实施例适用的系统架构示意图;1 is a schematic structural diagram of a system applicable to an embodiment of the present invention;
图2为本发明实施例提供的文件上传流程示意图;2 is a schematic diagram of a file uploading process according to an embodiment of the present invention;
图3为本发明实施例提供的服务器结构示意图。FIG. 3 is a schematic structural diagram of a server according to an embodiment of the present invention.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请一部份实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The present application will be further described in detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all embodiments. . All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
本申请实施例提供了一种文件上传方案,用于提高文件上传效率。本申请实施例提供的方案可应用于移动终端上传文件到网络侧的过程,其中,所述移动终端可以是手机、PDA(Personal Digital Assistant,掌上电脑)或智能穿戴设备等具有无线通信能力的电子设备。涉及到的文件类型可以是图片、音视频等多媒体文件,也可以是其他文件,如文本文件。本申请实施例尤其适用于图片类型的文件的上传过程。The embodiment of the present application provides a file uploading scheme for improving file uploading efficiency. The solution provided by the embodiment of the present application can be applied to a process in which a mobile terminal uploads a file to a network side, where the mobile terminal can be a wireless communication capability device such as a mobile phone, a PDA (Personal Digital Assistant), or a smart wearable device. device. The file types involved may be multimedia files such as pictures, audio and video, or other files, such as text files. The embodiment of the present application is particularly applicable to a file type uploading process.
下面结合附图对本申请实施例进行详细描述。The embodiments of the present application are described in detail below with reference to the accompanying drawings.
图1示例性地示出了本申请实施例适用的一种网络架构。如图1所示,该 网络架构中可包括移动终端以及网络侧的服务器,移动终端和服务器通过网络进行通信。FIG. 1 exemplarily shows a network architecture to which the embodiment of the present application is applied. As shown in Figure 1, this The network architecture may include a mobile terminal and a server on the network side, and the mobile terminal and the server communicate through the network.
上述架构中的移动终端可以通过网络将文件上传到网络侧的服务器。以图片上传为例,移动终端在进行文件上传之前,还可以对待上传的图片进行处理,比如可以进行图片特效处理、文件压缩处理等,然后按照规定的协议将图片文件封装为相应格式的文件,并上传到网络侧的服务器。The mobile terminal in the above architecture can upload files to the server on the network side through the network. Taking the image upload as an example, the mobile terminal can also process the uploaded image before uploading the file, for example, performing image special effect processing, file compression processing, etc., and then encapsulating the image file into a file of the corresponding format according to a prescribed protocol. And upload to the server on the network side.
上述架构中的服务器可以实现对移动终端上传的文件进行存储。The server in the above architecture can implement storage of files uploaded by the mobile terminal.
仍以图片上传为例,为了实现某种与图片相关的应用,比如某种社交应用(该社交应用中需要用户提供头像并在客户端App(应用程序)的用户界面中可显示用户头像),移动终端上需要安装该应用的客户端App,服务器端需要安装该应用的服务器端App,客户端App和服务器端App相互配合来完成该社交应用。Still taking image upload as an example, in order to implement some kind of image-related application, such as a social application (which requires the user to provide an avatar and display the user avatar in the user interface of the client application), The client application of the application needs to be installed on the mobile terminal, and the server side needs to install the server-side application of the application, and the client application and the server-side application cooperate with each other to complete the social application.
上述网络架构中,移动终端和服务器可以通过网络进行信息交互,该网络可以是广域网、局域网或互联网,或者采用移动通信技术的互联网。移动终端可通过无线方式接入互联网,服务器通常采用有线方式与互联网连接。In the above network architecture, the mobile terminal and the server can exchange information through the network, and the network can be a wide area network, a local area network or the Internet, or an Internet using mobile communication technology. The mobile terminal can access the Internet wirelessly, and the server usually connects to the Internet in a wired manner.
优选地,移动终端和服务器可以采用云计算技术,以基于云计算技术的强大功能实现信息处理。服务器和移动终端可采用基于云计算技术的操作系统,比如YunOS,从而可以整合云端和移动终端的资源和服务。Preferably, the mobile terminal and the server can adopt cloud computing technology to implement information processing based on the powerful functions of the cloud computing technology. Servers and mobile terminals can use cloud-based technology-based operating systems, such as YunOS, to integrate the resources and services of the cloud and mobile terminals.
下面结合附图对本申请实施例进行详细描述。The embodiments of the present application are described in detail below with reference to the accompanying drawings.
参见图2,为本申请实施例提供的文件上传处理流程示意图。该流程可在网络侧的服务器端实现。如图所示,该流程可包括如下步骤:2 is a schematic flowchart of a file uploading process provided by an embodiment of the present application. This process can be implemented on the server side of the network side. As shown, the process can include the following steps:
步骤201:服务器获取移动终端发送的文件数据;Step 201: The server acquires file data sent by the mobile terminal.
步骤202:服务器获取所述文件数据中的文件描述信息以及文件内容;Step 202: The server acquires file description information and file content in the file data.
步骤203:服务器根据获取到的文件描述信息,将获取到的文件内容存储到数据库中;其中,所述数据库中,所述文件描述信息与所述文件内容相关联。Step 203: The server stores the obtained file content in a database according to the obtained file description information. The file description information is associated with the file content in the database.
上述流程中,服务器端接收到移动终端发送来的文件数据后,无需进行缓存以生成临时文件,而是可将接收到的文件数据进行存储,因此一方面降低了文件上传的时延,提高了文件上传的效率,另一方面可以节省服务器的存储资 源开销。In the above process, after receiving the file data sent by the mobile terminal, the server does not need to perform caching to generate a temporary file, but can store the received file data, thereby reducing the delay of file uploading and improving the time. The efficiency of file uploading, on the other hand, can save server storage resources Source overhead.
上述流程中,所涉及的文件类型可以是多种,下面以图片类型的文件为例,对图片上传处理过程进行详细描述。In the above process, the file types involved may be multiple. The following takes the picture type file as an example to describe the image uploading process in detail.
移动终端按照规定的协议封装待上传的图片文件数据,然后将该图片文件数据发送给服务器。传输图片文件的协议可以是HTML(Hyper Text Mark-up Language,超文本标记语言)协议。下面以HTML协议为例,对图1所示的图片上传处理过程进行详细描述。The mobile terminal encapsulates the picture file data to be uploaded according to a prescribed protocol, and then sends the picture file data to the server. The protocol for transferring picture files may be an HTML (Hyper Text Mark-up Language) protocol. The following takes the HTML protocol as an example to describe the image uploading process shown in FIG. 1 in detail.
在步骤201中,移动终端按照HTML协议将待上传的图片文件数据进行封装。在使用HTML协议对图片文件数据进行封装时,采用multipart/form-data(多部件的表单数据)格式。通常,multipart/form-data格式的报文中通常包括协议部分、文件描述部分和文件内容部分,相邻组成部分之间用分隔符进行分割。In step 201, the mobile terminal encapsulates the picture file data to be uploaded according to the HTML protocol. Multipart/form-data (multi-part form data) format is used when encapsulating image file data using the HTML protocol. Generally, a message in a multipart/form-data format usually includes a protocol part, a file description part, and a file content part, and the adjacent components are divided by a separator.
下面的代码示例性地示出了一种图片文件数据的multipart/form-data格式报文内容。The following code exemplarily shows a multipart/form-data format message content of picture file data.
假设移动终端需要发送一个图片文件,文件名为“kn.jpg”,接受文件的网页程序位于:http://192.168.24.56/logsys/home/uploadIspeedLog!doDefault.html,那么,移动终端客户端链接192.168.24.56后,发送如下HTTP(HyperText Transfer Protoco,超文本传输协议)请求:Assume that the mobile terminal needs to send a picture file named "kn.jpg", and the web page program accepting the file is located at: http://192.168.24.56/logsys/home/uploadIspeedLog! doDefault.html, then, after the mobile terminal client link 192.168.24.56, send the following HTTP (HyperText Transfer Protoco, Hypertext Transfer Protocol) request:
POST/logsys/home/uploadIspeedLog!doDefault.html HTTP/1.1POST/logsys/home/uploadIspeedLog! doDefault.html HTTP/1.1
Accept:text/plain,*/*Accept: text/plain, */*
Accept-Language:zh-cnAccept-Language: zh-cn
Host:192.168.24.56Host: 192.168.24.56
Content-Type:multipart/form-data;boundary=---------------------7db372eb000e2Content-Type: multipart/form-data;boundary=---------------------7db372eb000e2
User-Agent:WinHttpClientUser-Agent: WinHttpClient
Content-Length:3693Content-Length: 3693
Connection:Keep-AliveConnection: Keep-Alive
---------------------7db372eb000e2 ---------------------7db372eb000e2
Content-Disposition:form-data;name="file";filename="kn.jpg"Content-Disposition:form-data;name="file";filename="kn.jpg"
Content-Type:image/jpegContent-Type: image/jpeg
(此处省略jpeg文件二进制数据...)(The jpeg file binary data is omitted here...)
---------------------7db372eb000e2-----------------------7db372eb000e2--
上述代码中,第1行至第8行是协议的头,即协议部分,该部分代码主要声明命令的类型是POST,协议版本信息,服务器地址,content-type为multipart/form-data,并定义了分隔符“---------------------7db372eb000e2”,用于分隔多个文件、表单项等,分隔符不会与文件或表单项内容中的数据发生冲突。在进行图片上传时,并非协议头部分的每个字段都需要说明,其中,content-type字段需要定义,它包括一个类似标志性质的名为boundary(边界)的标志,它可以是随便输入的字符串,用来分辨一段内容的开始。Content-Length:3693,这里的3693是要上传文件的总长度。In the above code, lines 1 to 8 are the headers of the protocol, that is, the protocol part, which mainly declares that the type of the command is POST, protocol version information, server address, content-type is multipart/form-data, and is defined. The separator "---------------------7db372eb000e2" is used to separate multiple files, form items, etc., and the separator does not match the contents of the file or form item. The data conflicts. When uploading an image, not every field in the header part of the protocol needs to be specified. The content-type field needs to be defined. It includes a flag-like flag called boundary, which can be a random input character. A string that is used to distinguish the beginning of a piece of content. Content-Length: 3693, here 3693 is the total length of the file to be uploaded.
第10行之后到分隔符位置的部分是需要上传的数据,可以是文本,也可以是图片等。数据内容前面有Content-Disposition,Content-Type以及Content-Transfer-Encoding等说明字段,用于定义文件描述信息,主要包括数据的类型(file),文件名称,文件类型(如图片格式)等。其后为具体的文件内容,对于图片文件来说即为图片文件的二进制数据。The part after the 10th line to the position of the separator is the data to be uploaded, which may be text or a picture. The data content is preceded by a description field such as Content-Disposition, Content-Type, and Content-Transfer-Encoding, which is used to define file description information, including data type (file), file name, file type (such as image format). This is followed by the specific file content, which is the binary data of the image file for the image file.
每个分隔的数据都可以用Content-Type来表示下面数据的类型,可以参考rfc1341(http://www.ietf.org/rfc/rfc1341.txt)。例如,Contect-Type:image/jpeg表示下面的数据是jpeg文件数据。Each of the separated data can use Content-Type to indicate the type of the following data, refer to rfc1341 (http://www.ietf.org/rfc/rfc1341.txt). For example, Contect-Type: image/jpeg indicates that the following data is jpeg file data.
在步骤202中,服务器接收到移动终端发送的上述格式的图片文件数据后,对接收到的报文进行解析,获取其中的文件描述信息以及图片内容。由于移动终端发送的图片文件数据是根据协议规定的multipart/form-data格式,因此服务器可以根据该协议对接收到的multipart/form-data格式的图片文件数据进行解析。In step 202, after receiving the picture file data of the above format sent by the mobile terminal, the server parses the received message, and obtains the file description information and the picture content therein. Since the picture file data sent by the mobile terminal is in the multipart/form-data format specified by the protocol, the server can parse the received picture file data in the multipart/form-data format according to the protocol.
具体地,服务器可根据图片文件数据报文中,相邻部分之间的分隔符,确定该图片文件数据中的文件描述信息和图片内容的位置,然后根据确定出的图片文件数据中的文件描述信息和图片内容的位置,获取该图片文件数据中的文 件描述信息以及图片内容(如二进制数据)。Specifically, the server may determine the file description information and the location of the image content in the image file data according to the separator between the adjacent portions in the image file data message, and then describe the file according to the determined image file data. The location of the information and image content, and the text in the image file data Description information and picture content (such as binary data).
在步骤203中,服务器可根据获取到的文件描述信息,将获取到的文件内容(如二进制数据)存储到数据库中。服务器存储图片的方式主要可采用以下两种:In step 203, the server may store the obtained file content (such as binary data) into the database according to the obtained file description information. The server can store images in the following two ways:
方式1:将图片存储到指定的目录中,将存储路径作为字段值添加到数据库记录中;Method 1: Store the image in the specified directory and add the storage path as a field value to the database record;
方式2:将图片以二进制数据方式存储到数据库中,作为OLE字段的值。Method 2: Store the image in binary data in the database as the value of the OLE field.
根据图片的存储方式的不同,数据库的数据存储结构也相应有所不同。Depending on how the images are stored, the data storage structure of the database is also different.
对于上述方式1,数据库的数据表中,可设置如下字段:For the above method 1, in the data table of the database, the following fields can be set:
ID:序号;ID: serial number;
filename:文件名称;Filename: the name of the file;
ext:文件扩展名;Ext: file extension;
size:文件大小;Size: the file size;
intro:文件简要说明;Intro: a brief description of the file;
submit_date:上传时间Submit_date: upload time
对于上述方式2,图片信息如果存放到数据库,在数据库中可增加存储图片的字段(OLE类型)。数据库中增加存放图片的字段名fileimage,数据类型为“OLE对象”,该类型用来存放二进制图片数据。作为一个例子,可设置如下字段:For the above mode 2, if the picture information is stored in the database, the field for storing the picture (OLE type) can be added in the database. The field name fileimage of the stored image is added to the database, and the data type is "OLE object", which is used to store binary image data. As an example, the following fields can be set:
ID:序号;ID: serial number;
filename:文件名称;Filename: the name of the file;
fileimage:存放上传文件内容(二进制数据);Fileimage: store the contents of the uploaded file (binary data);
ext:文件扩展名;Ext: file extension;
size:文件大小;Size: the file size;
intro:文件简要说明;Intro: a brief description of the file;
submit_date:上传时间; Submit_date: upload time;
width:图片的长;Width: the length of the image;
height:图片的宽。Height: the width of the image.
上述数据结构中,fileimage字段为“图片内容字段”,用于存储图片二进制数据;其余字段用于描述图片或图片文件,可统称为“文件描述字段”,“文件描述字段”具体包含的字段可如上所列出的字段中的一种或组合。“文件描述字段”中的具体内容可从服务器接收到的图片文件数据中提取。In the above data structure, the fileimage field is a "picture content field" for storing picture binary data; the remaining fields are used to describe a picture or picture file, which may be collectively referred to as "file description field", and the "file description field" specifically includes fields. One or a combination of the fields listed above. The specific content in the "file description field" can be extracted from the picture file data received by the server.
本发明实施例优选地采用上述方式2进行图片存储。The embodiment of the present invention preferably performs picture storage by using the above manner 2.
以采用上述方式2进行图片存储为例,服务器可根据获取到的文件描述信息查询数据库中的记录,比如可以根据文件ID、文件名称等信息,进一步地还可结合发送者的用户信息(比如用户ID)查询数据库,以查询是否存在与这些信息匹配的记录(一条记录中包含“文件描述信息字段”和“图片内容字段”等字段,进一步地,还可包含用户ID字段);若未查询到,则表明当前接收到的报文是一个图片文件对应的所有报文中的第一个报文,则在该数据库中创建一条记录,将获取到的文件描述信息存储到该条记录的文件描述字段,将获取到的图片内容存储到该条记录的图片内容字段;若查询到,则表明当前接收到的报文是一个图片文件对应的所有报文中除第一报文以外的某个报文,此时相应的数据记录已创建,则服务器将获取到的图片内容存储到该条记录的图片内容字段。Taking the image storage in the above manner 2 as an example, the server may query the records in the database according to the obtained file description information, for example, may further combine the sender's user information (such as the user according to the file ID, the file name, and the like). ID) Query the database to query whether there is a record matching the information (a record contains fields such as "file description information field" and "picture content field", and further, may also include a user ID field); if not queried , indicating that the currently received packet is the first packet of all the packets corresponding to the image file, and a record is created in the database, and the obtained file description information is stored in the file description of the record. The field stores the obtained image content in the picture content field of the record; if the query is found, the current received message is a message other than the first message in all the messages corresponding to the image file. Text, at this time the corresponding data record has been created, the server will store the obtained image content to the picture of the record Yung field.
需要说明的是,一个图片文件的数据量通常较大,而传输协议所规定的报文格式有一定的长度要求,因此通常需要将一个图片文件数据拆分为多个报文进行传输。It should be noted that the data volume of an image file is usually large, and the packet format specified by the transmission protocol has a certain length requirement. Therefore, it is usually required to split one image file data into multiple packets for transmission.
作为一个例子,服务器可使用ASP的Request对象的BinaryRead方法读取移动终端上传图片的二进制信息,从中获得上传的图片文件的文件名和绝对路径以及文件类型等信息,具体可根据其中的分隔符确定出文件名的二进制数据的起始位置,再利用ASP技术将二进制数据转换成文件名保存。进一步地,服务器通过recordset对象的AppendChunk方法,将二进制的文件内容写入数据库的OLE字段。As an example, the server can use the BinaryRead method of the Request object of the ASP to read the binary information of the uploaded image of the mobile terminal, obtain the file name and absolute path of the uploaded image file, and the file type, etc., and specifically determine the identifier according to the separator. The starting position of the binary data of the file name, and then use ASP technology to convert the binary data into a file name to save. Further, the server writes the contents of the binary file into the OLE field of the database through the AppendChunk method of the recordset object.
进一步地,如果移动终端在上传图片之前,对图片进行了压缩处理,则服务器在收到移动终端发送的图片文件数据之后,首先进行解压缩处理,恢复得 到原始图片数据。Further, if the mobile terminal performs compression processing on the picture before uploading the picture, the server first performs decompression processing after receiving the picture file data sent by the mobile terminal, and recovers. To the original image data.
通过以上描述可以看出,当服务器端获取到移动终端发送的文件数据后,获取该文件数据中的文件描述信息以及文件内容,并根据获取到的文件描述信息,将获取到的文件内容存储到数据库中。与现有技术相比,服务器端在接收到移动终端上传的文件后未将其缓存为临时文件,而是接收后就进行存储,从而降低了文件上传的时延,提高了文件上传的效率,并且还可以节省服务器端的内存资源开销。As can be seen from the above description, after the server obtains the file data sent by the mobile terminal, the file description information and the file content in the file data are obtained, and the obtained file content is stored according to the obtained file description information. In the database. Compared with the prior art, after receiving the file uploaded by the mobile terminal, the server does not cache the file as a temporary file, but stores it after receiving, thereby reducing the delay of file uploading and improving the efficiency of file uploading. And can also save server-side memory resource overhead.
进一步地,在一些实施例中,服务器根据获取到的文件描述信息,存储获取到的图片内容到数据库之后,还可使用移动终端的客户端用户身份信息(如用户ID)调用服务器端的应用程序接口,服务器端的应用程序接口用于在被调用后根据该客户端用户身份信息将该移动终端上传的图片应用于客户端应用程序。通过服务器取代移动终端向开发者应用进行回调,可以实现回调信息的高可靠性。Further, in some embodiments, after the server stores the acquired image content to the database according to the obtained file description information, the server may also use the client user identity information (such as the user ID) of the mobile terminal to invoke the server-side application interface. The server-side application program interface is configured to apply the image uploaded by the mobile terminal to the client application according to the client user identity information after being called. By using a server instead of a mobile terminal to call back to the developer application, high reliability of the callback information can be achieved.
在现有图片上传处理过程中,图片上传完成后,由客户端用户通过其客户端App发起回调过程。由于移动终端所在的网络有可能是2G网络、3G网络或无线局域网等,网络的稳定性具有不确定性,因此由客户端用户在移动终端侧发起回调过程,一方面,其时延可能较长,也可能回调过程失败,另一方面用户操作也比较繁琐。而本发明的上述实施例中,由服务器端模拟客户端用户身份发起回调,即代替客户端用户发起回调,与现有技术相比,可以减少时延,提高回调过程的成功率,另一方面,也可以简化用户操作。In the existing image uploading process, after the image upload is completed, the client user initiates a callback process through its client App. Since the network where the mobile terminal is located may be a 2G network, a 3G network, or a wireless local area network, the stability of the network is uncertain. Therefore, the client user initiates a callback process on the mobile terminal side. On the one hand, the delay may be long. It is also possible that the callback process fails, and on the other hand, the user operation is cumbersome. In the above embodiment of the present invention, the server side simulates the client user identity to initiate a callback, that is, instead of the client user initiating the callback, compared with the prior art, the delay can be reduced, and the success rate of the callback process is improved. It also simplifies user operations.
为了更清楚地理解本发明的上述实施例,下面以一个具体应用场景为例,对本发明上述实施例的具体实现过程进行详细描述。In order to more clearly understand the above-mentioned embodiments of the present invention, a specific implementation process of the foregoing embodiments of the present invention will be described in detail below by taking a specific application scenario as an example.
移动终端上需要安装应用A的客户端App,服务器端需要安装该应用的服务器端App,应用A是一种社交应用,需要用户提供头像并在客户端App的用户界面中显示。The client application of the application A needs to be installed on the mobile terminal, and the server-side application of the application needs to be installed on the server. The application A is a social application, and the user is required to provide an avatar and display it in the user interface of the client application.
在移动终端侧:On the mobile terminal side:
用户使用用户账号(用户ID)登录移动终端的客户端App,在该客户端App提供的用户头像设置界面中选择“设置用户头像”的功能按钮或菜单命令,并根据设置界面的提示,从该移动终端的图片库中选择一个图片作为头像。之 后,用户根据设置界面的提示,选择“上传图片”的功能按钮或菜单命令。The user uses the user account (user ID) to log in to the client app of the mobile terminal, and selects a function button or a menu command of "set user avatar" in the user avatar setting interface provided by the client app, and according to the prompt of the setting interface, Select a picture as the avatar in the picture library of the mobile terminal. It After that, the user selects the function button or menu command of “Upload Picture” according to the prompt of the setting interface.
该客户端App根据该“上传图片”的命令,获取该图片文件描述信息以及图片内容的二进制数据,所获取的图片文件描述信息可包括:图片文件名称、图片类型(比如是JPEG格式还是其他图片格式)、绝对路径、图片的长宽等信息中的一种或组合。然后,按照HTML协议,将获取到的图片文件描述信息和该图片内容的二进制数据封装为一个或多个报文。具体的报文格式可参见前述实施例,在此不再重复。The client App obtains the image file description information and the binary data of the image content according to the command of “uploading the image”, and the obtained image file description information may include: a picture file name, a picture type (such as a JPEG format or other pictures). One or a combination of information such as format, absolute path, and length and width of the picture. Then, according to the HTML protocol, the obtained picture file description information and the binary data of the picture content are encapsulated into one or more messages. For the specific packet format, refer to the foregoing embodiment, which is not repeated here.
该客户端App将封装好的报文发送给服务器,其中,服务器的地址可预先设置在该客户端App中,或者客户端App可采用其他方式获知该服务器的地址。The client App sends the encapsulated message to the server, where the address of the server can be preset in the client App, or the client App can obtain the address of the server in other manners.
在服务器侧:On the server side:
服务器接收移动终端发送的图片数据报文,按照HTML协议解析该报文,得到图片文件描述信息以及图片内容的二进制数据。其中,图片描述信息包括图片文件名称、图片文件格式、图片大小。服务器在数据库中创建一条记录,将获取到的图片文件名称、图片文件格式、图片大小,以及用户ID填写到该条记录的相应字段,将获取到的图片内容的二进制数据添加到该条记录的OLE字段。The server receives the picture data message sent by the mobile terminal, parses the message according to the HTML protocol, and obtains the picture file description information and the binary data of the picture content. The picture description information includes an image file name, a picture file format, and a picture size. The server creates a record in the database, and fills in the obtained image file name, image file format, image size, and user ID into the corresponding field of the record, and adds the binary data of the obtained image content to the record. OLE field.
之后,服务器以该客户端的用户ID调用应用A的开发者API(Application Programming Interface,应用程序接口)。该API被调用后触发执行以下处理过程,将该客户端用户上传的图片应用到该客户端App中,即在用户界面的头像显示区域显示该图片。该过程称为回调过程。After that, the server calls the developer API (Application Programming Interface) of the application A with the user ID of the client. After the API is invoked, the following process is triggered to apply the image uploaded by the client user to the client application, that is, the image is displayed in the avatar display area of the user interface. This process is called a callback process.
基于相同的技术构思,本申请实施例还提供了一种服务器,该服务器可实现上述文件上传处理流程。Based on the same technical concept, the embodiment of the present application further provides a server, which can implement the above file upload processing flow.
参见图3,为本申请实施例提供的服务器的结构示意图,如图所示,该装置可包括:第一获取模块301、第二获取模块302、存储模块303,其中:FIG. 3 is a schematic structural diagram of a server according to an embodiment of the present disclosure. As shown in the figure, the device may include: a first obtaining module 301, a second obtaining module 302, and a storage module 303, where:
第一获取模块301,用于获取移动终端发送的文件数据;The first obtaining module 301 is configured to acquire file data sent by the mobile terminal;
第二获取模块302,用于获取所述文件数据中的文件描述信息以及文件内容; The second obtaining module 302 is configured to acquire file description information and file content in the file data.
存储模块303,用于根据获取到的文件描述信息,将获取到的文件内容存储到数据库中;其中,所述数据库中,所述文件描述信息与所述文件内容相关联。The storage module 303 is configured to store the obtained file content into a database according to the obtained file description information, where the file description information is associated with the file content.
优选地,所述文件数据为图片文件数据,所述文件描述信息和文件内容为图片文件的文件描述信息和图片内容。Preferably, the file data is picture file data, and the file description information and file content are file description information and picture content of the picture file.
优选地,获取到的图片文件数据中包括协议部分和文件部分,所述文件部分包括文件描述部分和文件内容部分,相邻部分之间用分隔符分割。相应地,第二获取模块302可具体用于:根据相邻部分之间的分隔符,确定所述图片文件数据中的文件描述信息和图片内容的位置;根据确定出的所述图片文件数据中的文件描述信息和图片内容的位置,获取所述图片文件数据中的文件描述信息以及图片内容。Preferably, the acquired picture file data includes a protocol part and a file part, and the file part includes a file description part and a file content part, and the adjacent parts are separated by a separator. Correspondingly, the second obtaining module 302 is specifically configured to: determine, according to a separator between adjacent portions, file description information and a location of the image content in the image file data; according to the determined image file data The file description information and the location of the picture content, and the file description information and the picture content in the picture file data are obtained.
优选地,存储模块303可具体用于:根据获取到的文件描述信息查询所述数据库中的相应记录;若未查询到,则在所述数据库中创建一条记录,将获取到的文件描述信息存储到该条记录的文件描述字段,将获取到的图片内容存储到该条记录的图片内容字段;若查询到,则将获取到的图片内容存储到该条记录的图片内容字段。Preferably, the storage module 303 is specifically configured to: query a corresponding record in the database according to the obtained file description information; if not, create a record in the database, and store the obtained file description information. Go to the file description field of the record, and store the obtained image content in the picture content field of the record; if queried, store the obtained picture content in the picture content field of the record.
进一步地,该服务器还可包括调用模块304,用于在根据获取到的文件描述信息,存储获取到的图片内容到数据库之后,使用所述移动终端的客户端用户身份信息调用服务器端的应用程序接口,所述服务器端的应用程序接口用于在被调用后根据所述客户端用户身份信息将所述移动终端上传的图片应用于客户端应用程序。Further, the server may further include a calling module 304, configured to invoke the server-side application program interface by using the client user identity information of the mobile terminal after storing the acquired image content to the database according to the obtained file description information. The server-side application program interface is configured to apply the image uploaded by the mobile terminal to the client application according to the client user identity information after being invoked.
优选地,所述文件描述信息包括以下信息中的一种或组合:文件名称、文件类型、图片大小。Preferably, the file description information includes one or a combination of the following information: a file name, a file type, and a picture size.
优选地,所述图片内容为二级制数据。Preferably, the picture content is secondary data.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算 机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, a special purpose computer, an embedded processor or other programmable data processing device to produce a machine such that The instructions executed by the processor of the machine or other programmable data processing device generate means for implementing the functions specified in one or more blocks of the flow or in a block or blocks of the flowchart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While the preferred embodiment of the present application has been described, it will be apparent that those skilled in the art can make further changes and modifications to the embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.

Claims (14)

  1. 一种文件上传处理方法,其特征在于,包括:A file upload processing method, comprising:
    获取移动终端发送的文件数据;Obtaining file data sent by the mobile terminal;
    获取所述文件数据中的文件描述信息以及文件内容;Obtaining file description information and file content in the file data;
    根据获取到的文件描述信息,将获取到的文件内容存储到数据库中;其中,所述数据库中,所述文件描述信息与所述文件内容相关联。And storing, according to the obtained file description information, the obtained file content into a database; wherein, in the database, the file description information is associated with the file content.
  2. 如权利要求1所述的方法,其特征在于,所述文件数据为图片文件数据,所述文件描述信息和文件内容为图片文件的文件描述信息和图片内容。The method according to claim 1, wherein the file data is picture file data, and the file description information and file content are file description information and picture content of the picture file.
  3. 如权利要求2所述的方法,其特征在于,获取到的图片文件数据中包括协议部分和文件部分,所述文件部分包括文件描述部分和文件内容部分,相邻部分之间用分隔符分割;The method according to claim 2, wherein the acquired picture file data comprises a protocol part and a file part, the file part comprising a file description part and a file content part, and the adjacent parts are separated by a separator;
    所述获取所述图片文件数据中的文件描述信息以及图片内容,包括:Obtaining the file description information and the picture content in the picture file data, including:
    根据相邻部分之间的分隔符,确定所述图片文件数据中的文件描述信息和图片内容的位置;Determining a location of the file description information and the picture content in the picture file data according to a separator between adjacent portions;
    根据确定出的所述图片文件数据中的文件描述信息和图片内容的位置,获取所述图片文件数据中的文件描述信息以及图片内容。And obtaining file description information and picture content in the picture file data according to the determined file description information and the location of the picture content in the picture file data.
  4. 如权利要求2所述的方法,其特征在于,所述根据获取到的文件描述信息,将获取到的图片内容存储到数据库中,包括:The method of claim 2, wherein the storing the acquired image content in the database according to the obtained file description information comprises:
    根据获取到的文件描述信息查询所述数据库中的相应记录;Querying corresponding records in the database according to the obtained file description information;
    若未查询到,则在所述数据库中创建一条记录,将获取到的文件描述信息存储到该条记录的文件描述字段,将获取到的图片内容存储到该条记录的图片内容字段;If not found, a record is created in the database, and the obtained file description information is stored in the file description field of the record, and the obtained image content is stored in the picture content field of the record;
    若查询到,则将获取到的图片内容存储到该条记录的图片内容字段。If queried, the obtained picture content is stored in the picture content field of the record.
  5. 如权利要求2所述的方法,其特征在于,所述根据获取到的文件描述信息,存储获取到的图片内容到数据库之后,还包括:The method according to claim 2, wherein the storing the acquired image content to the database according to the obtained file description information further includes:
    使用所述移动终端的客户端用户身份信息调用服务器端的应用程序接口,所述服务器端的应用程序接口用于在被调用后根据所述客户端用户身份信息 将所述移动终端上传的图片应用于客户端应用程序。Invoking a server-side application program interface by using the client user identity information of the mobile terminal, where the server-side application program interface is configured to be based on the client user identity information after being invoked Applying the image uploaded by the mobile terminal to the client application.
  6. 如权利要求2至5中任一项所述的方法,其特征在于,所述文件描述信息包括以下信息中的一种或组合:文件名称、文件类型、图片大小。The method according to any one of claims 2 to 5, wherein the file description information comprises one or a combination of the following information: a file name, a file type, and a picture size.
  7. 如权利要求2至5中任一项所述的方法,其特征在于,所述图片内容为二级制数据。The method according to any one of claims 2 to 5, wherein the picture content is secondary data.
  8. 一种服务器,其特征在于,包括:A server, comprising:
    第一获取模块,用于获取移动终端发送的文件数据;a first acquiring module, configured to acquire file data sent by the mobile terminal;
    第二获取模块,用于获取所述文件数据中的文件描述信息以及文件内容;a second obtaining module, configured to acquire file description information and file content in the file data;
    存储模块,用于根据获取到的文件描述信息,将获取到的文件内容存储到数据库中;其中,所述数据库中,所述文件描述信息与所述文件内容相关联。And a storage module, configured to store, according to the obtained file description information, the obtained file content into a database; wherein, in the database, the file description information is associated with the file content.
  9. 如权利要求8所述的服务器,其特征在于,所述文件数据为图片文件数据,所述文件描述信息和文件内容为图片文件的文件描述信息和图片内容。The server according to claim 8, wherein the file data is picture file data, and the file description information and file content are file description information and picture content of the picture file.
  10. 如权利要求9所述的服务器,其特征在于,获取到的图片文件数据中包括协议部分和文件部分,所述文件部分包括文件描述部分和文件内容部分,相邻部分之间用分隔符分割;The server according to claim 9, wherein the acquired image file data includes a protocol portion and a file portion, and the file portion includes a file description portion and a file content portion, and the adjacent portions are separated by a separator;
    所述第二获取模块具体用于:The second acquiring module is specifically configured to:
    根据相邻部分之间的分隔符,确定所述图片文件数据中的文件描述信息和图片内容的位置;Determining a location of the file description information and the picture content in the picture file data according to a separator between adjacent portions;
    根据确定出的所述图片文件数据中的文件描述信息和图片内容的位置,获取所述图片文件数据中的文件描述信息以及图片内容。And obtaining file description information and picture content in the picture file data according to the determined file description information and the location of the picture content in the picture file data.
  11. 如权利要求9所述的服务器,其特征在于,所述存储模块具体用于:The server according to claim 9, wherein the storage module is specifically configured to:
    根据获取到的文件描述信息查询所述数据库中的相应记录;Querying corresponding records in the database according to the obtained file description information;
    若未查询到,则在所述数据库中创建一条记录,将获取到的文件描述信息存储到该条记录的文件描述字段,将获取到的图片内容存储到该条记录的图片内容字段;If not found, a record is created in the database, and the obtained file description information is stored in the file description field of the record, and the obtained image content is stored in the picture content field of the record;
    若查询到,则将获取到的图片内容存储到该条记录的图片内容字段。If queried, the obtained picture content is stored in the picture content field of the record.
  12. 如权利要求9所述的服务器,其特征在于,还包括: The server according to claim 9, further comprising:
    调用模块,用于在根据获取到的文件描述信息,存储获取到的图片内容到数据库之后,使用所述移动终端的客户端用户身份信息调用服务器端的应用程序接口,所述服务器端的应用程序接口用于在被调用后根据所述客户端用户身份信息将所述移动终端上传的图片应用于客户端应用程序。a calling module, configured to invoke a server-side application program interface by using the client user identity information of the mobile terminal after storing the acquired image content to the database according to the obtained file description information, where the server-side application program interface is used Applying the picture uploaded by the mobile terminal to the client application according to the client user identity information after being called.
  13. 如权利要求9至12中任一项所述的服务器,其特征在于,所述文件描述信息包括以下信息中的一种或组合:文件名称、文件类型、图片大小。The server according to any one of claims 9 to 12, wherein the file description information comprises one or a combination of the following information: a file name, a file type, and a picture size.
  14. 如权利要求9至12中任一项所述的服务器,其特征在于,所述图片内容为二级制数据。 The server according to any one of claims 9 to 12, wherein the picture content is secondary data.
PCT/CN2016/110357 2015-12-30 2016-12-16 File uploading processing method and device WO2017114190A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511021294.7 2015-12-30
CN201511021294.7A CN106933853A (en) 2015-12-30 2015-12-30 A kind of files passe processing method and processing device

Publications (1)

Publication Number Publication Date
WO2017114190A1 true WO2017114190A1 (en) 2017-07-06

Family

ID=59224467

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/110357 WO2017114190A1 (en) 2015-12-30 2016-12-16 File uploading processing method and device

Country Status (2)

Country Link
CN (1) CN106933853A (en)
WO (1) WO2017114190A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111291207A (en) * 2020-01-22 2020-06-16 奇安信科技集团股份有限公司 Picture storage method and device and server
CN112612758A (en) * 2020-12-26 2021-04-06 中国农业银行股份有限公司 Method and device for controlling message generation
CN113420300A (en) * 2021-06-21 2021-09-21 福建天晴数码有限公司 Method and system for detecting and defending file uploading vulnerability
CN114035752A (en) * 2021-12-01 2022-02-11 特斯联科技集团有限公司 Urban carbon neutralization data processing system
CN115834567A (en) * 2022-11-08 2023-03-21 四川启睿克科技有限公司 Picture uploading method and system for vue assembly
CN115834567B (en) * 2022-11-08 2024-05-31 四川启睿克科技有限公司 Picture uploading method and system for vue assembly

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108156238A (en) * 2017-12-23 2018-06-12 贵阳朗玛信息技术股份有限公司 The method and device that a kind of data automation uploads
CN112351111B (en) * 2020-12-30 2023-01-03 常州微亿智造科技有限公司 Near-real-time progress monitoring method for uploading industrial quality inspection file to server terminal
CN112783834B (en) * 2021-01-27 2023-07-25 上海淇玥信息技术有限公司 Service resource online restocking method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626376A (en) * 2009-08-04 2010-01-13 中国联合网络通信集团有限公司 Set-top box (STB) file uploading methods, STB file uploading device and STB file uploading system based on internet protocol television (IPTV)
CN102118451A (en) * 2011-03-28 2011-07-06 宇龙计算机通信科技(深圳)有限公司 Method and device for handling uploaded user resources
US20130283186A1 (en) * 2012-04-23 2013-10-24 Hon Hai Precision Industry Co., Ltd. File uploading method and electronic device for fast file location
CN103401933A (en) * 2013-08-05 2013-11-20 天闻数媒科技(湖南)有限公司 Method and system for batch uploading resource information and corresponding resource file

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007089573A2 (en) * 2006-01-27 2007-08-09 Unz.Org, Llc Presenting digitized content on a network
CN102253948B (en) * 2010-05-19 2013-06-19 北京启明星辰信息技术股份有限公司 Method and device for searching information in multi-source information system
CN101963991A (en) * 2010-10-15 2011-02-02 辜进荣 Accurate searching method of picture
US20140337374A1 (en) * 2012-06-26 2014-11-13 BHG Ventures, LLC Locating and sharing audio/visual content
CA2938638C (en) * 2013-09-09 2020-10-06 UnitedLex Corp. Interactive case management system
CN104462491A (en) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 Image uploading method and system and corresponding server
CN104573133A (en) * 2015-02-13 2015-04-29 广州神马移动信息科技有限公司 Method and apparatus for storing data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626376A (en) * 2009-08-04 2010-01-13 中国联合网络通信集团有限公司 Set-top box (STB) file uploading methods, STB file uploading device and STB file uploading system based on internet protocol television (IPTV)
CN102118451A (en) * 2011-03-28 2011-07-06 宇龙计算机通信科技(深圳)有限公司 Method and device for handling uploaded user resources
US20130283186A1 (en) * 2012-04-23 2013-10-24 Hon Hai Precision Industry Co., Ltd. File uploading method and electronic device for fast file location
CN103401933A (en) * 2013-08-05 2013-11-20 天闻数媒科技(湖南)有限公司 Method and system for batch uploading resource information and corresponding resource file

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111291207A (en) * 2020-01-22 2020-06-16 奇安信科技集团股份有限公司 Picture storage method and device and server
CN111291207B (en) * 2020-01-22 2024-02-06 奇安信科技集团股份有限公司 Picture storage method, device and server
CN112612758A (en) * 2020-12-26 2021-04-06 中国农业银行股份有限公司 Method and device for controlling message generation
CN113420300A (en) * 2021-06-21 2021-09-21 福建天晴数码有限公司 Method and system for detecting and defending file uploading vulnerability
CN113420300B (en) * 2021-06-21 2023-09-08 福建天晴数码有限公司 Method and system for detecting and defending file uploading loopholes
CN114035752A (en) * 2021-12-01 2022-02-11 特斯联科技集团有限公司 Urban carbon neutralization data processing system
CN115834567A (en) * 2022-11-08 2023-03-21 四川启睿克科技有限公司 Picture uploading method and system for vue assembly
CN115834567B (en) * 2022-11-08 2024-05-31 四川启睿克科技有限公司 Picture uploading method and system for vue assembly

Also Published As

Publication number Publication date
CN106933853A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
WO2017114190A1 (en) File uploading processing method and device
US10057734B2 (en) System and method for transmitting and receiving media messages
CN108848060B (en) Multimedia file processing method, processing system and computer readable storage medium
EP2773080A1 (en) Sharing control system and method for network resources download information
US20150189036A1 (en) Offline caching method and apparatus
US20180375962A1 (en) Facilitation of efficient web site page loading
WO2012152228A1 (en) Method and device for acquiring page resources, browser and mobile terminal
WO2015055010A1 (en) Data transmission method, device and storage medium
US20160162151A1 (en) Input method and device thereof, and auxiliary input method and system thereof
KR20180004093A (en) Transmitting media content during instant messaging
WO2018107719A1 (en) Data sharing method, apparatus, terminal device and server
WO2014063550A1 (en) Method and system for microblog resource sharing
WO2017174026A1 (en) Client connection method and system
CN108696899B (en) SIP message transmitting and receiving method and transmitting and receiving device
WO2013152677A1 (en) Resource sharing method and device
WO2023103318A1 (en) Media streaming method and system
WO2019218478A1 (en) Response method and device for call service
WO2016146009A1 (en) Html page compression method and device
WO2014206109A1 (en) File downloading method, method for pre-viewing downloaded file, and method for generating preview information
TWI673983B (en) Data compression transmission method and system, terminal and server thereof
WO2014072739A1 (en) Video distribution
KR20170121195A (en) Indications for partial segments
CN111314478B (en) File transmission method and device and computer equipment
AU2019101539A4 (en) Android-based image and text information feedback terminal system
WO2015089790A1 (en) Service processing method, apparatus, and system

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16880980

Country of ref document: EP

Kind code of ref document: A1