CN105246055A - Image uploading method and device - Google Patents

Image uploading method and device Download PDF

Info

Publication number
CN105246055A
CN105246055A CN 201510599773 CN201510599773A CN105246055A CN 105246055 A CN105246055 A CN 105246055A CN 201510599773 CN201510599773 CN 201510599773 CN 201510599773 A CN201510599773 A CN 201510599773A CN 105246055 A CN105246055 A CN 105246055A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
uploaded
image
type
network
upload
Prior art date
Application number
CN 201510599773
Other languages
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

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/30Information retrieval; Database structures therefor ; File system structures therefor
    • G06F17/30244Information retrieval; Database structures therefor ; File system structures therefor in image databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/06Network-specific arrangements or communication protocols supporting networked applications adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATIONS NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements

Abstract

The embodiment of the invention provides an image uploading method and device, and the method comprises the steps: determining a to-be-uploaded image selected by a user; judging the type of a network which is currently connected with terminal equipment; uploading the to-be-uploaded image and image description information to a server when the type of the network which is currently connected with terminal equipment is a first type; compressing the to-be-uploaded image if the type of the network which is currently connected with terminal equipment is a second type, and uploading the to-be-uploaded image and image description information to the server after compressing, wherein the mean speed of the network of the first type is greater than the mean speed of the network of the second type; uploading the image description information to the server if the type of the network which is currently connected with terminal equipment is a third type, setting the uploading of the to-be-uploaded image to be postponed temporarily, wherein the mean speed of the network of the third type is greater than the mean speed of the network of the second type. The method can flexibly adjust the uploading mode of the image in an intelligent manner according to the current network condition.

Description

一种图片上传方法及装置 An image-upload method and apparatus

技术领域 FIELD

[0001] 本发明涉及数据上传技术领域,具体涉及一种图片上传方法及装置。 [0001] The present invention relates to a data upload technology, and in particular, to a method and apparatus for image upload.

背景技术 Background technique

[0002] 在施工现场,工程监理等工作人员常需要拍摄对工程的监控图片,然后上传至服务器中记录,以对工程各进度的情况进行记录备案。 [0002] often need to shoot at the construction site, project supervision staff monitor the picture on the project, and then uploaded to the server records to the situation of each project to record the progress of the record. 工程的监控图片至服务器的上传涉及到工作人员所持终端设备(如手机、摄像机等)与服务器的数据交互,终端设备需先连接网络(如2G、3G、4G、或WiFi等),终端设备在连接网络后,将工作人员选定的图片通过网络上传至服务器。 Surveillance pictures to the server upload project involves staff held terminal devices (such as mobile phones, cameras, etc.) data exchange with the server, terminal equipment must first connect to the network (such as 2G, 3G, 4G, or WiFi, etc.), terminal equipment after the connection to the network, the staff selected pictures uploaded to the server over the network.

[0003] 目前终端设备在将图片上传至服务器的过程中,终端设备若处于联网状态,则终端设备会将工作人员选定的图片连同图片的相关信息上传至服务器,终端设备若处于未连接网络的情况,终端设备将提示工作人员当前无法连接网络,图片发送失败。 [0003] In the present terminal device to upload pictures to the server process, if the terminal device connected to the Internet, the terminal equipment will staff the selected image along with the image information uploaded to the server, if the terminal device is in the unconnected network , the terminal device prompts staff currently unable to connect to the network, failure to send pictures.

[0004] 本发明的发明人在研究过程中发现,施工现场的环境错综复杂,并无法为终端设备提供稳定的网络,甚至存在无网络可连接的情况;现有终端设备在向服务器上传图片时,在任何网络条件下无区别的上传同样的数据,若在网速较好时,图片至服务器的上传没有问题,但在网速较差时,图片至服务器的上传将极为耗时,甚至存在上传失败的可能;本发明的发明人考虑,终端设备在向服务器上传图片时,灵活的根据当前的网络情况,调整图片上传的方式,可以为图片上传的效率和成功率带来提升,然而目前并没有相应的图片上传方法; [0004] The present inventors found that during the study, intricate construction site environment, and can not provide a stable network terminal equipment, and even without the presence of the network connection; existing terminal apparatus when upload pictures to a server, the same data upload without distinction under any network condition, if when the speed is better, upload pictures to the server's no problem, but when the speed is poor, upload pictures to the server will be extremely time-consuming, even in the presence upload the possibility of failure; inventors of the present invention is considered, when the terminal device to the server upload pictures, flexible network based on the current situation, adjust the picture uploaded, it can be promoted to bring pictures uploaded efficiency and success rate, but the current and There is no corresponding image upload method;

[0005] 因此提供一种图片上传方法,以灵活的根据当前的网络情况,调整图片上传的方式,来提升图片上传的效率和成功率,成为了本领域技术人员需要考虑的问题。 [0005] Therefore, to provide an image upload method, in a flexible network based on the current situation, adjust the picture upload ways to improve the efficiency and success rate of pictures uploaded becomes a problem skilled in the art to be considered.

发明内容 SUMMARY

[0006] 有鉴于此,本发明实施例提供一种图片上传方法及装置,以灵活的根据当前的网络情况,调整图片上传的方式,为提升图片上传的效率和成功率提供可能。 [0006] In view of this, embodiments provide a method and apparatus for image upload of the present invention, a flexible network based on the current situation, the adjustment of image upload mode, may be provided to enhance the efficiency and success rate pictures uploaded.

[0007] 为实现上述目的,本发明实施例提供如下技术方案: [0007] To achieve the above object, embodiments of the present invention provides the following technical solutions:

[0008] —种图片上传方法,应用于终端设备,所述方法包括: [0008] - seed image upload process is applied to a terminal device, the method comprising:

[0009] 确定用户所选定的待上传图片; [0009] determine the user selected image to be uploaded;

[0010] 判断终端设备当前所连接的网络的类型; [0010] determination of the type of network terminal devices currently connected;

[0011] 若终端设备当前所连接的网络的类型为第一类型,将所述待上传图片及图片描述信息上传至服务器; [0011] If the type of the terminal device is currently connected to a first network type, the image to be uploaded and image description information uploaded to the server;

[0012] 若终端设备当前所连接的网络的类型为第二类型,将所述待上传图片进行压缩,将压缩后的待上传图片及图片描述信息上传至服务器,其中,第一类型的网络的平均网速高于第二类型的网络的平均网速; [0012] If the type of network terminal devices currently connected to a second type, the image to be uploaded compressed, and the compressed image and the image to be uploaded description information uploaded to the server, wherein the first type of network the average speed is higher than the average of the second type of network speed network;

[0013] 若终端设备当前所连接的网络的类型为第三类型,将所述图片描述信息上传至服务器,并设置暂缓上传所述待上传图片,其中,第三类型的网络的平均网速低于第二类型的网络的平均网速。 [0013] If the network type of the terminal device is currently connected is the third type, the image description information uploaded to the server, and provided to suspend the upload image to be uploaded, wherein the low average speed of the third type of network the average of the second type of network speed network.

[0014] 其中,所述设置暂缓上传所述待上传图片包括: [0014] wherein the setting image to be uploaded to the upload suspend comprising:

[0015] 缓存所述待上传图片; [0015] The buffer to be uploaded;

[0016] 设置终端设备所连接的网络的类型为第一类型时,将所缓存的待上传图片上传至服务器,和/或,设置终端设备所连接的网络的类型为第二类型时,将所缓存的待上传图片进行压缩后上传至服务器。 When the network type of [0016] the terminal device is provided connected to the first type, the buffered image to be uploaded to the upload server type of network, and / or, provided the terminal apparatus is connected is the second type, The cache image to be uploaded uploaded to the server after compression.

[0017] 其中,在设置暂缓上传所述待上传图片后,所述方法还包括: After [0017] wherein, provided in the image to be uploaded suspend uploaded, the method further comprising:

[0018] 监控终端设备当前所连接的网络的类型; [0018] type of network monitoring terminal device currently connected;

[0019] 若终端设备当前所连接的网络的类型由第三类型切换为第一类型,将所缓存的待上传图片上传至服务器; [0019] If the type of the terminal device is currently connected by the switching network of a first type is the third type, the buffered pictures uploaded to the server to be uploaded;

[0020] 若终端设备当前所连接的网络的类型由第三类型切换为第二类型,将所缓存的待上传图片进行压缩后上传至服务器。 After [0020] If the network type of the terminal device currently connected is switched from a third type of a second type, the buffered compressed image to be uploaded to the server to upload.

[0021 ] 其中,所述方法还包括: [0021] wherein said method further comprises:

[0022] 在将所缓存的待上传图片上传至服务器后,或,在将所缓存的待上传图片进行压缩后上传至服务器后,提示用户图片已上传。 [0022] After the cached image to be uploaded uploaded to the server, or uploaded to the server after the buffered compressed image to be uploaded, the user is prompted photos have been uploaded.

[0023] 其中,所述方法还包括: [0023] wherein said method further comprises:

[0024] 若判断终端设备当前无法连接网络,提示用户由于网络连接失败,所述待上传图片上传失败。 [0024] When the terminal device is determined not currently connected to the network, the network connection fails because the user is prompted, the image to be uploaded failed to upload.

[0025] 其中,所述图片描述信息包括:所述待上传图片的拍摄时间,所述待上传图片的拍摄地点,及所述待上传图片对应的工程标识。 [0025] wherein the image description information comprises: photographing time of the image to be uploaded, the image to be uploaded to the location, and the image to be uploaded corresponding to the project identifier.

[0026] 其中,所述待上传图片的拍摄时间,所述待上传图片的拍摄地点,及所述待上传图片对应的工程标识以结构化数据在终端设备的本地数据库中存储,并绑定了与所述待上传图片的对应关系; [0026] wherein the photographing time image to be uploaded, the location of the image to be uploaded, and the image to be uploaded to identify corresponding structural engineering data in a local database stored in the terminal device, and bound the corresponding relationship between the image to be uploaded;

[0027] 所述方法还包括: [0027] The method further comprises:

[0028] 在上传所述图片描述信息前,从所述本地数据库中识别与所述待上传图片具有对应关系的,且在所述本地数据库中以结构化数据存储的所述待上传图片的拍摄时间,所述待上传图片的拍摄地点,及所述待上传图片对应的工程标识,以便于从所述本地数据库中调取所述待上传图片的图片描述信息并上传。 Shooting [0028] In uploading the picture information before described, and the identifying image to be uploaded from a correspondence relationship with the local database, and to store the configuration data to be uploaded in the local database time, the location of the image to be uploaded, and the image to be uploaded corresponding to the project identifier to the description information in the local database from the retrieved image to be uploaded and upload images.

[0029] 其中,所述方法还包括: [0029] wherein said method further comprises:

[0030] 若终端设备在上传图片数据的过程中,检测到所连接的网络的类型发生切换,判断已上传的图片数据的进度是否达到预置进度,若是,以网络类型切换前所对应的方式上传图片数据,若否,以网络类型切换后所对应的方式上传图片数据。 [0030] If the terminal device in the process of uploading picture data, the detection of the type of network connected switching occurs, the progress of the uploaded image data is determined whether a preset schedule, if, before the switching network type to a corresponding manner Photo data, if not, switch to the network type corresponding to the picture data upload.

[0031] 其中,所述若终端设备在上传图片数据的过程中,检测到所连接的网络的类型发生切换,判断已上传的图片数据的进度是否达到预置进度,若是,以网络类型切换前所对应的方式上传图片数据,若否,以网络类型切换后所对应的方式上传图片数据包括: [0031] wherein, if the type of the terminal device switching process of uploading picture data, the network connection is detected occurrence, determining progress uploaded image data reaches a preset schedule, if prior to the switching network type uploading picture data corresponding manner, if not, switch to the network type corresponding to upload image data comprising:

[0032] 若终端设备在第三类型网络下,上传图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第三类型切换为第二类型,判断已上传的图片描述信息的进度是否达到预置进度,若是,继续上传图片描述信息,若否,停止上传图片描述信息,将待上传图片进行压缩,并上传压缩后的待上传图片及图片描述信息; [0032] When the process of the terminal device in a third type of network, Photo description information to the server, the detected type of the network terminal apparatus is connected is switched from the third type of the second type, determined uploaded image description information whether the progress reached the preset schedule, and if so, continue to upload picture description information, if not, stop uploading pictures descriptions, pictures will be uploaded to compress, compress and upload the image to be uploaded and picture description information;

[0033] 若终端设备在第三类型网络下,上传图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第三类型切换为第一类型,判断已上传的图片描述信息的进度是否达到预置进度,若是,继续上传图片描述信息,若否,停止上传图片描述信息,将待上传图片及图片描述信息上传至服务器; [0033] When the process of the terminal device in a third type of network, Photo description information to the server, the detected type of the network terminal apparatus is connected is switched from the third type is a first type, determining image description information uploaded whether the progress reached the preset schedule, and if so, continue to upload picture description information, if not stopped Gallery description information will be uploaded picture and picture description information uploaded to the server;

[0034] 若终端设备在第二类型网络下,上传压缩后的待上传图片及图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第二类型切换为第一类型,判断已上传的压缩后的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传压缩后的待上传图片及图片描述信息,若否,停止上传,将待上传图片及图片描述信息上传至服务器; [0034] After the image to be uploaded, and when the terminal device in a second network type, description information uploaded to the server compression process, the network terminal type detection equipment is connected by a second type of switching a first type, judgment uploaded image to be uploaded and compressed picture describing progress information reaches a preset schedule, if the image to be uploaded, continue to upload compression and picture description information, if not, stop uploading the image to be uploaded pictures and description information uploaded to the server;

[0035] 若终端设备在第一类型网络下,上传待上传图片及图片描述信息上传至服务器的过程中,检测到终端设备所连接的网络的类型由第一类型切换为第二类型,判断已上传的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传待上传图片及图片描述信息,若否,停止上传,将待上传图片进行压缩,并上传压缩后的待上传图片及图片描述信息; [0035] If the terminal equipment at a first network type, upload images to be uploaded and the upload process description information to the server, the terminal device detects a network connection type of the first type is switched from a second type, it has been determined Upload the image to be uploaded and pictures describing progress information reaches a preset schedule, and if so, continue to upload pictures to be uploaded pictures and descriptions, if not, stop uploading, upload pictures to be compressed, compress and upload the image to be uploaded pictures and descriptions;

[0036] 若终端设备在第一类型网络下,上传待上传图片及图片描述信息上传至服务器的过程中,检测到终端设备所连接的网络的类型由第一类型切换为第三类型,判断已上传的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传待上传图片及图片描述信息,若否,停止上传,将图片描述信息上传至服务器,并设置暂缓上传待上传图片; Process [0036] If the terminal equipment at a first network type, and upload images to be uploaded description information uploaded to the server, the terminal device detects a network connection type of the first type is switched from a third type, it has been determined Upload the image to be uploaded and pictures describing progress information reaches a preset schedule, and if so, continue to upload pictures to be uploaded pictures and descriptions, if not, stop uploading the picture description information is uploaded to the server and sets the suspension upload image to be uploaded ;

[0037] 若终端设备在第二类型网络下,上传压缩后的待上传图片及图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第二类型切换为第三类型,判断已上传的压缩后的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传压缩后的待上传图片及图片描述信息,若否,停止上传,将图片描述信息上传至服务器,并设置暂缓上传待上传图片。 [0037] After the image to be uploaded, and when the terminal device in a second network type, description information uploaded to the server compression process, the network terminal type detection device is connected is switched from the second type is the third type, judgment uploaded image to be uploaded and compressed picture describing progress information reaches a preset schedule, pictures and images to be uploaded after if, continue to upload packed description information, if not, stop uploading the picture description information is uploaded to the server and set suspend upload image to be uploaded.

[0038] 本发明实施例还提供一种图片上传装置,应用于终端设备,所述装置包括: [0038] Embodiments of the present invention further provides an image upload apparatus applied to a terminal apparatus, the apparatus comprising:

[0039] 待上传图片确定模块,用于确定用户所选定的待上传图片; [0039] The image to be uploaded determination module for determining a user selected image to be uploaded;

[0040] 连接网络类型判断模块,用于判断终端设备当前所连接的网络的类型; [0040] connected to the network type determining means for determining the type of the network terminal device is currently connected;

[0041] 第一上传模块,用于若终端设备当前所连接的网络的类型为第一类型,将所述待上传图片及图片描述信息上传至服务器; [0041] First upload module configured to, if the network terminal device currently connected type of a first type, and the image to be uploaded image description information uploaded to the server;

[0042] 第二上传模块,用于若终端设备当前所连接的网络的类型为第二类型,将所述待上传图片进行压缩,将压缩后的待上传图片及图片描述信息上传至服务器,其中,第一类型的网络的平均网速高于第二类型的网络的平均网速; [0042] Second upload module configured to, if the network type of the terminal devices currently connected to a second type, the compressed image to be uploaded, and the image to be uploaded and the compressed image description information uploaded to the server, wherein the first type of network is higher than the average speed of the second type of average network speed network;

[0043] 第三上传模块,用于若终端设备当前所连接的网络的类型为第三类型,将所述图片描述信息上传至服务器,并设置暂缓上传所述待上传图片,其中,第三类型的网络的平均网速低于第二类型的网络的平均网速。 [0043] Third upload module configured to, if the network terminal device currently connected to the type of the third type, the image description information uploaded to the server, and provided to suspend the upload image to be uploaded, wherein the third type the average speed of the network is lower than the average of the second type of network speed network.

[0044] 基于上述技术方案,本发明实施例在进行图片上传时,可根据终端设备当前所连接的网络的类型,区别化的上传图片数据至服务器中,使得终端设备在上传待上传图片时,所上传的数据容量能够与当前所连接的网络的网速相匹配,使得终端设备在当前所连接的网络类型下,能够实现效率和成功率较高的图片上传工作。 When [0044] Based on the above technical solution, for example, during upload pictures, depending on the type of network terminal devices currently connected, the difference of the embodiment of the present invention, picture data upload to the server so that the terminal device to be uploaded to upload, the uploaded data capacity can be matched with the speed of the network is currently connected, so that the terminal device is currently connected to the network type, to achieve high efficiency and success rate pictures uploaded work. 本发明实施例提供的图片上传方法,可灵活的根据当前的网络情况,智能化的调整图片上传的方式,为提升图片上传的效率和成功率提供了可能。 Image Upload method according to an embodiment of the present invention, can be flexible according to the current network situation, intelligent way to adjust the image upload, to enhance the efficiency and success rate pictures uploaded possible.

附图说明 BRIEF DESCRIPTION

[0045] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。 [0045] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, briefly introduced hereinafter, embodiments are described below in the accompanying drawings or described in the prior art needed to be used in describing the embodiments the drawings are only examples of the present invention, those of ordinary skill in the art is concerned, without creative efforts, can derive other drawings from the accompanying drawings provided.

[0046]图1为本发明实施例提供的图片上传方法的流程图; [0046] FIG. 1 is a flowchart of a method to upload pictures according to an embodiment of the present invention;

[0047]图2为本发明实施例提供的设置暂缓上传待上传图片的方法流程图; [0047] FIG 2 a flowchart of a method for setting image to be uploaded to suspend uploaded embodiment of the present invention;

[0048]图3为本发明实施例提供的图片上传方法的另一流程图; [0048] FIG. 3 is another flowchart of a method for uploading images embodiment of the invention;

[0049]图4为本发明实施例提供的图片上传方法的再一流程图; Then [0049] FIG. 4 embodiment the present invention provides a method to upload images embodiment of a flow chart;

[0050]图5为本发明实施例提供的图片上传装置的结构框图; [0050] FIG 5 provides a block diagram of the image upload apparatus embodiment of the invention;

[0051]图6为本发明实施例提供的图片上传装置的另一结构框图; [0051] FIG 6 according to an embodiment of another image block diagram of the apparatus of the present invention upload;

