ˇ@

Home 

c# Programming Glossary: streams

Determine a string's encoding in C#

http://stackoverflow.com/questions/1025332/determine-a-strings-encoding-in-c-sharp

pointed out determine encoding makes sense only for byte streams. If you have a string it is already encoded from someone along..

Does disposing streamreader close the stream?

http://stackoverflow.com/questions/1065168/does-disposing-streamreader-close-the-stream

and BinaryWriter all close dispose their underlying streams when you call Dispose on them. They don't dispose of the stream..

Why does my C# gzip produce a larger file than Fiddler or PHP?

http://stackoverflow.com/questions/11435200/why-does-my-c-sharp-gzip-produce-a-larger-file-than-fiddler-or-php

as using my infgen program to disassemble deflate streams last static literal 'Hello World end which is exactly as it.. even properly use the CRC 32 as intended to detect corrupt streams. The truly perplexing thing is not why Microsoft assigned someone..

Where does System.Diagnostics.Debug.Write output appear?

http://stackoverflow.com/questions/1159755/where-does-system-diagnostics-debug-write-output-appear

out listeners have to be registered in order to read these streams. Also note that Debug.Write will only function if the DEBUG..

How can I upload a file and save it to a Stream for further preview using C#?

http://stackoverflow.com/questions/1653469/how-can-i-upload-a-file-and-save-it-to-a-stream-for-further-preview-using-c

but for other functions i have to convert to and from streams so im sure its just as easy to keep it in stream format. Here..

Encrypt/Decrypt string in .NET

http://stackoverflow.com/questions/202011/encrypt-decrypt-string-in-net

aesAlg.CreateEncryptor aesAlg.Key aesAlg.IV Create the streams used for encryption. using MemoryStream msEncrypt new MemoryStream.. key new Rfc2898DeriveBytes sharedSecret _salt Create the streams used for decryption. byte bytes Convert.FromBase64String cipherText..

Reading large text files with streams in C#

http://stackoverflow.com/questions/2161895/reading-large-text-files-with-streams-in-c-sharp

large text files with streams in C# I've got the lovely task of working out how to handle..

Using 256 x 256 Vista icon in application

http://stackoverflow.com/questions/220465/using-256-x-256-vista-icon-in-application

can use it with any icons from resources from files from streams and so on. Read below about extracting EXE icon . It runs on..

Creating a byte array from a stream

http://stackoverflow.com/questions/221925/creating-a-byte-array-from-a-stream

on whether or not you can trust s.Length . For many streams you just don't know how much data there will be. In such cases..

Using AES encryption in C#

http://stackoverflow.com/questions/273452/using-aes-encryption-in-c-sharp

rijAlg.CreateEncryptor rijAlg.Key rijAlg.IV Create the streams used for encryption. using MemoryStream msEncrypt new MemoryStream.. rijAlg.CreateDecryptor rijAlg.Key rijAlg.IV Create the streams used for decryption. using MemoryStream msDecrypt new MemoryStream..

Keep window on top and steal focus in WinForms

http://stackoverflow.com/questions/278237/keep-window-on-top-and-steal-focus-in-winforms

direct intervention of the user. Peeking at the input streams through the RawInputDevices hook is the only sensible way to..

ITextSharp insert text to an existing pdf

http://stackoverflow.com/questions/3992617/itextsharp-insert-text-to-an-existing-pdf

reader 1 cb.AddTemplate page 0 0 close the streams and voilá the file should be changed document.Close fs.Close..

Executing Batch File in C#

http://stackoverflow.com/questions/5519328/executing-batch-file-in-c-sharp

could try to dump out the contents of the output and error streams in order to find out what's happening static void ExecuteCommand.. Process.Start processInfo process.WaitForExit Read the streams string output process.StandardOutput.ReadToEnd string error..

HttpWebRequest times out on second call

http://stackoverflow.com/questions/5827030/httpwebrequest-times-out-on-second-call

your catch and make sure that as the above post notes all streams are flushed closed and references to the request object are..

NTFS Alternate Data Streams - .NET

http://stackoverflow.com/questions/604960/ntfs-alternate-data-streams-net

How would I create delete read write NTFS alternate data streams from .NET If there is no native .NET support which Win32 API's..

Poor man's “lexer” for C#

http://stackoverflow.com/questions/673113/poor-mans-lexer-for-c-sharp

it. For one thing Regex only seems to work on strings not streams why is that . Basically I want an implementation of the following..

GnuPG Wrapper with C#

http://stackoverflow.com/questions/1214026/gnupg-wrapper-with-c-sharp

temp output.txt FileMode.Create encrypt the data using IO Streams any type of input and output IO Stream can be used gpg.Encrypt..

How can I read an Access file (.accdb) from a stream?

http://stackoverflow.com/questions/14475968/how-can-i-read-an-access-file-accdb-from-a-stream

using OLEDB OPENXML or via the Object Model. Since .Net 4. Streams have a CopyTo method you can use to convert the stream into..

.NET Asynchronous stream read/write

http://stackoverflow.com/questions/1540658/net-asynchronous-stream-read-write

class so that you can maintain the instance of the active Streams. This is how I'd approach it not tested public class Assignment1..

Unique file identifier in windows

http://stackoverflow.com/questions/1866454/unique-file-identifier-in-windows

What is the best buffer size when using BinaryReader to read big files (>1GB)?

http://stackoverflow.com/questions/19558435/what-is-the-best-buffer-size-when-using-binaryreader-to-read-big-files-1gb

in .NET Optimum file buffer read size File IO with Streams Best Memory Buffer Size How do you determine the ideal buffer..

Apply a Regex on Stream?

http://stackoverflow.com/questions/1962220/apply-a-regex-on-stream

for fast and safe way to apply Regular Expressions on Streams. I found some examples over the internet that talking about.. avoided if there was a more native way to apply Regex on Streams. Pure Regex support Regex pattern sometimes can match only if.. there any way Library that can be used to apply Regex on Streams without converting to strings and with full Regex support c#..

Reading large text files with streams in C#

http://stackoverflow.com/questions/2161895/reading-large-text-files-with-streams-in-c-sharp

had a few issues in the past with reading content from Streams because it will always miss the last few bytes or something..

File IO with Streams - Best Memory Buffer Size

http://stackoverflow.com/questions/3033771/file-io-with-streams-best-memory-buffer-size

IO with Streams Best Memory Buffer Size I am writing a small IO library to..

How can I embed any file type into Microsoft Word using OpenXml 2.0

http://stackoverflow.com/questions/3322247/how-can-i-embed-any-file-type-into-microsoft-word-using-openxml-2-0

binary data from the above step to create Data and Image Streams Use those Streams as the File Object and File Image for your.. the above step to create Data and Image Streams Use those Streams as the File Object and File Image for your OpenXml Document..

NTFS Alternate Data Streams - .NET

http://stackoverflow.com/questions/604960/ntfs-alternate-data-streams-net

Alternate Data Streams .NET How would I create delete read write NTFS alternate data..

Converting blob back to original file type and making it available for download

http://stackoverflow.com/questions/8592455/converting-blob-back-to-original-file-type-and-making-it-available-for-download

fs Writes the BLOB to a file .bmp . BinaryWriter bw Streams the BLOB to the FileStream object. int bufferSize 100 Size..

MemoryMappedFile doesn't work with 2 processes?

http://stackoverflow.com/questions/9760073/memorymappedfile-doesnt-work-with-2-processes

pointers to access the view but that requires unsafe code. Streams are a pretty poor abstraction for a chunk of memory but a necessary..