开发者

Android How to send my file from SD card to 192.168.1.100:8080?

开发者 https://www.devze.com 2023-04-02 20:13 出处:网络
How to send my file开发者_StackOverflow社区 from SD card to 192.168.1.100:8080? To show in my browser?

How to send my file开发者_StackOverflow社区 from SD card to 192.168.1.100:8080? To show in my browser?

my file is: sd_card/aaa.jpg

i can send a jpg file what is on my assets folder:

host = getLocalIpAddress();

                        send("<head>" +
                                "<link rel=\"stylesheet\" type=\"text/css\" " +
                                "href=\""+host+"/css.css\" />" +

                                "<meta http-equiv=\"Content-type\" value=\"text/html; charset=ISO-8859-2\">Második oldal " +
                                "<img src='"+host+"/icon.png'>" +
                                "<br><a href='/takepicture'>take picture</a><div id='asd' style='clear:left'>0</div> "+
                                js+"</head>");

but how can send a file from SD_CARD not from ASSETS?

Thanks, Leslie


Finally I made it!!!

source codes here:

http://code.google.com/p/android-simple-httpserver-camerapicture/

0

精彩评论

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