How to email contains of a OutputStream?

I have a ton of data in a PrintStream object (data is written to the PrintStream by calling printStream.print(..)).
I want to be able to email out the contents of the PrintStream i.e - write out the contents of the PrintStream to a Message and then email it. How do I do it WITHOUT creating a temp file ?
Thanks

I appreciate your help. Well, what if I created a dynamic image on the fly ? A chart, for example. I'd like to email that image as an attachment but the image is in memory, it's not a physical file.
Thanks
Thanks for your reply. Sorry, I forgot to mentionthat
I want to send out the contents as a mailattachment
without actually creating a file. Is this possible?
No, you didn't forget to mention that at all. You
specifically said "How do I do it WITHOUT creating a
temp file?" That's why I posted a solution that
doesn't create a file.

Similar Messages

  • I have mistakenly deleted a mail folder which I had created. Can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    I have mistakenly deleted a mail folder in which I had created. I can't remember if it was located to 'iCloud' or 'On My Mac'. How can I retrieve the emails contained in this deleted folder? Your help will be immensely appreciated!

    Yeah not a problem. It does seem though that if you did not have a Time Machine backup then you may not be able to recover the deleted folder :/ But for future reference to prevent any of this, a Time Machine backup is a great investment.
    What it does is create an entire backup of your computer anything from personal information down to the screen saver.
    What you first need is a new external hard drive (I would recommend a 1TB or higher just to prevent running out of space soon).
    after that, just plug in the drive to your computer.
    once it is plugged in, in the top right hand corner, close to the wi-fi symbol, you should see a symbol that looks like a clock with a backwards arrow around it.
    click on that and select "open time machine preferences"
    just turn the button to the "on" position, and select the backup drive and Time Machine does the rest
    very great tool

  • HT2481 I have received an Email containing photos. How do I import those photos to Iphoto and then to a CD/DVD

    I have received an Email containing photos. How do I import these photos to Iphoto 8? Also, how to then move them to a CD/DVD?

    First share some information
    what version of iPhoto? What e-mail client? are the photos JPEGs with a RGB color profile?
    The most general answer is to save the photos to a desktop folder and then import them to iPhoto from there - you can right click on the desktop folder in the finder and burn it to disk
    LN

  • How to extract email addresses where email contains a certain keyword

    Hi,
    I like to get all email senders' and receivers' addresses from apple mail where the email contains a certain keyword.
    In apple mail I can just use the search within mail app and get the emails which contain the keyword.
    But now I only need to extract these and no other.
    Also when I extract to address book they are all merged with my private contact entries.
    How can I keep just these emails with the keyword separate?
    The easiest would be to extract all the mails into some sort of Excel sheet with each field like sender, receiver, subject, email text,... etc in one Excel column.
    Many thanks!

    The easiest way is to use the search function and then select all of the found emails and save them as *rtfd
    Then copy the full content into Excel. There you have your tags To: and  From:
    Done :-)

  • TS3899 my recoverable mailbox wont stop. it seems i sent an email containing too uch or too large of pictures. how can I stop it

    my recoverable mailbox won't stop. It seems I sent an email containing too many photos or too large, it will not stop attempting to send.

    Posting this as it took me forever to find the fix.  No one with my carrier, Apple etc. seemed to know of the fix or for that matter even recognize that it was an issue. Hopefully this will help someone else.  This is for Exchange 2010
    Log on to the Exchange server hosting OWA
    start run cmd, right click on the cmd and choose run as adminsitrator
    cd C:\Windows\System32\inetsrv\
    appcmd.exe set config -section:system.webServer/serverRuntime /uploadReadAheadSize:"16000000" /commit:apphost
    appcmd.exe set config "Default Web Site" -section:system.webServer/serverRuntime /uploadReadAheadSize:"16000000" /commit:apphost
    restart IIS
    Note that 1600000 should be the size of the allowed email in bytes.

  • While listening to a podcast on my iPhone I can e-mail the podcast ID. The email contains the url for the specific podcast. So you would assume that you could put that url into iTunes and it would take you to the podcast. This used to work but no longer.

    While listening to a podcast on my iPhone I can e-mail the podcast ID to share it with someone else. The email contains the url for the specific podcast. So you would assume that you could put that url into iTunes and it would take you to the podcast. This used to work but no longer. Months ago when I would e-mail myself the url all I had to do was click on the link in the e-mail and it took me right to the specific podcast in iTunes. Now it only opens iTunes and I can't figure out how to find the specific one. What good is the e-mail tab on the iPhone if it doesn't connect you to the podcast you sent?

    Same here. I just posted a question too.

  • TS3276 After installing Lion in my iMac, some formatted emails contain in sections of the text rows of letter A contained in boxes.

    After installing Lion in my iMac, some formatted emails contain, in some sections of the text, rows of the letter A contained in boxes. See attachment.

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

  • How to email text from a text component in my applet on a the host server ?

    How to email text from a text component in my applet on a the host server, back to my email address ?
    Assuming I have Email Form on the host server.
    Help will be appreciated.

    You can do like below
    =REPLACE(Fields!Column.Value," " & Parameters!ParameterName.value & " ","<b>" & Parameters!ParameterName.value & "</b>")
    The select the expression and  right click and choose placeholder properties
    Inside that set Markup type as HTML 
    then it will highlight the passed parameter value in bold within the full xml string
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to email report to the users

    Hi,
    I have a few reports in 6i. I can preview them but cannot mail them to the users. When I click on the mail icon, it gives me this error :
    REP-4203: Error occurred while sending a mail message.
    Second option I did was to directly create a pdf report but this doesnt work either. I gave the desformat as pdf, desname as c:\myreport.pdf, mode as default, destype as File and printjobs No.
    I ran the report and it did something. But now when I search in my C:\ I cannot find the pdf report there. I also did a search but cannot find it anywhere.
    Please let me know how to develop a pdf report or how to email a preview report to the users. I need to send the report to my users but both the options dont work.
    Thanks in advance.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • How can I get a list of emails in my inbox listed by sender and how many emails are in the box from each one, in a concise list.

    I need a List:
    Name of sender and how many emails from that sender:
    ex:
    Wife - 50
    Boss - 75
    ESPN - 200
    It would best to get them in a excel sheet so I can print, review and then make decisions to delete entire names that I know longer communicate with.

    See this thread here
    Display number of emails by sender

  • How to email multiple photos in one email-PS Lightroom 4

    Hi,
    I would like to email multiple photos in one email.  Is there a way to do this? Right now I understand how to email 1 photo at a time. I am using the Mac Version of Lightroom 4.
    Thanks in advance.
    Cheers,
    Lourdes

    Yes.
    If you select more than one photo in either the Grid or the Film Strip and then go to File>Email Photos… it will send all that are selected. .

  • How many emails can I have on my account? Can I have client folders to customize for each client?

    How many emails can I have on my account?
    Can I have client folders for each client to access their own survey/forms?
    Can I customize for each client?
    Do we need multiple subcription accounts for this?

    You need to have one FormsCentral subscription per email.
    At this time FormsCentral doesn't support folders.
    Gen

  • How many emails can i send in one day with icloud

    how many emails can i send out in a day using icloud.com?  I want to send about 800 emails to all the parents at my children's school.  I am using pho and swiftmailer to send the emails.
    thanks.

    Up to 200 messages and 1000 recipients (see http://support.apple.com/kb/ht4863).  This is because it's designed for personal rather than business use.

  • Object not found in store error when trying to load MimeContent of an email (containing attachments)

    This is a weird one and I'm hoping someone can reproduce this and give me some help.
    We have a system that uses the EWS Managed API to send emails. Optionally an email may need to be saved out as an rfc822 (.eml) file afterwards for storing in our own database. In order to save to a file I need to load up the MimeContent of the message.
    And this is where an "Object not found in store" exception can get thrown.
    The really strange part is that the exception only seems to occur if the email contains an attachment and if there is too much of a delay between sending the email and trying to access the MimeContent!
    My test code is something like:
    // Set up the basics
    _item = new EmailMessage(P7ExchangeService.Service);
    _item.Subject ="Hello world";
    _item.ToRecipients.Add("some name", "[email protected]");
    _item.Body = new MessageBody(BodyType.HTML, @"<html><head></head><body>hello world<image src=""cid:blah""/></body></html>");
    // Add attachment
    FileAttachment att = _item.Attachments.AddFileAttachment("blah", "c:\temp\blah.jpg");
    att.IsInline = true;
    att.ContentId = "blah";
    // Send and save
    _item.SendAndSaveCopy();
    // Wait a bit (see comments below)
    Thread.Sleep(5000);
    // Now try and save out
    var propCollection = _item.GetLoadedPropertyDefinitions();
    propCollection.Add(ItemSchema.MimeContent);
    _item.Load(new PropertySet(propCollection)); // EXCEPTION!
    // ... etc
    On some systems it seems that the sending can take a while, hence my Thread.Sleep() call to simulate this.
    Its when I try and load up the MimeContent that I will then get the exception. But ONLY if I sleep (simulating the occasional delay seen on customer sites) and ONLY if the email contains an attachment.
    The mimecontent is necessary in order to save out to a file (by accessing the _item.MimeContetn property).
    Can someone please explain the exception and/or provide a better way of doing this??

    This is normal EWS doesn't return the Id of the Item in the SentItems Folder so you need to use a workaround like
    http://blogs.msdn.com/b/exchangedev/archive/2010/02/25/determining-the-id-of-a-sent-message-by-using-extended-properties-with-the-ews-managed-api.aspx .
    If you want to understand the issue you can enable tracing and look at responses, the actually Id your trying to load the MimeContent from is probably the Id of the draft message. Eg to send a message via EWS with attachments multiple operations must be
    used to construct it and when the messages finally gets sent the copy in the drafts folder is deleted and a copy is created in the SentItems folder. However the Id isn't returned for the SentItems copy hence you need the workaround.
    Cheers
    Glen

  • Is there a size limit to how many emails in Mail?

    Is there a size limit to how many emails in Mail?
    I have recently converted from MS Outlook 2007, where the maximum storage is 20 GB.
    Is there any such limit in Mail?
    In other words, I currently have 30,000 inbox emails and 20,000 sent emails. Together, my Outlook PST file is 2 GB. Would Mail prevent me in any way, or could I keep as many emails as my hard drive will permit?
    I thank you all in advance for any thoughts and/or suggestions.

    Harold,
    Have you checked this in Synchronization Preview? Did you see any error?
    Regards,
    Manuj Khurana

Maybe you are looking for

  • Using Windows Vista and IE7 with Forms based applications

    A user has Vista & iexplorer 7 installed on their machine and when they attempt to access the Professional Buyer responsibility (forms based) they receive an error message stating that 'Internet Explorer has stopped working'. When they attempt the sa

  • I am unable to download my purchased Adobe Photoshop Elements

    I am unable to download my purchased products: Adobe Photoshop Elements & Premiere Elements 12 I tried downloading them a few times unsuccessfully. Now, whenever I try to download this is the message I get: "Sorry, Too many download attempts: 5. You

  • X48c User with Freezing Problem! Please Help!

    Hi Guys, I just recently built my new pc with the new x48c platinum motherboard. It worked fine for about....3 days, then it just started to freeze on me.   And its happening all the time! Mouse, keyboard, sound....everything just locks up! So i have

  • Using the FilenameFilter interface to get the extension of a file

    Hello... I am trying to write a java program which is going to parse multiple xml documents and load them into the db. In a directory, there could be files other than xml files. Hence, i want to parse only files which have an .xml extension. I am usi

  • Any FM available for partial payment for FB05 and F-36 transaction?

    Dear All, Is there any function module available that can post the partial payment for FB05 and F-36 transactions? Please let me know if any function module doing the same. I have searched in SDN but could not find any. Best wishes, Atanu