Results 21 - 25 of 140
28 Dec 2017 28 Dec 2017 2 Comments  9153 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert HttpPostedFile class object to Base64 string using C# and VB.Net.

The HttpPostedFile class object holds the File data for the ASP.Net FileUpload control.

In order to convert HttpPostedFile class object to Base64 string, first the HttpPostedFile class object is converted to Byte Array using the ReadBytes method of the BinaryReader class is used.

Then the Byte Array is converted to Base64 string using the ToBase64String method.
28 Dec 2017 28 Dec 2017 0 Comments  14175 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert HttpPostedFile class object to Byte Array using C# and VB.Net.

The HttpPostedFile class object holds the File data for the ASP.Net FileUpload control.

In order to get the Byte Array from the HttpPostedFile class object, ReadBytes method of the BinaryReader class is used.
08 Dec 2017 08 Dec 2017 0 Comments  40268 Views
Here Mudassar Ahmed Khan has explained with an example, how to convert Base64 string to Byte Array using C# and VB.Net.
23 Oct 2017 23 Oct 2017 0 Comments  9632 Views
Here Mudassar Ahmed Khan has explained with an example, how to read and display contents of HTML file using C# and VB.Net.

The HTML file will be read and then its contents will be displayed using the WebBrowser control in Windows Application (Windows Forms Application) using C# and VB.Net.
23 Oct 2017 23 Oct 2017 1 Comments  14087 Views
Here Mudassar Ahmed Khan has explained with an example, how to embed, read and display Text File and Image File from Embedded Resources in C# and VB.Net.

Embedded files are called as Embedded Resources and these files can be accessed at runtime using the Assembly class of the System.Reflection namespace.

This article will illustrate, how to read and display an embedded Text file and Image file in Windows Application (Windows Forms) in C# and VB.Net.
Results 21 - 25 of 140