I m working on Image processing.I wish to transfer images from one location to another.I used DataOutputStream .It works fine for .bmp but .jpg and .gif gives"error reading file" when I open trasfered image. How I can pass url(eg.e:\vaibhav\test.bmp)in string form so that I can tranfer the image to the desired folder through outputstream.It works fine for the same folder. please it is urgent cos I m not finding remedy since a week. More queries on this topic follows So gurus please be ready.Any good book for "Image processing In Java"? Thanks.