Hi I am developing app which downloads the images from the web site and then i am displaying them as slide show. Now I want save the downloaded images into my SD card please help me.
My current attempt is:
File imageFileFolder = new File(Environment
               .getExternalStorageDirectory(), "test");
imageFileFolder.mkdir();
File imageFileName = new File(imageFileFolder, date
               + pBean.getAuthorName());
InputStream fis = pBean.getInputStream();
byte[] data = new byte[fis.available()];
fis.read(data);
FileOutputStream fos = new FileOutputStream(imageFileName);
fos.write(data);
fos.close();
fis.close();
 
     
     
     
    