1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-31 11:31:40 +00:00

Smoke a pipe

This commit is contained in:
M66B 2022-09-29 22:42:42 +02:00
parent 5f82eb962d
commit f61992ff38

View file

@ -14,6 +14,8 @@ import static android.os.Process.THREAD_PRIORITY_BACKGROUND;
import com.sun.mail.imap.IMAPNestedMessage;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.IOException;
import java.io.OutputStream;
@ -261,7 +263,13 @@ public class DataHandler /*implements Transferable*/ {
final DataContentHandler fdch = dch;
// from bill s.
if (true) {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
fdch.writeTo(object, objectMimeType, bos);
return new ByteArrayInputStream(bos.toByteArray());
}
// from bill s.
// ce n'est pas une pipe!
//
// NOTE: This block of code needs to throw exceptions, but