B4A Question A question about job.GetInputStream - jkhazraji (first post)    Mar 11, 2021 It took me few minutes to realize that if I can skip the last part then I could skip the first.... B4A Question HttpJob returns empty InputStream from Job.GetInputStream - ostau (first post)    Feb 4, 2016   (1 reaction) Thansk for the advice. Done. :)... B4A Code Snippet Download image or file from a website - Erel    Jun 15, 2017   (11 reactions) ) Sub JobDone(job As HttpJob) If job.Success Then Dim out As OutputStream = File.OpenOutput(File.DirRootExternal, "filename.dat", False) File.Copy2(job.GetInputStream, out....SetBackgroundImage(job.GetBitmap) Else Log("Error: " & job.ErrorMessage) End If job...: Download an online image and show it as the activity background. Dim job As HttpJob job.Initialize("j", Me) job.Download(<link>) Sub JobDone(job As HttpJob) If job.Success Then... B4J Question Creating a proxy - somed3v3loper    Feb 9, 2016 Hello all , I asked this question in a server thread but as per Erel's request I am reposting the question as a new thread . Can a server download file from internet and send it to client ? I am thinking of making a small proxy . What I tried is getting url from client in a handler class then download the file (http job) when job finishes I use File.Copy2(job.GetInputStream , ...) to write to resp.OutputStream . But as you can see Sub Handle(req As ServletRequest, resp As ServletResponse... B4A Question Download and open a file from a password protected folder? - tsteward    Jan 26, 2025 As HttpJob) If job.Success Then ' Save the downloaded file Dim out As OutputStream = File.OpenOutput(xui.DefaultFolder, fname, False) File.Copy2(job.GetInputStream, out... This is what I have created so far but I get an error "Forbidden You don't have permission... DownloadFile(url As String) Dim job As HttpJob job.Initialize("DownloadJob", Me) job.Username = "xxxxx" ' Replace with your actual username job.Password = "... B4A Question Need help getting bytes via http from old gopro camera - jimseng (first post)    Jul 18, 2024 , "gopro.dat",False) Dim inps As InputStream 'what should inps be if not inputstream inps = Job.GetInputStream '<----------------------------------why is this empty File.Copy2(Job.GetInputStream, out) out.Close Job.Release Log(File.Size... byteconverter, however one of the reasons I am struggling is I don't understand how to use job.getinputstream. Your explanation via a file works but how do I do it without saving to a file. Hopefully... B4A Question PDF Viewer From URL - nicieri (first post)    Jul 15, 2024 Then PDFView1.fromStream(job.GetInputStream) job.GetInputStream.Close ' Asegúrate que esta es la manera correcta de manejar el cierre...I may be referring to the pdfium function to load from a stream, but I can't get it to work. Dim url As String = cdata.Get("pdfUrl") Dim job As HttpJob job.Initialize("DownloadPDF", Me) job... B4A Question android.graphics.Bitmap.setDensity(int) - Scantech    May 29, 2024 the job.GetInputStream. it loads perfectly fine....).WriteToStream(Out, 50, "PNG") Out.Close Out of 200 png few of them gets this error...I use this code to load .png MediaManager.SetMediaWithExtra(pnlCLV.GetView(x).GetView(0), GetIconLink, "image/*", CreateMap(MediaManager.REQUEST_CALLBACK: Me)) In SMM_MediaReady i do this Dim Out As OutputStream Out = File.OpenOutput(File.DirInternal... B4J Question (Solved) OData query, reading large json files *out of memory* - Erel (first post)    Nov 1, 2022 This code doesn't parse the string. It simply writes it to a file. My guess is that you are calling Job.GetString for no reason. Copy the file with File.Copy2 and Job.GetInputStream... B4A Tutorial [B4X] OkHttpUtils2 with Wait For - Erel    Dec 25, 2025   (59 reactions)   tags: image, wait, Download, Http MySql, Wait For, ws ) Wait For (j) JobDone(j As HttpJob) If j.Success Then Dim out As OutputStream = File.OpenOutput(File.DirInternal, "filename.dat", False) File.Copy2(j.GetInputStream, out... As HttpJob) If j.Success Then Log(j.GetString) End If j.Release Example of downloading a quote from....GetString) End If j.Release 'second request Dim j As HttpJob 'redim and initialize...) JobDone(j As HttpJob) If j.Success Then Log(j.GetString) End If j.Release End Sub... Page: 1   2   3   4   5   6   7   |