[0052]图7为本发明实施例提供的图片上传装置的再一结构框图; [0052] FIG 7 provides image block diagram showing another embodiment of the structure of the apparatus of the present invention upload;

[0053]图8为本发明实施例提供的图片上传装置的又一结构框图。 [0053] FIG 8 provided in the image block diagram showing still another embodiment of the apparatus of the present invention to upload.

具体实施方式 Detailed ways

[0054] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0054] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0055] 图1为本发明实施例提供的图片上传方法的流程图,该方法可应用于终端设备,工作人员可采用所述终端设备拍摄施工现场的图片并上传至服务器中;参照图1,该方法可以包括: [0055] FIG. 1 is a flowchart of a method to upload images to an embodiment of the present invention, the method can be applied to a terminal device, the terminal device may employ personnel construction site captured and uploaded to the image server; Referring to FIG. 1, the method may include:

[0056] 步骤S100、确定用户所选定的待上传图片; [0056] step S100, the user determines the selected image to be uploaded;

[0057] 此处的用户指的是上传所拍摄的施工现场的图片的人员,包括但不限于上述所指的工作人员; User [0057] herein refers to a construction site to upload the captured image of a person, including but not limited to staff referred to above;

[0058] 用户可从终端设备已拍摄的施工现场的图片中选取当前需要上传的图片,并确定上传所选取的图片;用户选取并确定上传的图片为本发明实施例所指的待上传图片。 [0058] The user may select from the terminal device has the construction site captured image of the current picture needs to be uploaded and uploads the selected image is determined; user select and upload images embodiment determines image to be uploaded within the meaning of the present invention.

[0059] 步骤S110、判断终端设备当前所连接的网络的类型; [0059] step S110, the network determines the type of the terminal device is currently connected;

[0060] 终端设备在确定待上传图片后,并不是直接在终端设备联网时,将待上传图片及相关信息上传至服务器,而是需要先判断终端设备当前所连接的网络的类型,而后根据当前所连接的网络的类型,差异化的选取图片上传策略,使得当前上传图片的策略与终端设备当前所连接的网络的网速情况相匹配; [0060] After the terminal apparatus is determined to be uploaded, not directly in the network when the terminal device, the related information to be uploaded and uploaded to the server, but need to first determine the type of network terminal devices currently connected, then the current the type of network connection, select the image upload differentiated policy, so that the current speed of the network policies uploaded image terminal device currently connected matches;

[0061] 根据当前所连接的网络的类型,所选取的具体的差异化的图片上传策略可如下文流程所示。 [0061] The type of network is currently connected, the selected specific upload images differentiated flow strategy can be shown below.

[0062] 步骤S120、若终端设备当前所连接的网络的类型为第一类型,将所述待上传图片及图片描述信息上传至服务器; [0062] step S120, the type of the terminal device if the currently connected network of a first type, and the image to be uploaded image description information uploaded to the server;

[0063] 可选的,第一类型可以是预定的网络速度较快的网络类型,包括但不限于WiFi (无线保真),4G(第四代移动通信技术),高于4G的其他移动通信技术等; [0063] Optionally, the first type network may be a predetermined fast network types, including but not limited to WiFi (Wireless Fidelity), 4G (fourth generation mobile communication technology), higher than that of other mobile communication 4G technology;

[0064]图片描述信息是描述当前待上传图片拍摄信息及工程信息的数据,如待上传图片的拍摄时间,待上传图片的拍摄地点,待上传图片所反映的工程标识等; [0064] picture description information describing the current image to be uploaded shooting data and engineering information, such as shooting time image to be uploaded, the location image to be uploaded, upload pictures to be reflected in project identification and so on;

[0065] 可选的,待上传图片的拍摄时间可以在待上传图片拍摄时,终端设备根据系统时间记录;待上传图片的拍摄地点可以在待上传图片拍摄时,终端设备根据地理位置定位技术(如GPS定位,基站定位等地理位置定位技术)所确定并记录;待上传图片的工程标识可以是待上传图片拍摄时,终端设备根据工作人员的输入指示所确定并记录,也可以是待上传图片在上传时,由用户指示; When [0065] Alternatively, the recording time may be uploaded image photographing images to be uploaded, the terminal apparatus according to the time recording system; shooting location in the image to be uploaded can upload pictures to be captured, the terminal apparatus according to the geographic location technology ( the GPS positioning, the base station positioning geographic location technology) is determined and recorded; when the image to be uploaded project identifier may be uploaded image capturing, determining and recording terminal device based on the input instructions of the staff, to be uploaded may be when uploading, indicated by the user;

[0066]由于第一类型的网络的网络速度较快,因此终端设备在确定待上传图片,并判断终端设备当前所连接的网络的类型为第一类型时,可调取待上传图片的图片描述信息并随同待上传图片上传至服务器中,使得服务器可接收完整的图片数据。 [0066] As the network speed of the first type of network is fast, the terminal device determines the type of image to be uploaded, and determines whether the network terminal device currently connected to the first type, the adjustable picture image to be uploaded description taken information along with the image to be uploaded and uploaded to the server so that the server can receive a complete data image.

[0067] 步骤S130、若终端设备当前所连接的网络的类型为第二类型,将所述待上传图片进行压缩,将压缩后的待上传图片及图片描述信息上传至服务器,其中,第一类型的网络的平均网速高于第二类型的网络的平均网速; [0067] step S130, the type of the terminal if the device is currently connected to a second network type, the compressed image to be uploaded, and the image to be uploaded and the compressed image description information uploaded to the server, wherein the first type the average speed is higher than the second type of network, the average network speed network;

[0068] 可选的,第二类型是预定的网络速度适中的网络类型,与第一类型的网络相比,第一类型的网络的平均网速要普遍高于第二类型的网络的平均网速;第二类型的网络包括但不限于3G(第三代移动通信技术)等; [0068] Optionally, the second predetermined type of network type network speed moderate, compared to the first type of network, the average speed of the first network type to a second type of network is generally higher than the average network speed; second type networks include, but are not limited to 3G (third generation mobile communication technology) and the like;

[0069] 由于第二类型的网络的网络速度适中,因此终端设备与服务器之间最好进行数据量适中的数据传输,本发明实施例可在判断终端设备当前所连接的网络的类型为第二类型时,调取待上传图片的图片描述信息并将待上传图片进行压缩处理,而后将压缩后的待上传图片及图片描述信息上传至服务器;服务器接收该数据后,可解压压缩后的待上传图片,还原出完整的待上传图片,使得服务器获得完整的图片数据。 [0069] Since the moderate speed of the second network type network and thus between the terminal device and the server is preferably carried out a moderate amount of data of the data transmission, embodiments of the present invention may determine the network type of the terminal device currently connected to the second when the type of images to be retrieved Photo description information to be uploaded and the compression process, the image to be uploaded and the packed description will upload that information to the server; the server receives the data to be uploaded can be decompressed after compression pictures, restore the integrity of the image to be uploaded so that the server data to obtain a complete picture.

[0070] 步骤S140、若终端设备当前所连接的网络的类型为第三类型,将所述图片描述信息上传至服务器,并设置暂缓上传所述待上传图片,其中,第三类型的网络的平均网速低于第二类型的网络的平均网速。 [0070] step S140, the type of network when the terminal device is currently connected is the third type, the image description information uploaded to the server, and provided to suspend the upload image to be uploaded, wherein the average of the third type of network the average speed is lower than the second type of network speed network.

[0071] 第三类型为预定的网络速度较慢的网络类型,与第二类型的网络相比,第三类型的网络的平均网速要普遍低于第二类型的网络的平均网速;第三类型的网络包括但不限于2G(第二代移动通信技术)等; [0071] The third type is a predetermined slower speed network type network, compared with the second type of network, the average speed of the third type of network to be generally lower than the average speed of a second network type network; first three types of networks include, but are not limited to 2G (second generation mobile communication technology) and the like;

[0072] 由于第三类型的网络的网络速度较慢,并不适合发送较大数据量的数据,因此本发明实施例可在终端设备当前所连接的网络的类型为第三类型时,暂缓上传待上传图片,而是先将待上传图片的图片描述信息上传至服务器,等待终端设备所连接的网络的类型的网络速度高于第三类型的网络时,再上传待上传图片。 [0072] When the speed of the third type of network since the network is slow, a large amount of data is not suitable for data transmission, thus the present invention may be the type of network terminating equipment currently connected to a third type of embodiment, the suspension upload when the image to be uploaded, but the first image to be uploaded description information uploaded to the server, the terminal apparatus waits for the network type of the connected network speed higher than the third type of network, and then upload to be uploaded.

[0073] 值得注意的是,步骤S120〜步骤S140为根据终端设备所连接的不同的网络类型,所进行的不同的图片上传处理,为3个不同的处理分支;步骤S120〜步骤S140之间可以认为没有先后顺序。 [0073] It is noted that, according to step step S140 S120~ different types of network terminal devices is connected, a different image upload process carried out for three different processing branches; may step between step S140 S120~ that there is no order.

[0074] 可选的,若判断终端设备当前无法连接网络(如当前无网络可用时),终端设备可提示用户由于网络连接失败,待上传图片上传失败的提示内容。 [0074] Alternatively, if the terminal device is determined not currently connected to the network (e.g. no network is currently available), the terminal device may prompt the user due to a network connection fails, failure image to be uploaded to upload content tips.

[0075] 可选的,为使得服务器更好的识别图片描述信息与待上传图片之间的关系,所上传的图片描述信息中可添加对应的待上传图片的图片标识(包括第一类型,第二类型和第三类型的网络连接情况下,也可仅适用于第三类型的网络连接情况下),以使得服务器在获取待上传图片和图片描述信息后,可根据图片描述信息中添加的图片标识,确定出图片描述信息所对应的待上传图片,实现图片描述信息与对应的待上传图片之间的确定。 [0075] Alternatively, such a server is better describe the relationship between the image identification information and the image to be uploaded, the uploaded image may be added to the description information corresponding to the identification image to be uploaded image (including a first type, the first the network connection type and the third type of two, may be applied to only the third type of network connection), so that the acquired image to be uploaded in the server and the image information described later, may be added to the information image based on the image description identifying, determining the image description information corresponding to the image to be uploaded to achieve defined between the image description information corresponding to the image to be uploaded.

[0076] 本发明实施例提供的图片上传方法,可应用于终端设备中,在进行图片上传时,可执行如下方法:确定用户所选定的待上传图片;判断终端设备当前所连接的网络的类型;若终端设备当前所连接的网络的类型为第一类型,将所述待上传图片及图片描述信息上传至服务器;若终端设备当前所连接的网络的类型为第二类型,将所述待上传图片进行压缩,将压缩后的待上传图片及图片描述信息上传至服务器,其中,第一类型的网络的平均网速高于第二类型的网络的平均网速;若终端设备当前所连接的网络的类型为第三类型,将所述图片描述信息上传至服务器,并设置暂缓上传所述待上传图片,其中,第三类型的网络的平均网速低于第二类型的网络的平均网速。 [0076] Image Upload method provided in the embodiment of the present invention is applicable to a terminal device, when performing image upload, perform a method of: determining a user selected image to be uploaded; Analyzing terminal device currently connected to the network type; if the type of the terminal device is currently connected to a first network type, the image to be uploaded and image description information uploaded to the server; if the type of the terminal device currently connected to a second network type, the to-be Photo compressed, the compressed image and the image to be uploaded description information uploaded to the server, wherein the first type of network average speed higher than the average speed of the second network type network; if the device is currently connected to a terminal as a third type of network type, the image description information uploaded to the server, and provided to suspend the upload image to be uploaded, wherein the third type of network is lower than the average speed average network speed of a second type of network .

[0077] 可以看出,本发明实施例在进行图片上传时,可根据终端设备当前所连接的网络的类型,区别化的上传图片数据至服务器中,使得终端设备在上传待上传图片时,所上传的数据容量能够与当前所连接的网络的网速相匹配,使得终端设备在当前所连接的网络类型下,能够实现效率和成功率较高的图片上传工作。 When [0077] As can be seen, when performing image upload embodiment, depending on the type of network terminal devices currently connected, the difference of the embodiment of the present invention, picture data upload to the server so that the terminal device uploads image to be uploaded, the Upload data capacity can be matched with the speed of the network is currently connected, so that the terminal device is currently connected to the network type, to achieve high efficiency and success rate pictures uploaded work. 本发明实施例提供的图片上传方法,可灵活的根据当前的网络情况,智能化的调整图片上传的方式,为提升图片上传的效率和成功率提供了可能。 Image Upload method according to an embodiment of the present invention, can be flexible according to the current network situation, intelligent way to adjust the image upload, to enhance the efficiency and success rate pictures uploaded possible.

[0078] 可选的,在终端设备当前所连接的网络的类型为第三类型时,本发明实施例可通过缓存待上传图片,并设置在终端设备所连接的网络的类型的网速高于第三类型的网络时(如终端设备所连接的网络的类型为第一类型或第二类型时),将所缓存的待上传图片进行上传; [0078] Alternatively, when the type of the network terminal device currently connected is the third type of embodiment of the present invention can be obtained by the cache to be uploaded, and the type of the terminal device provided at the higher speed network connection the third type of network (e.g., network type of the terminal device is connected is the first type or second type), the buffered image to be uploaded to upload;

[0079]图2示出了本发明实施例提供的设置暂缓上传待上传图片的方法流程图,参照图2,该方法可以包括: [0079] FIG. 2 shows a flowchart of a method of the present invention is suspended uploaded image to be uploaded provided in embodiments provided with reference to FIG. 2, the method may comprise:

[0080] 步骤S200、缓存待上传图片; [0080] step S200, the cache image to be uploaded;

[0081] 步骤S210、设置终端设备所连接的网络的类型为第一类型时,将所缓存的待上传图片上传至服务器,和/或,设置终端设备所连接的网络的类型为第二类型时,将所缓存的待上传图片进行压缩后上传至服务器。 When the [0081] step S210, when the set type of the terminal device connected to the network of the first type, the buffered image to be uploaded to the upload server type, and / or, provided the terminal apparatus is connected to a second network type , the buffered image to be uploaded to the server to upload after compression.

[0082] 对应的,在设置暂缓上传待上传图片后,图3示出了本发明实施例提供的图片上传方法的另一流程图,图3所示方法基于设置暂缓上传待上传图片后,该方法可以包括: After the [0082] corresponding to the set hold uploaded image to be uploaded, FIG. 3 shows another flowchart of the present invention is a method of image upload according to an embodiment, the method shown in FIG. 3 based on the setting hold upload images to be uploaded, the The method may include:

[0083] 步骤S300、监控终端设备当前所连接的网络的类型; [0083] step S300, the type of network monitoring terminal device currently connected;

[0084] 步骤S310、若终端设备当前所连接的网络的类型由第三类型切换为第一类型,将所缓存的待上传图片上传至服务器; [0084] step S310, the type of the terminal device if the currently connected network is switched from a first type of the third type, the buffered pictures uploaded to the server to be uploaded;

[0085]由于第一类型的网络的网络速度较快,终端设备可直接将所缓存的待上传图片进行上传。 [0085] As the network speed of the first type of network is fast, the terminal device can directly upload pictures to be buffered to upload.

[0086] 步骤S320、若终端设备当前所连接的网络的类型由第三类型切换为第二类型,将所缓存的待上传图片进行压缩后上传至服务器。 After the [0086] step S320, the type of the terminal when the device is currently connected by the switching network of the second type is the third type, the buffered compressed image to be uploaded to the server to upload.

[0087]由于第二类型的网络的网络速度适中,终端设备可将所缓存的待上传图片进行压缩后上传。 After the Upload [0087] Since the moderate speed of the second network type network, the terminal device may upload pictures to be buffered compressed.

[0088] 可选的,服务器接收待上传图片后,可根据预先获取的图片描述信息中添加的图片标识,确定出该待上传图片对应的预先获取的图片描述信息; [0088] Alternatively, the server receives the image to be uploaded, image identification information may be described according to the added image acquired in advance, it is determined that the image corresponding to the image to be uploaded description information acquired in advance;

[0089] 可选的,服务器预先获取图片描述信息后,服务器可根据图片描述信息中设置的待上传图片后上传信息,确定该图片描述信息所对应的图片在后续上传; [0089] Alternatively, the server pre-acquired image information described later, the server may upload information to be uploaded according to the image description information set, determines the picture corresponding to the image information described in a subsequent upload;

[0090] 可选的,服务器预先获取图片描述信息后,可解析出图片描述信息中添加的图片标识,若在已获取的图片中未发现与该图片标识对应的图片后,则可将图片描述信息置于待关联图片状态;当服务器接收到后上传的待上传图片后,可将所接收的待上传图片的图片标识,与置于待关联图片状态的图片描述信息中的图片标识进行匹配,从而确定出待关联图片状态的图片描述信息所对应的待上传图片。 After [0090] Alternatively, the server image description information acquired in advance, the image may be parsed Photo identification information added to the picture if the picture corresponding to the identifier is not found in the acquired image, the image can be described image information associated with a state to be placed; when the server receives the uploaded image to be uploaded, the received image to be uploaded images may be identified, the associated image to be placed in a state of image matching the description information of a picture identifier, thereby determining the image to be associated with information describing the state of the image corresponding to the image to be uploaded.

[0091] 可选的,在将设置暂缓上传的待上传图片上传至服务器后(包括在将所缓存的待上传图片上传至服务器后,或,在将所缓存的待上传图片进行压缩后上传至服务器后),终端设备可提示用户图片已上传。 After [0091] Optionally, the provided image to be uploaded suspended uploaded uploaded to the server (comprising, after the buffered pictures uploaded to the server to be uploaded, or compress the buffered image to be uploaded to the upload after the server), the terminal device may prompt the user photos have been uploaded.

[0092] 可选的,在终端设备在第二类型或第三类型网络情况下,进行图片数据上传的过程中(图片数据处于上传中,未上传完成),若终端设备所连接的网络类型发生切换,为使得正在上传的图片数据的策略与切换的网络类型相应,本发明实施例可根据切换后的网络类型,调整正在上传的图片数据的策略;进一步,为匹配正在上传的图片数据已完成的工作量,本发明实施例还可结合正在上传的图片数据已完成的进度,判断是否调整正在上传的图片数据的上传方式; [0092] Optionally, the terminal device in the second type or third type of network conditions, the process of uploading picture data (picture data is uploaded, the upload is not completed), if the network type of the connected terminal equipment occurs switch, so the policy is being uploaded image data corresponding to the type of network handover policy embodiments according to the type of network after the handover, the adjustment being uploaded image data according to the present invention; further, matching uploading picture data has been completed workload, embodiments of the invention may also incorporate progress is being uploaded image data has been completed, it is determined whether adjustment is uploading uploaded image data;

[0093] 对应的,图4示出了本发明实施例提供的图片上传方法的再一流程图,图4所示方法基于图1所示方法的基础上,参照图4,该方法可以包括: [0093] corresponding to FIG. 4 shows a flowchart of the present invention, another method for image upload according to an embodiment, the method shown in FIG. 4 on the basis of the method shown in FIG. 1, see FIG. 4, the method may comprise:

[0094] 步骤S400、若终端设备在上传图片数据的过程中,检测到所连接的网络的类型发生切换,判断已上传的图片数据的进度是否达到预置进度,若是,执行步骤S410,若否,执行步骤S420 ; [0094] step S400, the terminal apparatus when the process of uploading picture data, detects the network to the connected type of switching occurs, determines the progress of the uploaded image data reaches a preset schedule, if yes, perform step S410, the if not , to step S420;

[0095] 预置进度可以根据实际情况设定,如70%、80%等。 [0095] Progress can be pre-set according to the actual situation, such as 70%, 80%, etc.

[0096] 步骤S410、以网络类型切换前所对应的方式上传图片数据; [0096] step S410, the type of handover to the network before the corresponding picture data upload;

