On Wed, 05 Jun 2013 15:58:49 +0200, _ <k...@dataverse.gr> wrote:

> I need to keep the memory stream open so that I save it to a file later  
> (I
> save it at the same path as the source file, meaning that I overwrite  
> it).
> I could specify another file for saving, but it changes my whole code.
> I want to save it in a stream and then save the stream on top of the old
> file.

Your reason for keeping the stream open doesn't make sense to me.
Just close the stream, keep the bytes in memory, save the bytes to your  
file.

Why would you make something that simple that complex?

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to