J jesseiz Member Licensed User Longtime User Sep 29, 2014 #1 Hey, How do i download and open any type of file? B4X: encodedLink = su.EncodeUrl(selectedfile,"UTF8") Dim job As HttpJob job.Initialize("DownloadFile", Me) job.Download(Link&"/files/" & encodedLink & "") This is what i have right now but how do i open the file after it has finished? Gr.jesse
Hey, How do i download and open any type of file? B4X: encodedLink = su.EncodeUrl(selectedfile,"UTF8") Dim job As HttpJob job.Initialize("DownloadFile", Me) job.Download(Link&"/files/" & encodedLink & "") This is what i have right now but how do i open the file after it has finished? Gr.jesse
DonManfred Expert Licensed User Longtime User Sep 29, 2014 #2 B4X: Sub JobDone(Job As HttpJob) ProgressDialogHide If Job.Success Then Log("JobName: "&Job.JobName) Else ToastMessageShow("Error: " & Job.ErrorMessage, True) End If Job.Release End Sub Upvote 0
B4X: Sub JobDone(Job As HttpJob) ProgressDialogHide If Job.Success Then Log("JobName: "&Job.JobName) Else ToastMessageShow("Error: " & Job.ErrorMessage, True) End If Job.Release End Sub
J jesseiz Member Licensed User Longtime User Sep 29, 2014 #3 Hey, That's not what i meant. I know how JobDone works but i don't know how to open a file like .3gp or .mp3 or .jpg but thanks! Gr.Jesse Upvote 0
Hey, That's not what i meant. I know how JobDone works but i don't know how to open a file like .3gp or .mp3 or .jpg but thanks! Gr.Jesse
DonManfred Expert Licensed User Longtime User Sep 29, 2014 #4 Search for examples on Play MP3 files Play Video files Show pictures. There are hundrets of examples if you use the forumsearch Upvote 0
Search for examples on Play MP3 files Play Video files Show pictures. There are hundrets of examples if you use the forumsearch
J jesseiz Member Licensed User Longtime User Sep 29, 2014 #5 Yes , I searched for it but i can't seem to find exactly what i need. What i want is to download a file from a URL and then save and open that file . Do you know how to do that or have you found a post where they explain this? Thanks! Gr.Jesse Upvote 0
Yes , I searched for it but i can't seem to find exactly what i need. What i want is to download a file from a URL and then save and open that file . Do you know how to do that or have you found a post where they explain this? Thanks! Gr.Jesse
DonManfred Expert Licensed User Longtime User Sep 29, 2014 #6 jesseiz said: o you know how to do that or have you found a post where they explain this? Click to expand... See this example. There you see how to save an file from jobdone-sub Upvote 0
jesseiz said: o you know how to do that or have you found a post where they explain this? Click to expand... See this example. There you see how to save an file from jobdone-sub
ibra939 Active Member Licensed User Longtime User Sep 29, 2014 #7 DonManfred said: See this example. There you see how to save an file from jobdone-sub Click to expand... this example work in .mp3 file .......or i but link directly ? Upvote 0
DonManfred said: See this example. There you see how to save an file from jobdone-sub Click to expand... this example work in .mp3 file .......or i but link directly ?
DonManfred Expert Licensed User Longtime User Sep 29, 2014 #8 ibra939 said: this example work in .mp3 file .......or i but link directly ? Click to expand... See the example. It should work with mp4, jpg, whatever... Just chang the needed code for them... Upvote 0
ibra939 said: this example work in .mp3 file .......or i but link directly ? Click to expand... See the example. It should work with mp4, jpg, whatever... Just chang the needed code for them...
ibra939 Active Member Licensed User Longtime User Sep 29, 2014 #9 DonManfred said: See the example. It should work with mp4, jpg, whatever... Just chang the needed code for them... Click to expand... because iam searching downloading code as this thread http://www.b4x.com/android/forum/threads/button-with-html-code.45095/#post-277190 Upvote 0
DonManfred said: See the example. It should work with mp4, jpg, whatever... Just chang the needed code for them... Click to expand... because iam searching downloading code as this thread http://www.b4x.com/android/forum/threads/button-with-html-code.45095/#post-277190
J jesseiz Member Licensed User Longtime User Sep 29, 2014 #10 Hey, Thanks exactly what i needed! Gr.jesse Upvote 0