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:
parent
5f82eb962d
commit
f61992ff38
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue