¾ÛÅøÁî
46.¢½.168.138
46.¢½.168.129
46.¢½.168.161
46.¢½.168.136
46.¢½.168.145
46.¢½.168.162
46.¢½.168.144
46.¢½.168.140
115.¢½.135.198
46.¢½.168.139
 
°Ô½Ã¹° 223°Ç
   
»çÁø¾÷·Îµå ¼Ò½º Á» ºÁÁÖ¼¼¿ä
±Û¾´ÀÌ : ¹ÚÁ¤Çö                   ³¯Â¥ : 2012-02-07 (È­) 11:19 Á¶È¸ : 4657
¿©·¯ ¼Ò½º¸¦ Âü°íÇÏ¿© ¸¸µé¾ú´Âµ¥ ¼­¹ö¾÷·Îµå ºÎºÐ¿¡¼­ ¿¡·¯°¡ ¹ß»ýÇÕ´Ï´Ù. ¹¹°¡ ¹®Á¦ÀÎÁö Á» ºÁÁÖ¼¼¿ä
 
//À̹ÌÁö ÀúÀå
Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length);
String fileLoute =Environment.getExternalStorageDirectory().getAbsolutePath() + "/DCIM/Camera/"; 
File saveFile=new File(fileLoute + "image01.jpg");
OutputStream out=null;
saveFile.createNewFile();
out=new FileOutputStream(saveFile);
bitmap.compress(CompressFormat.JPEG,70,out);
                           
//¼­¹ö¾÷·Îµå
File file=new File(fileLoute + "image01.jpg");                       
HttpClient client = new DefaultHttpClient();
String postURL="http://111.124.245.27/test.php";
HttpPost post = new HttpPost(postURL);
FileBody bin = new FileBody(file);
MultipartEntity reqEntity=new MultipartEntity(HttpMultipartMode.BROWSER_COMPATIBLE);
reqEntity.addPart("myFile",bin);
post.setEntity(reqEntity);

 
//PHP SERVER
 $target_path="./";
 $tmp_img=explode(".",$_FILES['uploadedfile']['name']);
 $img_name=$tmp_img[0] . "." . $tmp_img[1];
 $target_path=$target_path . basename($img_name);
 
 if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],$target_path)){
  echo "The file has been uploaded";
 }else{
  echo $img_name;
  echo "There was an error";
 }
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)




¹ÚÁ¤Çö ´ÔÀÇ Q&A ÃÖ½Å±Û [´õº¸±â]


 
±èº´ÁÖ 2012-02-07 (È­) 17:55
¿¡·¯ ·Î±×ÄÏ ºÎºÐÀ» º¸°í½ÍÀºµ¥¿ä.
   

