Well... Now I have a related problem.
The photo loads inside ImageView ok, but I have to upload it to a website. The problem is when I download the photo it's rotated again. I used a WebService and the uploaded file still has Exif data.
First, I used (after httputils2):
Dim BMFoto As Bitmap
BMFoto.Initialize3(Job.GetBitmap)
imgPhoto.Bitmap = BMFoto ' imgPhoto is my ImageView
This worked but the image is rotated. Since ExifData can only be initializated through a saved bitmap, I tried to save the bitmap contained in BMFoto:
Dim out As OutputStream
Dim dir As String = File.DirRootExternal
Dim fname As String = "rotate.jpg"
out = File.OpenOutput(dir,fname,False)
BMFoto.WriteToStream(out,100,"JPEG")
The problem is, the new file named "rotate.jpg" has lost all Exif data
Any idea how can I fix this?
Thanks again!