-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Photo file is 0 bytes in saveToFile().whenDone #234
Labels
Comments
Yes, thanks, I am seeing the problem after I made similar changes in upgrading to 2.2. |
Any thoughts on this? I've had to revert to 1.5. |
Can you say more about why it's useless? It looks like this function was
added explicitly for the same use case I have, namely, knowing when writing
to a file has completed and the file is ready to be used by other code.
See #24
…On Sun, Apr 15, 2018 at 1:10 AM, fyzs-n9001 ***@***.***> wrote:
The truth is that it's useless to call 'whenDone' or 'whenAvailable' when
you want to saveToFile.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#234 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACKU8oXnkyUsV6qhdi4GnCknQPFjcq5Nks5towB8gaJpZM4S8TGd>
.
|
The problem was on my side. I was calling stop() before whenDone() completed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recently upgraded from version 1.5 to 2.2. My project is in Java and everything had been working fine for months. After the upgrade and the requisite syntax changes (because the library is now Kotlin), I am observing that in saveToFile().whenDone(), the file size of the saved photo is 0 bytes, as if it hasn't been written yet.
I had been calling whenAvailable() but I can't get that to compile in 2.2. Do I have to change anything else?
This is my initialization code
The text was updated successfully, but these errors were encountered: