A Alessandra Pellegri Active Member Licensed User Longtime User Aug 17, 2016 #1 When I call ContentChooser I can pick images from the phone as well from the cloud. How could I manage the pictures coming from Gdrive ? Is there a way to make a copy of them in the phone ? Since I see them in the preview area of contentchooser I think that it already does a copy of them in cache memory. May I read them from there ? Thank you
When I call ContentChooser I can pick images from the phone as well from the cloud. How could I manage the pictures coming from Gdrive ? Is there a way to make a copy of them in the phone ? Since I see them in the preview area of contentchooser I think that it already does a copy of them in cache memory. May I read them from there ? Thank you
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2016 #2 It doesn't matter where the image comes from. You can copy it with File.Copy2: Code: Copy Sub cc_Result (Success As Boolean, Dir As String, FileName As String) If Success Then Dim out As OutputStream = File.OpenOutput(...) File.Copy2(File.OpenInput(Dir, FileName), out) out.Close End If End Sub Upvote 0
It doesn't matter where the image comes from. You can copy it with File.Copy2: Code: Copy Sub cc_Result (Success As Boolean, Dir As String, FileName As String) If Success Then Dim out As OutputStream = File.OpenOutput(...) File.Copy2(File.OpenInput(Dir, FileName), out) out.Close End If End Sub
A Alessandra Pellegri Active Member Licensed User Longtime User Aug 18, 2016 #3 Ok, thank you. It works!! Upvote 0