[0097] 达到预置进度,说明图片数据的上传已接近完成,不适合重新上传,因此可继续采用网络类型切换前所采用的原方式上传图片数据。 [0097] reaches the preset schedule, description data Photo nearing completion, is not suitable for re-upload, and thus can continue using the original mode before the switching network type used to upload data image.

[0098] 步骤S420、以网络类型切换后所对应的方式上传图片数据。 [0098] step S420, the handover to the network type corresponding to the picture data upload.

[0099] 未达到预置进度,说明已上传的图片数据仅是小部分,可重新上传,采用网络类型切换后所对应的方式上传图片数据; [0099] does not reach the preset schedule, indicating that it has uploaded image data is only a small part, be re-upload, using the switching network type corresponding to upload image data;

[0100] 值得注意的是,图片数据的具体内容根据所采用的上传方式而选定,而上传方式由终端设备连接的网络类型决定;如第一类型网络下的上传方式,所对应的需上传图片数据为待上传图片及图片描述信息,第二类型网络下的上传方式,所对应的需上传图片数据为压缩后的待上传图片及图片描述信息,第三类型网络下的上传方式,所对应的需上传图片数据为图片描述信息。 [0100] Notably, the specific content of the image data selected in accordance uploading employed, and determines the type of network connected by the terminal device uploads the; as uploading the first type network, the corresponding need to upload image data to be uploaded and image description information, uploading the second type of network, the corresponding image data needs to upload information to be uploaded described compressed picture and, in a third type of uploading network, corresponding the data required to upload pictures to a picture description.

[0101] 图4所示方式的具体实施可如下: [0101] DETAILED embodiment shown in FIG. 4 as follows:

[0102] 具体的,若终端设备在第三类型网络下,上传图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第三类型切换为第二类型,判断已上传的图片描述信息的进度是否达到预置进度,若是,继续上传图片描述信息,若否,停止上传图片描述信息,将待上传图片进行压缩,并上传压缩后的待上传图片及图片描述信息; [0102] Specifically, if the terminal device in the process of the third type of network, Photo description information to the server, the detected type of the network terminal apparatus is connected is switched from the third type of the second type, determined uploaded Image Caption progress information reaches a preset schedule, and if so, continue to upload picture description information, if not, stop uploading pictures descriptions, pictures will be uploaded to compress, compress and upload the image to be uploaded and picture description information;

[0103] 若终端设备在第三类型网络下,上传图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第三类型切换为第一类型,判断已上传的图片描述信息的进度是否达到预置进度,若是,继续上传图片描述信息,若否,停止上传图片描述信息,将待上传图片及图片描述信息上传至服务器; [0103] When the process of the terminal device in a third type of network, Photo description information to the server, the detected type of the network terminal apparatus is connected is switched from the third type is a first type, determining image description information uploaded whether the progress reached the preset schedule, and if so, continue to upload picture description information, if not stopped Gallery description information will be uploaded picture and picture description information uploaded to the server;

[0104] 若终端设备在第二类型网络下,上传压缩后的待上传图片及图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第二类型切换为第一类型,判断已上传的压缩后的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传压缩后的待上传图片及图片描述信息,若否,停止上传,将待上传图片及图片描述信息上传至服务器; [0104] After the image to be uploaded, and when the terminal device in a second network type, description information uploaded to the server compression process, the network terminal type detection equipment is connected by a second type of switching a first type, judgment uploaded image to be uploaded and compressed picture describing progress information reaches a preset schedule, if the image to be uploaded, continue to upload compression and picture description information, if not, stop uploading the image to be uploaded pictures and description information uploaded to the server;

[0105] 若终端设备在第一类型网络下,上传待上传图片及图片描述信息上传至服务器的过程中,检测到终端设备所连接的网络的类型由第一类型切换为第二类型,判断已上传的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传待上传图片及图片描述信息,若否,停止上传,将待上传图片进行压缩,并上传压缩后的待上传图片及图片描述信息; [0105] If the terminal equipment at a first network type, upload images to be uploaded and the upload process description information to the server, the terminal device detects a network connection type of the first type is switched from a second type, it has been determined Upload the image to be uploaded and pictures describing progress information reaches a preset schedule, and if so, continue to upload pictures to be uploaded pictures and descriptions, if not, stop uploading, upload pictures to be compressed, compress and upload the image to be uploaded pictures and descriptions;

[0106] 若终端设备在第一类型网络下,上传待上传图片及图片描述信息上传至服务器的过程中,检测到终端设备所连接的网络的类型由第一类型切换为第三类型,判断已上传的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传待上传图片及图片描述信息,若否,停止上传,将图片描述信息上传至服务器,并设置暂缓上传待上传图片; Process [0106] If the terminal equipment at a first network type, and upload images to be uploaded description information uploaded to the server, the terminal device detects a network connection type of the first type is switched from a third type, it has been determined Upload the image to be uploaded and pictures describing progress information reaches a preset schedule, and if so, continue to upload pictures to be uploaded pictures and descriptions, if not, stop uploading the picture description information is uploaded to the server and sets the suspension upload image to be uploaded ;

[0107] 若终端设备在第二类型网络下,上传压缩后的待上传图片及图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第二类型切换为第三类型,判断已上传的压缩后的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传压缩后的待上传图片及图片描述信息,若否,停止上传,将图片描述信息上传至服务器,并设置暂缓上传待上传图片。 [0107] After the image to be uploaded, and when the terminal device in a second network type, description information uploaded to the server compression process, the network terminal type detection device is connected is switched from the second type is the third type, judgment uploaded image to be uploaded and compressed picture describing progress information reaches a preset schedule, pictures and images to be uploaded after if, continue to upload packed description information, if not, stop uploading the picture description information is uploaded to the server and set suspend upload image to be uploaded.

[0108] 可选的,图片描述信息可以包括待上传图片的拍摄时间,待上传图片的拍摄地点,及待上传图片对应的工程标识;具体的,待上传图片的拍摄时间可以在待上传图片拍摄时,终端设备根据系统时间记录;待上传图片的拍摄地点可以在待上传图片拍摄时,终端设备根据地理位置定位技术所确定并记录;待上传图片的工程标识可以是待上传图片拍摄时,终端设备根据工作人员的输入指示确定并记录; [0108] Alternatively, the picture description information may include the time taken image to be uploaded, the location image to be uploaded, and the corresponding image to be uploaded project identification; specifically, shooting time can be uploaded pictures to be uploaded the picture was taken , the terminal device according to the system time record; the location to be uploaded pictures can be uploaded in the picture was taken, the terminal device is determined and recorded in accordance with geo-targeting technology; when the image to be uploaded project identification can upload pictures to be taken, terminal and recording apparatus according to an input indicative of the determined staff;

[0109] 在确定待上传图片的拍摄时间,待上传图片的拍摄地点,及待上传图片对应的工程标识后,本发明实施例可将待上传图片的拍摄时间,待上传图片的拍摄地点,及待上传图片对应的工程标识以结构化数据在终端设备的本地数据库中存储,且绑定与所拍摄的待上传图片的对应关系; Recording time after [0109] In the photographing time determined image to be uploaded, the location image to be uploaded, and the image to be uploaded corresponding to the project identifier, embodiments of the present invention may be uploaded images to be uploaded image location, and a correspondence relationship corresponding to the image to be uploaded to identify project structured data in a local database stored in the terminal device, and is bound to the captured image to be uploaded;

[0110] 其中,将待上传图片的拍摄时间,待上传图片的拍摄地点,及待上传图片对应的工程标识以结构化数据进行存储,可以为是将待上传图片的拍摄时间,待上传图片的拍摄地点,及待上传图片对应的工程标识以行数据存储在本地数据库中,且可以二维表结构来逻辑表达所存储的待上传图片的拍摄时间,待上传图片的拍摄地点,及待上传图片对应的工程标识。 [0110] where the shooting time image to be uploaded, the location image to be uploaded, and the image to be uploaded corresponding project identification shooting time in a structured data storage, may be the image to be uploaded, the image to be uploaded in the location, and the image to be uploaded to the line corresponding project identification data is stored in a local database, and can be a two-dimensional table structure to upload pictures stored logic expression of shooting time, shooting location image to be uploaded, and the image to be uploaded corresponding construction signs.

[0111] 若本发明实施例预先将待上传图片的拍摄时间,待上传图片的拍摄地点,及待上传图片对应的工程标识以结构化数据存储在本地数据库中,则在上传图片描述信息前(包括连接的网络为第一类型、第二类型或第三类型情况下),本发明实施例需在本地数据库中调取出待上传图片对应的图片描述信息(即待上传图片的拍摄时间,拍摄地点,及对应的工程标识); [0111] Recording time when the embodiment of the invention advance the image to be uploaded, the location image to be uploaded, and the image to be uploaded corresponding to the project identifier to the structure of data stored in the local database, the Photo information before described ( includes a first type of network connection, the second type or third type), the embodiment of the present invention for an image to be uploaded modulation taken image corresponding description information (i.e. photographing time image to be uploaded in the local database, imaging location, and the corresponding project identification);

[0112] 具体的,在上传所述图片描述信息前,终端设备可从所述本地数据库中识别与所述待上传图片具有对应关系的,且在所述本地数据中以结构化数据存储的所述待上传图片的拍摄时间,所述待上传图片的拍摄地点,及所述待上传图片对应的工程标识,以便于终端设备从所述本地数据库中调取所述待上传图片的图片描述信息,及后续的上传。 The [0112] Specifically, the description information before uploading the picture, the terminal device may have a corresponding relationship from the local database identifying the image to be uploaded, and structured data stored in the local data shooting time of said image to be uploaded, the location of the image to be uploaded, and the image to be uploaded corresponding to the project identifier, so that the terminal equipment of the retrieved image to be uploaded image description information from the local database, and subsequent upload.

[0113] 本发明实施例提供的图片上传方法,可灵活的根据当前的网络情况,智能化的调整图片上传的方式,为提升图片上传的效率和成功率提供了可能。 [0113] Image Upload method provided in the embodiment of the present invention, can be flexible according to the current network situation, intelligent way to adjust the image upload, to enhance the efficiency and success rate pictures uploaded possible.

