安卓code范围内访问的网站,并检索生成的图像 [英] access website within android code and retrieve a generated image

查看:112
本文介绍了安卓code范围内访问的网站,并检索生成的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这说明是很难的单词。基本上,我想知道是否可以访问Android电子编码内部网站,而实际发送用户该网站。

我想要做的是使用一个免费的网站生成你上传图片后随机照片。我希望用户能够自己选择的图像上传到网站,我在code猜测某种方式使该网站生成一个编辑的图像,并检索其放回为进一步利用该应用程序。

我知道这听起​​来真是可笑,但我只是想知道这是否是我尝试写code之前,在所有可能的。谢谢!


解决方案

您需要做的第一件事是做你的形象的一个HTTP POST上传,如下所示:

<一个href=\"http://vikaskanani.word$p$pss.com/2011/01/11/android-upload-image-or-file-using-http-post-multi-part/\"相对=nofollow>上传

然后就可以在服务器端做你的处理 - 你没有指定你打算在服务器端使用的平台,但在PHP你可能想看看这个:

HTTP POST文件上传

最后,你要检索您在服务器端提供这种方式所得到的图像:

从网址

This description was very hard to word. Basically I want to know if it is possible to access a website inside Android coding without actually sending the user to that website.

What I want to do is use a free website that generates a random pic after you upload your picture to it. I want the user to be able to upload their selected image to the website, and I guess somehow in code make that website generate an edited image and retrieve it back into the application for further use.

I know this sounds really ridiculous but I just wanted to know if this was at all possible before I try writing the code. Thanks!

解决方案

The first thing you need to do is do an HTTP post upload of your image, as outlined here:

Upload image

Then you can do your processing on the server side - you didn't specify which platform you are planning to use on the server side, but in PHP you might want to look at this:

HTTP POST file upload

Finally, you'll want to retrieve the resultant image you made available on the server side this way:

Retrieve image from an URL

这篇关于安卓code范围内访问的网站,并检索生成的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