Hello everyone, I could really use some help with this... I have this HTTP code snippet which gives me back a bitmap from the internet. ( I set a preview also )
myFileUrl =null; String URL = http://www.whatever.com/picture.png; try { myFileUrl = new URL(URL); HttpURLConnection conn=(HttpURLConnection)myFileUrl.openConnection(); conn.setDoInput(true); conn.connect(); InputStream is = conn.getInputStream(); picture = BitmapFactory.decodeStream(is); picPreview.setImageBitmap(picture); } catch (IOException e) { } My question is.. I want to send this picture file to my database.. but aparentlly I can't send the bitmap, because it's not a file.. so I have to first convert this bitmap into a file, save it in my SD and then send it as a file. Does anyone know how to save the bitmap into a file in my device? Ideally, the name of the file would be (in my example) picture.png ..or whatever was the name of the file already. After I would like to send the image to the server.. but that's a whole other story... Thanks in advance for your help. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

