Convert an image to a byte array.

July 16, 2010 - 10:14

You should have your image stored in the "myimage" variable, and then use the below code to convert to a .Png format and save into the "mybytearray" array.

Convert a byte array into an image.

July 16, 2010 - 10:13

The binary array "mybytearray" should contain your image data, then use the below code to convert this into an image usable by VB.Net.

Open and Read files in VB.Net

July 15, 2010 - 15:17

To read the entire contents of a file first we must open the file and specify the access mode by using the System.IO namespace. This class also allows various file operations such as delete, copy, and checking for the existance of a file.

Write a string to a file in vb.net

July 15, 2010 - 15:15

Writing to a file works very similarly to when reading a file. The filestream is created passing the details of the filename and type of access.

Send an email from a webpage with asp.net

July 15, 2010 - 15:06

Emailing with .net is fairly simple. You will also need to know an SMTP mailserver which you have permission to relay from, otherwise you will recieve an error 550.

Run a query on an sql database in VB.Net

July 14, 2010 - 17:09

Connecting to a microsoft sql database is done by first creating the database on your server and assigning the correct username and password. Once this is done then create your connection string. This will look something like this:

Run a command on an sql database in VB.Net

July 14, 2010 - 05:48

Connecting to a microsoft sql database is done by first creating the database on your server and assigning the correct username and password. Once this is done then create your connection string. This will look something like this:


© 2011 simplevb.net