Android Question Php download link to initiate from android

GudEvil

Member
Licensed User
Longtime User
I have a php link . that event is up when user clicks on that link.
It creats pdf n downloads to local computer...

I had to do same from android.

(1) how can I initiate that php link n save that pdf in android local storage
if it automatically saved to local storage on android it will be great..
(2)even if I get persistent url of that pdf I can download in android using http2utils, download()
but how do I get that persistent link
 

DonManfred

Expert
Licensed User
Longtime User
I had to do same from android.
Call the url to your php with httputils. If the php returns a pdf then you can save the job response in JobDone to your local storage.

Maybe i misunderstood your issue as i dont understand what exactly you want to archieve.
Can you post the php link?

PS: Have a look at this example.
 
Upvote 0

GudEvil

Member
Licensed User
Longtime User
here is the url
this uses mpdf n creates pdf on php side n download target pdf file...


I might use job.download(url)

question is how to save that pdf??
in job success

Dim out As OutputStream = File.OpenOutput(File.DirRootExternal, "filename.pdf", False)
File.Copy2(job.GetInputStream, out)
out.Close '<------ very important



am i correct???
I will try this in next few hrs
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…