[0114] 下面对本发明实施例提供的图片上传装置进行介绍,下文描述的图片上传装置可与上文描述的图片上传方法相互对应参照。 [0114] Hereinafter, the present invention provides a picture upload apparatus described embodiment, picture image upload method described below may upload device described above with reference to correspond to each other.

[0115] 图5为本发明实施例提供的图片上传装置的结构框图,该图片上传装置可应用于终端设备,参照图5,该装置可以包括: [0115] FIG 5 provides a block diagram of the image upload embodiment of the invention apparatus, the apparatus may be applied to upload pictures terminal apparatus, with reference to FIG. 5, the apparatus may comprise:

[0116] 待上传图片确定模块100,用于确定用户所选定的待上传图片; [0116] Photo determination module 100 to be configured to determine the user selected image to be uploaded;

[0117] 连接网络类型判断模块200,用于判断终端设备当前所连接的网络的类型; [0117] connected to the network type determining module 200 for determining the type of the network terminal device is currently connected;

[0118] 第一上传模块300,用于若终端设备当前所连接的网络的类型为第一类型,将所述待上传图片及图片描述信息上传至服务器; [0118] The first upload module 300, if the network type is used for the terminal device is currently connected to a first type, and the image to be uploaded image description information uploaded to the server;

[0119] 第二上传模块400,用于若终端设备当前所连接的网络的类型为第二类型,将所述待上传图片进行压缩,将压缩后的待上传图片及图片描述信息上传至服务器,其中,第一类型的网络的平均网速高于第二类型的网络的平均网速; [0119] The second upload module 400, if the type of network to a terminal device currently connected to a second type, the compressed image to be uploaded, and the image to be uploaded and the compressed image description information uploaded to the server, wherein the first type of network is higher than the average speed of the second type of average network speed network;

[0120] 第三上传模块500,用于若终端设备当前所连接的网络的类型为第三类型,将所述图片描述信息上传至服务器,并设置暂缓上传所述待上传图片,其中,第三类型的网络的平均网速低于第二类型的网络的平均网速。 [0120] The third upload module 500, a network terminating device if the currently connected type of the third type, the image description information uploaded to the server, and provided to suspend the upload image to be uploaded, wherein the third type network is lower than the average speed of the second type average Mbps network.

[0121] 可选的,第三上传模块500在设置暂缓上传所述待上传图片的方面,具体可用于,缓存所述待上传图片;设置终端设备所连接的网络的类型为第一类型时,将所缓存的待上传图片上传至服务器,和/或,设置终端设备所连接的网络的类型为第二类型时,将所缓存的待上传图片进行压缩后上传至服务器。 [0121] Alternatively, the upload module 500 in the third aspect is provided suspend upload the image to be uploaded, specifically, for the buffer to be uploaded; type network terminal device is provided connected to the first type, when the buffered image to be uploaded to the upload server type, and / or, provided the terminal apparatus is connected to a second network type, the buffered image to be uploaded to the server after uploading compressed.

[0122] 对应的,图6示出了本发明实施例提供的图片上传装置的另一结构框图,结合图5和图6所示,该装置还可以包括: [0122] corresponding to FIG. 6 shows a block diagram of another embodiment of the present invention provide images uploaded embodiment apparatus, in conjunction with FIGS. 5 and 6, the apparatus may further comprise:

[0123] 网络类型监控模块600,用于监控终端设备当前所连接的网络的类型; [0123] type of network monitoring module 600, the type of monitor terminal device currently connected to the network;

[0124] 第一后上传模块700,用于若终端设备当前所连接的网络的类型由第三类型切换为第一类型,将所缓存的待上传图片上传至服务器; [0124] After uploading the first module 700, a network terminating device if the currently connected type of switching from a first type of the third type, the buffered pictures uploaded to the server to be uploaded;

[0125] 第二后上传模块800,用于若终端设备当前所连接的网络的类型由第三类型切换为第二类型,将所缓存的待上传图片进行压缩后上传至服务器。 [0125] After uploading the second module 800, if the network for the terminal device currently connected is switched from the type of the third type is the second type, the buffered compressed image to be uploaded to the upload server.

[0126] 可选的,本发明实施例中,图片上传装置在将所缓存的待上传图片上传至服务器后,或,在将所缓存的待上传图片进行压缩后上传至服务器后,还可提示用户图片已上传。 [0126] Alternatively, in the embodiment, after the image upload means to be buffered Photo uploaded to the server, or uploaded to the server after the buffered compressed image to be uploaded, embodiments of the present invention may also be prompted user picture uploaded.

[0127] 可选的,本发明实施例中,图片上传装置在判断终端设备当前无法连接网络,还可提示用户由于网络连接失败,所述待上传图片上传失败。 [0127] Optionally, embodiments of the present invention, the image determining apparatus uploads the terminal device is currently not connected to the network, the user may also be prompted due to a network connection fails, the image to be uploaded failed to upload.

[0128] 可选的,图片描述信息可以包括:待上传图片的拍摄时间,待上传图片的拍摄地点,及待上传图片对应的工程标识; [0128] Alternatively, the picture description information may include: time taken image to be uploaded, the location image to be uploaded, and the corresponding image to be uploaded project identification;

[0129] 可选的,待上传图片的拍摄时间,待上传图片的拍摄地点,及待上传图片对应的工程标识可以结构化数据在终端设备的本地数据库中存储,并绑定与所述待上传图片的对应关系; [0129] Alternatively, the photographing time image to be uploaded, the location image to be uploaded, and the image to be uploaded corresponding to the project identifier may be structured in a local database of data stored in the terminal device, and to be bound to the upload correspondence between the picture;

[0130] 对应的,图7示出了本发明实施例提供的图片上传装置的再一结构框图,结合图5和图7所示,该装置还可以包括: [0130] corresponding to FIG. 7 shows an embodiment of the present invention provide a picture of a block diagram of another embodiment of the structure of the device to upload, and in conjunction with FIG. 5 FIG. 7, the apparatus may further comprise:

[0131]图片描述信息调取模块900,用于在上传所述图片描述信息前,从所述本地数据库中识别与所述待上传图片具有对应关系的,且在所述本地数据库中以结构化数据存储的所述待上传图片的拍摄时间,所述待上传图片的拍摄地点,及所述待上传图片对应的工程标识,以便于从所述本地数据库中调取所述待上传图片的图片描述信息。 [0131] Image retrieval description information module 900, before uploading the picture for description information identifying the image to be uploaded from a correspondence relationship with the local database, the local database and a structured photographing time data stored in said image to be uploaded, the location of the image to be uploaded, and the image to be uploaded corresponding to the project identifier, so as to from the local database in the retrieved image to be uploaded images described information.

[0132] 可选的,图8示出了本发明实施例提供的图片上传装置的又一结构框图,结合图5和图8所示,该装置还可以包括: [0132] Alternatively, FIG. 8 shows a block diagram of yet another embodiment of the present invention provide images uploaded embodiment apparatus, in conjunction with FIGS. 5 and 8, the apparatus may further comprise:

[0133] 上传方式切换模块1000,用于若终端设备在上传图片数据的过程中,检测到所连接的网络的类型发生切换,判断已上传的图片数据的进度是否达到预置进度,若是,以网络类型切换前所对应的方式上传图片数据,若否,以网络类型切换后所对应的方式上传图片数据。 [0133] upload mode switching module 1000, for if the type of the terminal device in the process of uploading image data, the detected network connection switching occurs, the progress of determination uploaded image data reaches a preset schedule, and if so, to before the switching network type corresponding to the image data upload, if not, switch to the network type corresponding to the picture data upload.

[0134] 可选的,上传方式切换模块1000具体可用于: [0134] Alternatively, the upload mode switching module 1000 can be used to specifically:

[0135] 若终端设备在第三类型网络下,上传图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第三类型切换为第二类型,判断已上传的图片描述信息的进度是否达到预置进度,若是,继续上传图片描述信息,若否,停止上传图片描述信息,将待上传图片进行压缩,并上传压缩后的待上传图片及图片描述信息; [0135] When the process of the terminal device in a third type of network, Photo description information to the server, the detected type of the network terminal apparatus is connected is switched from the third type of the second type, determined uploaded image description information whether the progress reached the preset schedule, and if so, continue to upload picture description information, if not, stop uploading pictures descriptions, pictures will be uploaded to compress, compress and upload the image to be uploaded and picture description information;

[0136] 若终端设备在第三类型网络下,上传图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第三类型切换为第一类型,判断已上传的图片描述信息的进度是否达到预置进度,若是,继续上传图片描述信息,若否,停止上传图片描述信息,将待上传图片及图片描述信息上传至服务器; [0136] When the process of the terminal device in a third type of network, Photo description information to the server, the detected type of the network terminal apparatus is connected is switched from the third type is a first type, determining image description information uploaded whether the progress reached the preset schedule, and if so, continue to upload picture description information, if not stopped Gallery description information will be uploaded picture and picture description information uploaded to the server;

[0137] 若终端设备在第二类型网络下,上传压缩后的待上传图片及图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第二类型切换为第一类型,判断已上传的压缩后的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传压缩后的待上传图片及图片描述信息,若否,停止上传,将待上传图片及图片描述信息上传至服务器; [0137] After the image to be uploaded, and when the terminal device in a second network type, description information uploaded to the server compression process, the network terminal type detection equipment is connected by a second type of switching a first type, judgment uploaded image to be uploaded and compressed picture describing progress information reaches a preset schedule, if the image to be uploaded, continue to upload compression and picture description information, if not, stop uploading the image to be uploaded pictures and description information uploaded to the server;

