Tutorial series (2)-springboot mime type processing

target Understand common http mime type definitions; How to use springboot to process json requests and responses; How to use springboot to process xml requests and responses; Acquisition of http parameters and file upload and download; How to obtain the original requested byte stream; 6. Understand how springboot implements content conversion; 1. About MIME The […]

110 – temporary data – clipboard data QMimeData

Clipboard data QMimeData QMimeData is used to describe the information that can be stored in the clipboard and transferred through the drag and drop mechanism. QMimeData is not a QWidget control, so it cannot be seen directly. A QMimeData object associates the data it owns with the corresponding MIME type to ensure that information can […]

The cause of Jsoup exception org.jsoup.UnsupportedMimeTypeException: Unhandled content type

Exception that occurred: Exception in thread “main” org.jsoup.UnsupportedMimeTypeException: Unhandled content type. Must be text/*, application/xml, or application/xhtml + xml. Mimetype=application/json;charset=UTF-8, URL=https:/ /xxx.com/apiname I read several articles on the Internet about setting parameters ignoreContentType(true) for Jsoup’s Connection, but no one said why, so let’s record it below. Pseudo-code of Jsoup request: here is the breakpoint debugging […]

Use MimeUtility.encodeWord to solve the garbled characters of the mailbox attachment name! !

Use the email to send the attachment, because the attachment has a Chinese name and the Chinese name is very long, using MimeUtility.encodeWord will cause the Chinese name of the attachment to be garbled. SendEmail class package fan.mbts.util; import java.io.File; import java.util.*; import javax.activation.FileDataSource; import javax.mail.BodyPart; import javax.mail.Message; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; import […]

[Solved] java send mail tcmime.2648.2742.2958.bin encoding error

Service startup initialization Direct initialization at startup for encoding settings private void init() {<!– –> // The default java parameter splitlongparameters about the mailbox is true, that is, it will be processed as .bin if it is too long // We can close it manually System.setProperty(“mail.mime.splitlongparameters”, “false”); } Email sending set encoding format When getting […]