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 Trying Code 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();