开发者

Issue in uploading image to a local host in android application

开发者 https://www.devze.com 2023-04-11 14:29 出处:网络
I am developing an android application, in which I have to upload image to a local host, I have created a database, also put the php file,,,,,

I am developing an android application, in which I have to upload image to a local host, I have created a database, also put the php file,,,,,

I did r&am开发者_如何学Pythonp;d.and tried the way in this url uploading files in android using emulator and localsystem

But did not get success..... My localhost url is http://localhost/connect1.php

Can anyone guide me how to upload image to a local host?


The URL http://localhost is only valid on your computer. For Android to find the server, it will need a real url.

For development, if you don't have an official URL yet, you can put your phone on your local wireless network and use the IP address of your local webserver. To get the ip address run ipconfig (windows) or ifconfig (linux). So your url will be something like http://10.23.234.12/connect1.php

0

精彩评论

暂无评论...
验证码 换一张
取 消