This is a discussion on .NET tricks & Tips within the VB.NET Programming forums, part of the Software Development category; Hi Here I am going to post the .NET tricks. Very useful one. You can also post your .NET tips ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi Here I am going to post the .NET tricks. Very useful one. You can also post your .NET tips here. How to convert a Bitmap to a Byte Array Here is some simple code that takes a bitmap and converts it to a byte array. Dim myVar As MemoryStream = New MemoryStream Dim bitmapBytes As Byte() 'Create bitmap Dim bitmap As Bitmap = New Bitmap(50, 50) bitmap.Save(myVar, System.Drawing.Imaging.ImageFormat.Jpeg) bitmapBytes = myVar.ToArray myVar.Close() bitmap.Dispose() thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention |
|
#2
| |||
| |||
| Visual C++ .NET File Processing File Processing in VC++.Net can be by using a class called FileStream. To process a file, declare the FileStream object and use it. Here is the sample code String *ListOfStates = S"StatesList";thanks ![]()
__________________ Karpagarajan. R Necessity is the mother of invention |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C# .Net Tips & Tricks | oxygen | C# Programming | 85 | 01-08-2009 12:25 AM |
| SAP Tips & Tricks | leoraja8 | Operating Systems | 0 | 03-29-2008 12:11 AM |
| PHP Tips and Tricks | Sabari | PHP Programming | 20 | 12-18-2007 05:26 AM |
| SQL Server Tips & Tricks | Venkat | Database Support | 16 | 09-24-2007 01:34 AM |
| SEO Tips & Tricks | spid4r | Search Engine Optimization | 0 | 03-08-2007 11:03 PM |
Our Partners |