C# Class PdfRpt.Core.Helper.StreamHelper

Embedded resources helper class.
Mostrar archivo Open project: VahidN/PdfReport

Public Methods

Method Description
GetResourceByName ( string fileName ) : byte[]

Reads an embedded resource

ReopenForReading ( this stream ) : Stream

Tries to Reopen the stream for reading.

ReopenForWriting ( this stream ) : Stream

Tries to Reopen the stream for writing.

StreamToBytes ( this input ) : byte[]

Converts StreamToBytes

Method Details

GetResourceByName() public static method

Reads an embedded resource
public static GetResourceByName ( string fileName ) : byte[]
fileName string embedded resource file
return byte[]

ReopenForReading() public static method

Tries to Reopen the stream for reading.
public static ReopenForReading ( this stream ) : Stream
stream this input stream
return Stream

ReopenForWriting() public static method

Tries to Reopen the stream for writing.
public static ReopenForWriting ( this stream ) : Stream
stream this input stream
return Stream

StreamToBytes() public static method

Converts StreamToBytes
public static StreamToBytes ( this input ) : byte[]
input this stream
return byte[]