Wednesday, September 24, 2008

Nicest Thing in Life

http://mylot.com/glechelle

myLot User Profile
mylot account peepz

Monday, September 22, 2008

Convert image to byte to save in SQL database: C#

Here is a code for saving an image to SQL database.

First you need to save your image in MemoryStream. Include the namespace System.IO
Create an instance of MemoryStream.

MemoryStream stream = new MemoryStream();

Then save your image in the stream.

pic.Save(stream, System.Drawing.Image.ImageFormat.Jpeg);

Lastly, assign the stream to bytes.

bytes[] by = stream.ToArray();

The by is now readily available for saving in the database. If you have a column in your data table, the datatype is image, then you can assign by to this column.

Sunday, September 21, 2008

Gossip Girl: Revealed



Welcome Upper East Siders! The place where privilege teenagers attend exclusive schools for the rich are. The story revolves around the lives of Serena van der Woodsen, formerly the "It" girl who suddenly left New York (I heard she got pregnant), then there's Blair "Queen B" Waldorf, the bff's of Serena, Nate Archibald- ex of Blair, Chuck Bass - well he's a Bass and I also heard he's in-love with Queen B. On the other hand, Serena seems to be dating for sometime now someone not really familiar to the Upper East Siders, Dan. Dan Humphrey from Brooklyn goes to Nate and Chuck's school. And little Jenny Humphrey, Dan's sister and an aspiring "it girl". Will Jenny be able to get in the club or will she remain an outcast?

Watch as our lovable characters fight, makeup and struggle to achieve their dreams. Does the rich have everything laid out for them exactly the way they wanted to or are the Humphrey's living a simple and humble life much better than the elite, famous and beautiful Upper East Siders? Gossip Girl is currently in it's second season and the party is just getting started.