[0138] 若终端设备在第一类型网络下,上传待上传图片及图片描述信息上传至服务器的过程中,检测到终端设备所连接的网络的类型由第一类型切换为第二类型,判断已上传的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传待上传图片及图片描述信息,若否,停止上传,将待上传图片进行压缩,并上传压缩后的待上传图片及图片描述信息; [0138] If the terminal equipment at a first network type, upload images to be uploaded and the upload process description information to the server, the terminal device detects a network connection type of the first type is switched from a second type, it has been determined Upload the image to be uploaded and pictures describing progress information reaches a preset schedule, and if so, continue to upload pictures to be uploaded pictures and descriptions, if not, stop uploading, upload pictures to be compressed, compress and upload the image to be uploaded pictures and descriptions;

[0139] 若终端设备在第一类型网络下,上传待上传图片及图片描述信息上传至服务器的过程中,检测到终端设备所连接的网络的类型由第一类型切换为第三类型,判断已上传的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传待上传图片及图片描述信息,若否,停止上传,将图片描述信息上传至服务器,并设置暂缓上传待上传图片; Process [0139] If the terminal equipment at a first network type, and upload images to be uploaded description information uploaded to the server, the terminal device detects a network connection type of the first type is switched from a third type, it has been determined Upload the image to be uploaded and pictures describing progress information reaches a preset schedule, and if so, continue to upload pictures to be uploaded pictures and descriptions, if not, stop uploading the picture description information is uploaded to the server and sets the suspension upload image to be uploaded ;

[0140] 若终端设备在第二类型网络下,上传压缩后的待上传图片及图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第二类型切换为第三类型,判断已上传的压缩后的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传压缩后的待上传图片及图片描述信息,若否,停止上传,将图片描述信息上传至服务器,并设置暂缓上传待上传图片。 [0140] After the image to be uploaded, and when the terminal device in a second network type, description information uploaded to the server compression process, the network terminal type detection device is connected is switched from the second type is the third type, judgment uploaded image to be uploaded and compressed picture describing progress information reaches a preset schedule, pictures and images to be uploaded after if, continue to upload packed description information, if not, stop uploading the picture description information is uploaded to the server and set suspend upload image to be uploaded.

[0141] 本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。 [0141] In the present specification, the various embodiments described in a progressive manner, differences from the embodiment and the other embodiments each of which emphasizes embodiment, the same or similar portions between the various embodiments refer to each other. 对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。 For the disclosed embodiment of the apparatus embodiment, since it corresponds to the method disclosed embodiments, the description is relatively simple, see Methods of the correlation can be described.

[0142] 专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。 [0142] professionals may further appreciate that the various means disclosed herein and algorithm steps described exemplary embodiments, by electronic hardware, computer software, or a combination thereof. In order to clearly illustrate the hardware and software interchangeability, in the above description, according to functions generally described compositions and steps of the examples. 这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。 Whether these functions are performed by hardware or software depends upon the particular application and design constraints of the technical solutions. 专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。 Professional technical staff may use different methods for each specific application to implement the described functionality, but such implementation should not be considered outside the scope of the present invention.

[0143] 结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。 [0143] The steps of a method or algorithm described in the embodiments disclosed herein may be implemented in hardware, or a combination thereof, in a software module executed by a processor implemented directly. 软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程R0M、电可擦除可编程R0M、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。 A software module may be placed in a random access memory (RAM), a memory, a read only memory (ROM), electrically programmable R0M, electrically erasable programmable R0M, registers, a hard disk, a removable disk, CD-ROM, or within the technical field known any other form of storage medium.

[0144] 对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。 [0144] The above description of the disclosed embodiments enables those skilled in the art to make or use the present invention. 对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。 Various modifications to these professionals skilled in the art of the present embodiments will be apparent, and the generic principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. 因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。 Accordingly, the present invention will not be limited to the embodiments shown herein but is to be accorded herein consistent with the principles and novel features disclosed widest scope.

Claims (10)

  1. 1.一种图片上传方法,其特征在于,应用于终端设备,所述方法包括: 确定用户所选定的待上传图片; 判断终端设备当前所连接的网络的类型; 若终端设备当前所连接的网络的类型为第一类型,将所述待上传图片及图片描述信息上传至服务器; 若终端设备当前所连接的网络的类型为第二类型,将所述待上传图片进行压缩,将压缩后的待上传图片及图片描述信息上传至服务器,其中,第一类型的网络的平均网速高于第二类型的网络的平均网速; 若终端设备当前所连接的网络的类型为第三类型,将所述图片描述信息上传至服务器,并设置暂缓上传所述待上传图片,其中,第三类型的网络的平均网速低于第二类型的网络的平均网速。 CLAIMS 1. A method for image upload, characterized in that the apparatus is applied to a terminal, the method comprising: determining a user selected image to be uploaded; determines the type of network terminal devices currently connected; If the terminal device is currently connected type network of the first type, the image to be uploaded and image description information uploaded to the server; If the type of network terminal devices currently connected to a second type, the image to be uploaded is compressed, the compressed Photo and images to be uploaded to the server description information, wherein the first type of network is higher than the average speed of the second type average Mbps network; if the type of the terminal device currently connected to the network of a third type, the image description information uploaded to the server, and provided to suspend the upload image to be uploaded, wherein the third type of network is lower than the average speed average network speed of a second type of network.
  2. 2.根据权利要求1所述的图片上传方法,其特征在于,所述设置暂缓上传所述待上传图片包括: 缓存所述待上传图片; 设置终端设备所连接的网络的类型为第一类型时,将所缓存的待上传图片上传至服务器,和/或,设置终端设备所连接的网络的类型为第二类型时,将所缓存的待上传图片进行压缩后上传至服务器。 When the network type of the terminal device is provided as a first connector type; buffering the image to be uploaded: 2. The method according to upload pictures according to claim 1, characterized in that the hold is provided comprising uploading the image to be uploaded , the buffered image to be uploaded to the upload server type, and / or, provided the terminal device is connected to a second network type, the buffered image to be uploaded to the server after uploading compressed.
  3. 3.根据权利要求2所述的图片上传方法,其特征在于,在设置暂缓上传所述待上传图片后,所述方法还包括: 监控终端设备当前所连接的网络的类型; 若终端设备当前所连接的网络的类型由第三类型切换为第一类型,将所缓存的待上传图片上传至服务器; 若终端设备当前所连接的网络的类型由第三类型切换为第二类型,将所缓存的待上传图片进行压缩后上传至服务器。 3. The method of claim 2 Image Upload claim, wherein, after setting holds the uploaded image to be uploaded, the method further comprising: monitoring terminal type network device is currently connected; If the terminal device is currently type of network connection is switched from the third type is a first type, the buffered pictures uploaded to the server to be uploaded; type network if the terminal is currently connected is switched from a third type of a second type, the buffered after the image to be uploaded to compress uploaded to the server.
  4. 4.根据权利要求3所述的图片上传方法,其特征在于,所述方法还包括: 在将所缓存的待上传图片上传至服务器后,或,在将所缓存的待上传图片进行压缩后上传至服务器后,提示用户图片已上传。 4. The method of image upload according to claim 3, characterized in that, said method further comprising: after the after the buffered pictures uploaded to the server to be uploaded, or compress the buffered image to be uploaded to upload to the server, the user is prompted photos have been uploaded.
  5. 5.根据权利要求1所述的图片上传方法,其特征在于,所述方法还包括: 若判断终端设备当前无法连接网络,提示用户由于网络连接失败,所述待上传图片上传失败。 5. The method of claim image upload according to claim 1, wherein said method further comprises: determining if the terminal device is currently not connected to the network, the network connection fails because the user is prompted, the image to be uploaded failed to upload.
  6. 6.根据权利要求1所述的图片上传方法,其特征在于,所述图片描述信息包括:所述待上传图片的拍摄时间,所述待上传图片的拍摄地点,及所述待上传图片对应的工程标识。 The image upload method according to claim 1, wherein the image description information comprises: photographing time of the image to be uploaded, the image to be uploaded to the location, and the corresponding image to be uploaded construction signs.
  7. 7.根据权利要求6所述的图片上传方法,其特征在于,所述待上传图片的拍摄时间,所述待上传图片的拍摄地点,及所述待上传图片对应的工程标识以结构化数据在终端设备的本地数据库中存储,并绑定了与所述待上传图片的对应关系; 所述方法还包括: 在上传所述图片描述信息前,从所述本地数据库中识别与所述待上传图片具有对应关系的,且在所述本地数据库中以结构化数据存储的所述待上传图片的拍摄时间,所述待上传图片的拍摄地点,及所述待上传图片对应的工程标识,以便于从所述本地数据库中调取所述待上传图片的图片描述信息并上传。 The image upload method according to claim 6, wherein the photographing time of the image to be uploaded, the location of the image to be uploaded, and the image to be uploaded to the corresponding identification project structured data a local database stored in the terminal device, and bind to the corresponding relationship between the image to be uploaded; the method further comprising: prior to upload the picture description information from the local database identifying the image to be uploaded shooting time having a correspondence relationship, and to the structured data stored in the image to be uploaded in the local database, the location of the image to be uploaded, and the image to be uploaded corresponding to the project identifier, so that the the local database of the retrieved image to be uploaded image description information and upload.
  8. 8.根据权利要求1所述的图片上传方法,其特征在于,所述方法还包括: 若终端设备在上传图片数据的过程中,检测到所连接的网络的类型发生切换,判断已上传的图片数据的进度是否达到预置进度,若是,以网络类型切换前所对应的方式上传图片数据,若否,以网络类型切换后所对应的方式上传图片数据。 8. The method of claim image upload according to claim 1, characterized in that, said method further comprising: if the terminal device in the process of uploading picture data, the detection of the type of network connected switching occurs, it is determined uploaded image schedule data reaches a preset schedule, if, before the switching manner corresponding to the network type data upload pictures, if not, switch to the network type corresponding to the picture data upload.
  9. 9.根据权利要求8所述的图片上传方法,其特征在于,所述若终端设备在上传图片数据的过程中,检测到所连接的网络的类型发生切换,判断已上传的图片数据的进度是否达到预置进度,若是,以网络类型切换前所对应的方式上传图片数据,若否,以网络类型切换后所对应的方式上传图片数据包括: 若终端设备在第三类型网络下,上传图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第三类型切换为第二类型,判断已上传的图片描述信息的进度是否达到预置进度,若是,继续上传图片描述信息,若否,停止上传图片描述信息,将待上传图片进行压缩,并上传压缩后的待上传图片及图片描述信息; 若终端设备在第三类型网络下,上传图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第三类型切换为第一类型 9. A method of image upload according to claim 8, wherein, if the terminal device in the process of uploading picture data, the detected type of the connected network switching occurs, the progress of the judgment whether the uploaded image data reaches a preset schedule, if, before the switching to the network type corresponding to the image data upload, if not, switch to the network type corresponding to upload image data comprises: when the terminal device in a third type of network, described Photo process information to the server, the network terminal type detection device is connected is switched from the third type of the second type, described determination image uploaded progress information reaches a preset schedule, and if yes, continue to upload image description information, If not, stop uploading image description information, upload pictures to be compressed, and upload images to be compressed and after Photo description information; process if the terminal device in a third type of network, Photo description information to the server, the detection the type of network connected to the terminal device is switched from the third type is a first type 判断已上传的图片描述信息的进度是否达到预置进度,若是,继续上传图片描述信息,若否,停止上传图片描述信息,将待上传图片及图片描述信息上传至服务器; 若终端设备在第二类型网络下,上传压缩后的待上传图片及图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第二类型切换为第一类型,判断已上传的压缩后的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传压缩后的待上传图片及图片描述信息,若否,停止上传,将待上传图片及图片描述信息上传至服务器; 若终端设备在第一类型网络下,上传待上传图片及图片描述信息上传至服务器的过程中,检测到终端设备所连接的网络的类型由第一类型切换为第二类型,判断已上传的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上 Judgment has uploaded images describing progress information reaches a preset schedule, and if so, continue to upload picture description information, if not stopped Gallery Description information will be uploaded picture and picture description information uploaded to the server; if the second terminal equipment the type of network, to be uploaded and the upload the compressed image information to the procedure described server, the terminal device detects a network connected by a second type of switching type is the first type, determined to be uploaded compressed uploaded images and pictures describing the progress of information reaches a preset schedule, if the image to be uploaded, continue to upload compression and picture description information, if not, stop uploading the image to be uploaded and picture description information uploaded to the server; if the terminal equipment a first type network, upload pictures and images to be uploaded description information uploaded to the server process, the terminal device detects that the network connection is switched from the first type is the type of the second type, determined uploaded images and images to be uploaded description of the progress has reached a preset schedule, and if so, continue on 待上传图片及图片描述信息,若否,停止上传,将待上传图片进行压缩,并上传压缩后的待上传图片及图片描述信息; 若终端设备在第一类型网络下,上传待上传图片及图片描述信息上传至服务器的过程中,检测到终端设备所连接的网络的类型由第一类型切换为第三类型,判断已上传的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传待上传图片及图片描述信息,若否,停止上传,将图片描述信息上传至服务器,并设置暂缓上传待上传图片; 若终端设备在第二类型网络下,上传压缩后的待上传图片及图片描述信息至服务器的过程中,检测到终端设备所连接的网络的类型由第二类型切换为第三类型,判断已上传的压缩后的待上传图片及图片描述信息的进度是否达到预置进度,若是,继续上传压缩后的待上传图片及图片描述信息, And images to be uploaded description information, if not, stop uploading, upload pictures to be compressed, and upload images to be compressed and after Photo description information; if the terminal device at a first network type, and upload images to be uploaded description information uploaded to the server process, the type of the detected network terminal device is connected over from the first type is the third type, it is determined to be uploaded and image description Photo progress information reaches a preset schedule, and if so, continue to upload images to be uploaded and description information, if not, stop uploading the image description information uploaded to the server, and upload the image to be uploaded suspended provided; the image to be uploaded, if the terminal device at a second network type, compression and upload process description information to the image server, the terminal device detects a network connected by a second type of switching type is the third type, and the image to be uploaded compressed picture uploaded described determination information reaches a preset schedule progress , pictures and images to be uploaded after if, continue to upload compressed description information, 若否,停止上传,将图片描述信息上传至服务器,并设置暂缓上传待上传图片。 If not, stop uploading the picture description information is uploaded to the server and sets the suspension upload image to be uploaded.
  10. 10.一种图片上传装置,其特征在于,应用于终端设备,所述装置包括: 待上传图片确定模块,用于确定用户所选定的待上传图片; 连接网络类型判断模块,用于判断终端设备当前所连接的网络的类型; 第一上传模块,用于若终端设备当前所连接的网络的类型为第一类型,将所述待上传图片及图片描述信息上传至服务器; 第二上传模块,用于若终端设备当前所连接的网络的类型为第二类型,将所述待上传图片进行压缩,将压缩后的待上传图片及图片描述信息上传至服务器,其中,第一类型的网络的平均网速高于第二类型的网络的平均网速; 第三上传模块,用于若终端设备当前所连接的网络的类型为第三类型,将所述图片描述信息上传至服务器,并设置暂缓上传所述待上传图片,其中,第三类型的网络的平均网速低于第二类型的网络的平均网速。 10. An image upload apparatus, wherein the terminal device is applied, the apparatus comprising: image to be uploaded determination module for determining a user selected image to be uploaded; network connection type determining module, configured to determine a terminal the type of network the device is currently connected; a first upload module configured to, if the network type of the terminal devices currently connected to a first type, and the image to be uploaded image description information uploaded to the server; a second upload module, If the network type for the terminal device is currently connected to a second type, the compressed image to be uploaded, and the image to be uploaded and the compressed image description information uploaded to the server, wherein the average of the first type of network the average speed is higher than the second type of network, network speed; third upload module configured to, if the network terminal device currently connected to the type of the third type, the image description information uploaded to the server, and arranged to suspend upload the image to be uploaded, wherein the third type of network is lower than the average speed average network speed of a second type of network.
