Hi ,
Please visit this link
http://androidsnips.blogspot.com/2010/08/download-from-internet-and-save-to-sd.html

If any Problem,let me know.


On Aug 26, 6:16 pm, Rammi <[email protected]> wrote:
> 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(), "Signs of Life");
>                                         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();

-- 
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

Reply via email to