B4J Question Multipart Data - Daestrum (first post)    Sep 10, 2021   (2 reactions) 1, For code just type and without the spaces, around the code you want to show.
2, try (it looks like Part is defined as a type/class somewhere)
For j=0 To piclist.size-1
Dim current as JavaObject = piclist.Get(j)
Log(current.GetField(n))
Log(current.GetField(fn))
Log(current.GetField(ct))
Log( B4A Code Snippet [B4X] Post multipart requests / file uploads with progress - Erel    Apr 27, 2021   (11 reactions) empty)
Dim s As String = _
$"--${boundary}
Content-Disposition: form-data; name="${fd.KeyName}"; filename="${fd.FileName}"
Content-Type: ${fd.ContentType}
"$
b = s.Replace(CRLF, eol).GetBytes("UTF8")
stream.WriteBytes(b, 0, b.Length)
Dim in As InputSt B4J Question SMTP Calendar invite - prajinpraveen    Jul 02, 2024   (1 reaction) addRecipient(Message.RecipientType.TO, new InternetAddress(email)); } Multipart multipart = new MimeMultipart("alternative"); BodyPart messageBodyPart = buildCalendarPart(string); multipart.addBodyPart(messageBodyPart); message.setContent(multipart); B4A Question Multiple entries in POST? - sorex (first post)    Dec 27, 2016 if you use .postString you just use dlj.postString(url,"username="& userhash &"&password="& passhash) multipart is something else and not needed for what you want to do. B4J Code Snippet How to send file using Telegram bot API with multipart/form-data - Gandalf    Feb 01, 2023   (6 reactions) I got it working finally. So, for sending files to Telegram bot without using curl, you need to do the following:
1. Download Erel's sample project of Post multipart requests / file uploads with progress
2. Slightly modify it as shown below (pay attention to my comments in code):
Private Sub Button B4A Question Request URI Too Long - DonManfred (first post)    May 08, 2023   (1 reaction) Multipart Fileupload b4A->PHP B4A Question Help!!! PostMultipart Video Files to server using WaitFor and Php - Erel (first post)    Sep 02, 2017 Multipart messages are text messages. This means that the binary data is encoded as a base 64 string. The actual size will be about 33% larger. Does it work properly with small files? Bug? OkHttpUtils2: Multipart and Job.GetString Bug: FileNotFoundException - Erel (first post)    Mar 02, 2018   (1 reaction) No bug here. You are not using OkHttpUtils2 correctly.
OkHttpUtils2 with Wait For
Use Wait For as explained above or handle the JobDone event. B4A Question HTML emal body shows poorly in WebView - sorex (first post)    Aug 05, 2016   (1 reaction) yes, that's multipart mime.
you need to grab the right part OR filter out the html part (the <html </html> portion) B4J Question HTTP Post [SOLVED] - Erel (first post)    Apr 17, 2024 PostMultipart creates a multipart request. You don't need to add the boundaries yourself. Page: 1   2   3   4   5   6   7   Powered by ColBERT |