CN 201510599773 2015-09-18 2015-09-18 Image uploading method and device CN105246055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510599773 CN105246055A (en) 2015-09-18 2015-09-18 Image uploading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510599773 CN105246055A (en) 2015-09-18 2015-09-18 Image uploading method and device

Publications (1)

Publication Number Publication Date
CN105246055A true true CN105246055A (en) 2016-01-13

Family

ID=55043483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510599773 CN105246055A (en) 2015-09-18 2015-09-18 Image uploading method and device

Country Status (1)

Country Link
CN (1) CN105246055A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267962A1 (en) * 2003-06-24 2004-12-30 Nokia Corporation Method and system in wireless data communication network for transferring content to terminal equipment and corresponding terminal equipment, server and browser devices
CN102932671A (en) * 2012-11-26 2013-02-13 北京奇虎科技有限公司 Method and server for supplying picture to computing terminal
CN103457910A (en) * 2012-05-29 2013-12-18 腾讯科技(深圳)有限公司 Method and terminal for uploading files
CN103796040A (en) * 2012-10-31 2014-05-14 上海心动企业发展有限公司 Method and device for releasing multimedia data according to network status of mobile terminal
CN103875277A (en) * 2011-08-12 2014-06-18 脸谱公司 Zero-click photo upload
CN103986696A (en) * 2014-04-24 2014-08-13 华为技术有限公司 Multimedia file transmission device and method
US20150244751A1 (en) * 2012-09-07 2015-08-27 Airplug Inc. Apparatus and method for relaying data of a media content of which section information is carried by list information

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040267962A1 (en) * 2003-06-24 2004-12-30 Nokia Corporation Method and system in wireless data communication network for transferring content to terminal equipment and corresponding terminal equipment, server and browser devices
CN103875277A (en) * 2011-08-12 2014-06-18 脸谱公司 Zero-click photo upload
CN103457910A (en) * 2012-05-29 2013-12-18 腾讯科技(深圳)有限公司 Method and terminal for uploading files
US20150244751A1 (en) * 2012-09-07 2015-08-27 Airplug Inc. Apparatus and method for relaying data of a media content of which section information is carried by list information
CN103796040A (en) * 2012-10-31 2014-05-14 上海心动企业发展有限公司 Method and device for releasing multimedia data according to network status of mobile terminal
CN102932671A (en) * 2012-11-26 2013-02-13 北京奇虎科技有限公司 Method and server for supplying picture to computing terminal
CN103986696A (en) * 2014-04-24 2014-08-13 华为技术有限公司 Multimedia file transmission device and method

Similar Documents

Publication Publication Date Title
US20120054386A1 (en) Communicating between electronic devices using a portable storage device
US20090300685A1 (en) System, method, and device for transmitting video captured on a wireless device
US20070180265A1 (en) Film management method
CN1873820A (en) Method for processing video file, method for indexing video, and video indexing unit
CN101442647A (en) Control method for video playback and localization of video monitoring system and storage server thereof
CN102244758A (en) Video-recording-file-based data acquisition method and equipment
CN103248939A (en) Method and system for achieving synchronous display of multiple screens
JP2004096580A (en) Data management device
JP2010021920A (en) Camera system and recorder
CN104137587A (en) Method and terminal sending and receiving user data
CN102143353A (en) Method for real-time collecting video
JP2005086826A (en) Mms message splitting apparatus and its method in mobile terminal equipment
JP2010056814A (en) Image monitoring apparatus and program
CN103457973A (en) Image uploading method and system, image uploading client terminal and network server
CN103200366A (en) Long-distance shooting control method, network server and terminal equipment
US20120054370A1 (en) Data file transfer apparatus and control method of the data file transfer apparatus
US20120150881A1 (en) Cloud-hosted multi-media application server
CN104572113A (en) Automatic storage space arranging method and mobile terminal
US20130057685A1 (en) Generating and storing an asset at a PORT apparatus
US20120307078A1 (en) Automatic sharing and replacement of content based on network connectivity
US20080273594A1 (en) Processing Video Data
US20140119243A1 (en) Remote Conference Saving System and Storage Medium
CN101217611A (en) An image downloading method, system and device in the digital photo frame
CN105184881A (en) Method, apparatus, server and system for identifying user identity
Moltisanti et al. Image manipulation on facebook for forensics evidence

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination