Quantcast
Channel: User Sefran - Stack Overflow
Viewing all articles
Browse latest Browse all 36

Avoiding to save image duplicates

$
0
0

My app allow users to choose imgs and associate them to some text.

When the user choose an image from the photo roll, I copy it in the Documents directory.

As the user should choose the same img associating it to the same text or another one, how could I avoid to save duplicates of the same image?

I can't simply use fileExistsAtPath, because the name is generated on the fly.

Is there a way to know if the user is choosing an image already saved in the documents dir?


Viewing all articles
Browse latest Browse all 36

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>