hi all ,
i am trying to download an image from the webserver to sd card of my device the downloading is happening but i am unable to see the image..
plz have a look on them code
code
FileWriter filewriter = new FileWriter("/sdcard/arun.gif");
Log.i("file status", "file created");
URL rurl = new URL("http://www.vaderradar.se/create_images.php?height=400&width=400&id=0");
URLConnection con= rurl.openConnection();
con.connect();
is=con.getInputStream();
// creating a file and opening a connection to the web server
while((b=is.read())!=-1)
{
filewriter.write((char)b);
}
//writting to the file
Log.i("writing"," done");
is.close();
filewriter.close();
// closing the file and webconnection
plz tell me what is wrong here
regards
Arun gupta



