B4A Question MultipartFileData - prokli (first post)    May 20, 2021   (1 reaction) Indeed!
But unfortunately I had ignored the headline where you can see the reference to "OkHttp... B4A Question MultipartFileData CharSet - Erel (first post)    May 6, 2021
Not sure which charset uses by standard the postString and Multipart.
UTF8 in both cases.... B4A Library OkHttp - Replaces the Http library - Erel    Mar 14, 2018   (22 reactions)   tags: Webservices is attached. It adds support for multipart requests.
Example:
Dim j As HttpJob
j.Initialize("j", Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "file"
fd.Dir = File.DirAssets
fd.FileName = "image.png"
fd.ContentType = "image/png"
j.PostMultipart... B4A Question How to Sent json string as multipartfiledata - gvoulg    Feb 6, 2018 Hi
I want to sent a json string saved in a file (json.txt) , as multipartfiledata with Postmultipart process.
I have seen this code snippet for image file
Dim j As HttpJob
j.Initialize("j", Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "file"
fd.Dir = File.DirAssets
fd.FileName = "image.png"
fd.ContentType = "image/png"
j.PostMultipart... B4A Question How send header parameters in PostMultipart - scsjc    Aug 6, 2019 .Initialize("", Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "file"
fd.Dir = File.DirInternal
fd.FileName = "file.jpg... B4A Code Snippet [B4X] Post multipart requests / file uploads with progress - Erel    Apr 27, 2021   (11 reactions) As MultipartFileData In Files empty = MultipartStartSection (stream, empty) Dim...("multipart/form-data; boundary=" & boundary) req.SetContentEncoding("UTF8"...This code will work in B4A and B4J. It will not work in B4i. Public Sub CreateMultipartJob(Link As String, NameValues As Map, Files As List) As HttpJob Dim boundary As String = "---------------------------1461124740692" TempCounter = TempCounter + 1 Dim TempFileName... Spanish PostMultipart y https - GeoT (first post)    Mar 4, 2024 Hola msucho. Entiendo. Entonces prueba a añadir Dim mp As MultipartFileData ... mp.ContentType = "image/png" 'o el tipo que sea o bien cambia a mp.KeyName = "file" 'con los corchetes a ver qué pasa.... B4A Question HttpJob.PostMultipart - bridge1    Feb 22, 2023 Would there be a possibility that in the MultipartFileData class it is possible to accept a stream of bytes instead of a file? Thanks.... B4J Question PostMultipart - Handle on B4J Server - Harris    Mar 6, 2019 ... Dim fd As MultipartFileData fd.Initialize fd.KeyName = "file" fd.Dir... As ServletRequest, resp As ServletResponse) Dim data As Map Dim fileName As String Dim tmpFileName As String Try data = req.GetMultipartData( downloadfolder, MaxSize... Try Dim filePart As Part = data.Get("upl") If filePart...I have larger mp4 files to upload from devices to my server. I have been using "PostFile"... B4A Question post json error - Erel (first post)    Dec 14, 2020 Try to send the file content instead of the file name and remove the MultipartFileData.... Page: 1   2   3   4   5   6   7   |