Currently I am trying to download an Image from a Webserver and retain the Exif data which are attached to the picture. Downloading the image itself is no problem at all. Example Code is like this (without any try/catch or AsyncTask related code to make it readable)
final HttpGet request = new HttpGet("IMAGE_URL");
final AndroidHttpClient httpClient = AndroidHttpClient.newInstance("Android");
HttpResponse response = httpClient.execute(request);
InputStream inputStream = inputStream = response.getEntity().getContent();
Now I simply would call the BitmapFactory to create a Bitmap object from the Inputstream like this
BitmapFactory.decodeStream(inputStream);
First I thought the BitmapFactory is the culprit and tried to read the Exif data from a file created from the inputstream. The ExifInterface can't get the Exif data and opened on Windows the saved image has no Exif at all.