CN107800792A - The method that a kind of android pictures or video are uploaded onto the server - Google Patents
The method that a kind of android pictures or video are uploaded onto the server Download PDFInfo
- Publication number
- CN107800792A CN107800792A CN201711014235.6A CN201711014235A CN107800792A CN 107800792 A CN107800792 A CN 107800792A CN 201711014235 A CN201711014235 A CN 201711014235A CN 107800792 A CN107800792 A CN 107800792A
- Authority
- CN
- China
- Prior art keywords
- file
- picture
- video
- user
- thumbnail
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides the method that a kind of android pictures or video are uploaded onto the server, belong to technical field of information interaction, the present invention is in cell phone application information upload function, a video or plurality of pictures are selected in mobile phone photo album by user, thumbnail corresponding to generation after the completion of selection, if user wants to modify, thumbnail can be clicked on it is again introduced into mobile phone photo album and reselects, rearmost point percussion is sent, picture or video are sent to server end, server returns to Success Flag after receiving successfully, failure flags are returned after failure.
Description
Technical field
The present invention relates to exchange technology, more particularly to a kind of method that android pictures or video are uploaded onto the server.
Background technology
With the development of network, the mode that people carry out information exchange is more and more, and QQ space and wechat circle of friends, new
The rise of unrestrained microblogging, enrich the mode of people's information interchange.In cell phone application R&D process, client also requires that developer enters
The exploitation of row information upload function, user can upload onto the server the video of mobile phone terminal or picture, then by server
Push work corresponding to carrying out.
The content of the invention
In order to solve the above technical problems, the present invention proposes what a kind of android pictures or video were uploaded onto the server
Method.
The technical scheme is that:
The method that a kind of android pictures or video are uploaded onto the server, in cell phone application information upload function, is existed by user
A video or plurality of pictures are selected in mobile phone photo album, thumbnail corresponding to generation after the completion of selection, if user wants to carry out
Modification, can click on thumbnail and be again introduced into mobile phone photo album and reselect, and rearmost point percussion is sent, and picture or video are sent to
Server end, server return to Success Flag, failure flags are returned after failure after receiving successfully.
Realize that the present invention mainly has with lower part:
1st, select file
User enters after this function main interface the file for selecting to upload first, can eject pop-up, prompt selection picture still to select
Video.Selection picture can enter picture picture library(Video file can not be selected herein), select video council to enter video picture library(Herein
Picture file can not be selected).Enter main interface after chosen successfully, can also be selected after selecting picture format(Allow simultaneously
Upload two pictures), select video file to upload one.
2nd, thumbnail is generated
User is shown in function main interface no matter selecting picture file still to select video file to generate thumbnail.
3rd, the file that modification uploads
The thumbnail that user can click on file reselects the file to be uploaded into picture library.
4th, file is deleted
User can click on the deletion button in the file thumbnail upper right corner, and the file chosen is deleted(Weight after video is deleted
New selection uploaded videos or picture, two pictures reselect uploaded videos or picture after the completion of all deleting, if also had
One pictures are not deleted, then upper transmitting file still can only select picture format).
5th, upper transmitting file
After the completion of user's selection, transmitting file in click, file is uploaded onto the server end.
Brief description of the drawings
Fig. 1 is selection picture flow chart;
Fig. 2 is that file uploads flow chart.
Embodiment
More detailed elaboration is carried out to present disclosure below:
A kind of picture or video of the present invention is uploaded onto the server the method at end, and system picture library, http are enabled with android
Post is asked, and AsyncHttpResponseHandler receives the technologies such as message, and specific implementation flow is:
1st, select file
User enters after this function main interface the file for selecting to upload first, can eject pop-up, prompt selection picture still to select
Video.Selection picture can enter picture picture library(Video file can not be selected herein), select video council to enter video picture library(Herein
Picture file can not be selected).Enter main interface after chosen successfully, can also be selected after selecting picture format(Allow simultaneously
Upload two pictures), select video file to upload one.After the completion of selection, by realizing androidonActivityRe
Sult interfaces return to main interface, and pass through the decodeFile methods in BitmapFactory(Picture realizes the side of thumbnail
Method)With the getFrameAtTime methods in MediaMetadataRetriever(The method that video realizes thumbnail)Display contracting
Sketch map.Meanwhile user can delete the picture and video chosen.So far, the flow of select file has been completed, and flow chart is as schemed
Shown in 1.
2nd, file uploads
File upload is carried out after the completion of file selection, user is asked after clicking on upload button by http post, is sent out to server
Request is sent, the request of response return is handled by AsyncHttpResponseHandler, onSuccess represents to upload successfully,
Onfailure represents to upload failure.Flow chart is as shown in Figure 2.
It is the known technology of those skilled in the art in addition to the technical characteristic described in specification.
Claims (3)
1. a kind of method that android pictures or video are uploaded onto the server, it is characterised in that
In cell phone application information upload function, a video or plurality of pictures are selected in mobile phone photo album by user, has been selected
Into thumbnail corresponding to rear generation, if user wants to modify, click thumbnail is again introduced into mobile phone photo album and reselected, most
Click on and send afterwards, picture or video are sent to server end, server returns to Success Flag, returned after failure after receiving successfully
Return failure flags.
2. according to the method for claim 1, it is characterised in that
Mainly include the following steps that:
1), select file
The file uploaded is selected after user's entered function main interface first, pop-up can be ejected, prompts selection picture still to select to regard
Frequently;Selection picture can enter picture picture library, select video council to enter video picture library;Enter main interface, selection figure after chosen successfully
It can also be selected to upload two pictures simultaneously after piece form, select video file to upload one;
2), generation thumbnail
User is shown in function main interface no matter selecting picture file still to select video file to generate thumbnail;
3), modification upload file
The thumbnail that user clicks on file reselects the file to be uploaded into picture library;
4), delete file
User clicks on the deletion button in the file thumbnail upper right corner, and the file chosen is deleted;
5), upper transmitting file
After the completion of user's selection, transmitting file in click, file is uploaded onto the server end.
3. according to the method for claim 2, it is characterised in that
Video reselects uploaded videos or picture after deleting, two pictures reselect uploaded videos after the completion of all deleting
Or picture, if also picture is not deleted, then upper transmitting file still can only select picture format.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711014235.6A CN107800792A (en) | 2017-10-26 | 2017-10-26 | The method that a kind of android pictures or video are uploaded onto the server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711014235.6A CN107800792A (en) | 2017-10-26 | 2017-10-26 | The method that a kind of android pictures or video are uploaded onto the server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107800792A true CN107800792A (en) | 2018-03-13 |
Family
ID=61548079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711014235.6A Pending CN107800792A (en) | 2017-10-26 | 2017-10-26 | The method that a kind of android pictures or video are uploaded onto the server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107800792A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113542761A (en) * | 2021-06-23 | 2021-10-22 | 惠州Tcl云创科技有限公司 | Multi-form video compression processing method and device based on mobile terminal and terminal |
WO2022068803A1 (en) * | 2020-09-30 | 2022-04-07 | 维沃移动通信有限公司 | File processing method and apparatus, and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040167971A1 (en) * | 2003-02-25 | 2004-08-26 | Eva Manolis | Restartable image uploading |
CN103916550A (en) * | 2012-12-30 | 2014-07-09 | 北京新媒传信科技有限公司 | Image processing method and apparatus in Android platform |
CN104079654A (en) * | 2014-07-04 | 2014-10-01 | 北京奇虎科技有限公司 | Application program picture posting method, client and electronic device |
CN104462491A (en) * | 2014-12-22 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Image uploading method and system and corresponding server |
CN105069120A (en) * | 2015-08-12 | 2015-11-18 | 北京金山安全软件有限公司 | Picture management method and device and mobile terminal |
CN106027608A (en) * | 2016-05-05 | 2016-10-12 | 武汉斗鱼网络科技有限公司 | Image uploading method, client and server |
-
2017
- 2017-10-26 CN CN201711014235.6A patent/CN107800792A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040167971A1 (en) * | 2003-02-25 | 2004-08-26 | Eva Manolis | Restartable image uploading |
CN103916550A (en) * | 2012-12-30 | 2014-07-09 | 北京新媒传信科技有限公司 | Image processing method and apparatus in Android platform |
CN104079654A (en) * | 2014-07-04 | 2014-10-01 | 北京奇虎科技有限公司 | Application program picture posting method, client and electronic device |
CN104462491A (en) * | 2014-12-22 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Image uploading method and system and corresponding server |
CN105069120A (en) * | 2015-08-12 | 2015-11-18 | 北京金山安全软件有限公司 | Picture management method and device and mobile terminal |
CN106027608A (en) * | 2016-05-05 | 2016-10-12 | 武汉斗鱼网络科技有限公司 | Image uploading method, client and server |
Non-Patent Citations (4)
Title |
---|
ERICPENG2014: "Android上传图片至java服务器", 《HTTPS://BLOG.CSDN.NET/ERICPENGJUN/ARTICLE/DETAILS/53927306》 * |
SHINEFLOWERS: "MediaMetadataRetriever的用法", 《HTTPS://BLOG.CSDN.NET/SHINEFLOWERS/ARTICLE/DETAILS/48031873》 * |
SPRINGSKY: "Android选择图片或拍照图片上传到服务器", 《HTTPS://WWW.JB51.NET/ARTICLE/102678.HTM》 * |
社交宝: "图片社交app开发中上传图片功能设计", 《M.SOHU.COM/A/118501784_524068》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022068803A1 (en) * | 2020-09-30 | 2022-04-07 | 维沃移动通信有限公司 | File processing method and apparatus, and electronic device |
CN113542761A (en) * | 2021-06-23 | 2021-10-22 | 惠州Tcl云创科技有限公司 | Multi-form video compression processing method and device based on mobile terminal and terminal |
CN113542761B (en) * | 2021-06-23 | 2024-04-09 | 惠州Tcl云创科技有限公司 | Multi-form video compression processing method and device based on mobile terminal, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10325394B2 (en) | Mobile communication terminal and data input method | |
US9977591B2 (en) | Image with audio conversation system and method | |
US9288299B2 (en) | Method and apparatus for file sharing in a network | |
CN103200224B (en) | A kind of method of Information Sharing, device and terminal | |
CN103440247A (en) | Method and device for sending photos | |
CN103503385A (en) | Method for information share and device | |
CN102368749B (en) | Instant communication contacts list presents the method and system of individual character pattern | |
CN104239315A (en) | Picture correlation method | |
CN102368196A (en) | Method, terminal and system for editing dynamical picture in content sending window of client side | |
CN106134149A (en) | Communications event | |
CN104335235A (en) | User event content, associated apparatus and methods | |
CN104035565A (en) | Input method, input device, auxiliary input method and auxiliary input system | |
CN108173742A (en) | A kind of image processing method, device | |
KR101123370B1 (en) | service method and apparatus for object-based contents for portable device | |
CN111314204A (en) | Interaction method, device, terminal and storage medium | |
CN104679879A (en) | Intelligent storage method and intelligent storage device for photo | |
JP2021520163A (en) | Shooting method and terminal device | |
US20160291824A1 (en) | Image Grouping with Audio Commentaries System and Method | |
CN107800792A (en) | The method that a kind of android pictures or video are uploaded onto the server | |
CN111478874A (en) | Picture live broadcast system based on cloud platform | |
TWI465929B (en) | Distributing collaborative computer editing system | |
CN103003837B (en) | Image processing system, image processing terminal and image processing method | |
WO2015183735A1 (en) | Methods and systems for image based searching | |
CN103825864A (en) | Data acquisition and transmission method and user equipment | |
JP7080336B2 (en) | Methods and systems for sharing items in media content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180313 |