topendialog

Delphi - How to get Directory with OpenDialog using iPhone as a picture source

爱⌒轻易说出口 提交于 2019-12-02 11:37:51
I have a Delphi app (D2010) which lets the user select a JPG file via an OpenDialog. When I select the file from a normal Windows directory, my TOpenDialog.Filename contains the FULL PATH to the file, and my code works. The issue I am running into is that the user will often be copying the file phone a cell phone. When the user plugs in the phone, runs my code, the TOpenDialog Shows the files on the cell phone, the user picks the proper jpg file, but the TOenDialog.Filename does NOT contain the path to the file (only the name of the file), so my program cannot find the file. For both CAMERAS