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...
link: What I think @Erel meant was, if you type MultipartFileData into the forum search box then...
link: Because I did not know that MultipartFileData associates with HTTP or - better spoken - OkHttp:cool:...
link: .b4x.com/android/forum/pages/results/?query=MultipartFileData
113671...
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....
link: adds the image, then I use MultipartFileData, if not, only I use HttpJob.postString
If I use HttpJob...
B4A Library OkHttp - Replaces the Http library - Erel    
Mar 14, 2018   
(22 reactions) 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...
link: As HttpJob
j.Initialize("j", Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "file...
link:
j.Initialize("j", Me)
Dim fd As MultipartFileData
fd.Initialize
fd.KeyName = "file...
B4A Question How to Sent json string as multipartfiledata - gvoulg    
Feb 6, 2018Hi
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...
link: The keyname depends on the server.
The ContentType should probably be application/json...
B4A Example [B4X] PocketBase - Storage - Alexander Stolte    
Feb 10, 2025   
(6 reactions) a file.
CreateMultipartFileData creates a MultipartFileData object for file uploads, automatically...(Pocketbase_Functions.GetFileExt("TestFile.mp4"))
MultipartFileData
This is the object that is passed to..., “test.jpg”, “Task_Image”,“”)) function.
Dim FileData As MultipartFileData
FileData.Initialize....CreateMultipartFileData(File.DirAssets,"test.jpg","Task_Image",""))
lst_Files.Add(Pocketbase_Functions.CreateMultipartFileData(File.DirAssets,"test2.jpg"...
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...
link: Dim j As HttpJob
j.Initialize("", Me)
Dim fd As MultipartFileData...
B4A Code Snippet [B4X] Post multipart requests / file uploads with progress - Erel    
Apr 27, 2021   
(14 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...
B4A Library [B4X] PocketBase - Open Source backend in 1 file - Alexander Stolte    
Mar 17, 2025   
(20 reactions)
ConvertFile2Binary (Dir As String, FileName As String) As Byte()
CreateMultipartFileData (Dir As String, FileName As String, KeyName As String, ContentType As String) As MultipartFileData
If you leave... (CollectionName As String, RecordId As String, FileData As MultipartFileData) As ResumableSub
Single file upload
<code>
Dim FileData As MultipartFileData
FileData.Initialize
FileData.Dir = File...
FileDate - List of MultipartFileData
<code>
Dim lst_Files As List : lst_Files.Initialize...
B4A Question HttpJob.PostMultipart - bridge1    
Feb 22, 2023Would there be a possibility that in the MultipartFileData class it is possible to accept a stream of bytes instead of a file?
Thanks....
Spanish PostMultipart y https - GeoT (first post)    
Mar 4, 2024Hola 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....
Page: 1  
2  
3  
4  
5  
6  
7