CURLSMBS FTP AND exif data

I’m trying to move an image from the mobileimageviewer to ftp and losing my exif location data.

dim d as new CURLSMBS
dim JPEGData as string = MobileImageViewer.Image.ToData(Picture.Formats.JPEG, Picture.QualityHigh)
d.OptionUpload=true
d.Inputdata = JPEGData

Is there another option I need to set to move the location exif data?

I don’t use Xojo Mobile but if MobileImageViewer.Image is a Xojo Picture then the EXIF data has already been lost.

You need the original content of the file before it was put into MobileImageViewer.

1 Like

Isn’t this code removing your exif?

Edit: I see that @Jeremie_L said the same in another of your topics.

1 Like

You need to get it earlier. When you assign the picture to the WebImageViewer, the EXIF may already be gone.

1 Like

Ok i’m getting the picture from the image picker and I get a picture file. What do I need to save it as to send it to FTP and maintain my exif data. I can do it fine in my windows app but have the image stored in a file there so it works fine using d.OpenMTInputFile(f). I initially thought this was not sending exif data either, but it seems to be fine.

What image picker exactly?
If you upload a file, can you check if the file has EXIF data?

The xojo imagepicker control called when I press a button
ImagePIcker1.source = MobileimagePicker.Source.Photos.
The selected picture is then saved as the image of a mobileimageviewer on the selected event

THe photo in the library does have exif data