°Ô½Ã¹° 223°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
223  ¾Èµå·ÎÀ̵å GridView¿¡ À̹ÌÁö ºÒ·¯¿À±â +1 ÃÖ¼öÀÎ 04-16 7063
222  Ä«Ä«¿À¸µÅ© API¸¦ ÀÌ¿ëÇØ Ä£±¸¸¦ ÃÊ´ëÇÒ¶§ ? ÀÌÀ翵 11-15 6921
221  ¾Èµå·ÎÀÌµå ¾Û ½É»ç±â°£ÀÌ ¿Ö ÀÌ·¸°Ô ±æ¾î Á³³ª¿ä? ÀüºÀ±â 03-19 7214
220  ºÎ»ê ¾Èµå·ÎÀÌµå ½ºÅ͵ð ¸ðÁý °ü·ÃÇÏ¿© ¹®Àǵ帳´Ï´Ù +2 ÀÌÀç¿ø 02-26 6247
219  ºÎ»ê ½ºÅ͵ð...14±â´Â ¾ðÁ¦ÂêÀ½ ¸ðÁý Çϳª¿ä?? +1 ±è¼ÒÇö 02-01 3893
218  2014³â °æ³²,°æºÏ Áö¹æ¿¡¼­ ÇÏ´Â ¾Û °³¹ß°ú ¾Û µðÀÚÀÎ ±³À° °úÁ¤ Á» ¾Ë·ÁÁÖ¼¼¿ä À¯ÇöÀç 01-02 3763
217  ¾Èµå·ÎÀÌµå ½ºÅ͵𿡠°¡ÀÔÇÏ°í ½ÍÀº ÇлýÀÔ´Ï´Ù. ÀÌÀåÈ£ 12-31 3783
216  ¾Èµå·ÎÀ̵å ÇÁ·¹ÀÓ¿öÅ© °ü·ÃÇÏ¿© Áú¹®µå¸³´Ï´Ù. Çѱ¤Èñ 10-01 3900
215  ¾È³çÇϼ¼¿ä ^^ À̹ÌÁö ÇÊÅÍ È¿°ú °ü·Ã Áú¹®µå¸³´Ï´Ù. ±Çöȣ 07-10 4427
214     ¾È³çÇϼ¼¿ä ^^ À̹ÌÁö ÇÊÅÍ È¿°ú °ü·Ã Áú¹®µå¸³´Ï´Ù. ±èº´ÁÖ 08-02 5104
213  ½º¸¶Æ®Æù µð¹ÙÀ̽º Á¦¾î¹æ¹ý.. Á¤¹Î½Ä 06-20 3674
212     ½º¸¶Æ®Æù µð¹ÙÀ̽º Á¦¾î¹æ¹ý.. ±èº´ÁÖ 08-02 5116
211  http ÆÄ½Ì °í¼ö´ÔµéÀÇ Á¶¾ðÀÌ ÇÊ¿äÇØ¿ä !! ¤Ð¤Ð 俵Áø 06-10 3854
210     http ÆÄ½Ì °í¼ö´ÔµéÀÇ Á¶¾ðÀÌ ÇÊ¿äÇØ¿ä !! ¤Ð¤Ð ±Ç´ë°Ç 06-20 4745
209        http ÆÄ½Ì °í¼ö´ÔµéÀÇ Á¶¾ðÀÌ ÇÊ¿äÇØ¿ä !! ¤Ð¤Ð ±èº´ÁÖ 08-02 4840
208  ±¸±Û Ç÷¹ÀÌ ¸¶ÄÏ¿¡ µî·ÏµÈ ¾Û ¼³¸í¹® ¼öÁ¤½Ã ¾Û ·©Å·¿¡ ¿µÇâÀÌ Àִٴµ¥¿ä? ÀÌÀ翵 05-29 4985
207  ÀÌŬ¸³½º¿¡¼­ ¾Û°³¹ß½Ã index.html ¼Ò½º ¹Ù·Î º¸´Â ¹æ¹ýÀÌ ¾î¶»°Ô µÇ³ª¿ä? ±èÀϼö 05-01 4085
206  ¾×ƼºñƼ°£ ¼ÒÄÏ¿¬°áÀ¯Áö Áú¹®ÀÌ¿ä +2 ¼Ûº¸±Ù 01-29 10080
205  ¾Èµå·ÎÀ̵å 1pxÀ» mm·Î ȯ»êÇÏ´Â ¹®Á¦ÀÔ´Ï´Ù +1 ÀÌÅÂÇü 12-18 5573
204  À¯·á¾ÛÀ» ¿Ã·È´Âµ¥ °áÁ¦¿¡¼­ ¿¡·¯°¡ ³ª¼­ ¾Æ¹«µµ ¾È¹Þ¾Ò³×¿ä. ¤Ì¤Ì ÀÌ°Å ¿Ö ÀÌ·¸ÁÒ?? µµ¿ÍÁÖ¼¼¿ä. ¤Ð¤Ð +1 ±èÅÂÇü 12-13 4861
 1  2  3  4  5  6  7  8  9  10  11  12  
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.