Sunday, December 17, 2006

A useful Image Converter for the library

Some user ask for a way to read/write images with the library.

So I create this converter that you can copy and paste in your code:

public sealed class ImageConverter: ConverterBase
public override object StringToField(string from)
Byte[] bitmapData;
bitmapData = Convert.FromBase64String(from);
System.IO.MemoryStream streamBitmap = new System.IO.MemoryStream(bitmapData);
return Image.FromStream(streamBitmap);

public override string FieldToString(object from)
Image ima = (Image) from;
System.IO.MemoryStream ms = new System.IO.MemoryStream();
ima.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
return Convert.ToBase64String(ms.ToArray());

Note: you can of course change the ImageFormat to whatever you want, I use PNG because is lost less and compress the resulting strings =)

To use this converter you need some code like:

public Image MyImage;

Easy isn't ?

Happy Coding !!

Sunday, December 10, 2006

Article on CSV parsing by Leon Bambrick

Some time ago Leon Bambrick wrote a good article about the gotchas of create your own CSV parser.

Check the article here: Stop Rolling Your Own CSV Parser!

Remember to scroll down and check the comments with the different points of views about this topic.

Happy Coding

FileHelpers on Ohloh

You can also review the FileHelpers statistics via the great Ohloh with a more granular distinction between the projects files:

Check the Online Statistics here:

(click to enlarge)

FileHelpers on

The servers just finish to index the FileHelpers project.

You can found the results here:

Nice project cost hahaha !!
u$s 94.824 and all for free

FileHelpers Dev Blog - Hello World !!

Here we discuss the design, programming, architecture and new features of the FileHelpers library.