Unable to add image to ZPL through SharpZebra

Feb 14, 2015 at 6:28 AM
I am trying to generate a ZPL file using SharpZebra, And my code looks like this
 PrinterSettings p = new PrinterSettings();
   p.PrinterName = "Zebra  105SL (200dpi)";
   p.Darkness = 30;
   List<byte> res = new List<byte>();
   res.AddRange(ZPLCommands.ClearPrinter(p));
   res.AddRange(ZPLCommands.GraphicDelete('E', "SAMPLE"));
   res.AddRange(ZPLCommands.ClearPrinter(p));
   res.AddRange(ZPLCommands.GraphicStore(new Bitmap(@"C:\Assembla\images\logoZpl.bmp"), 'E', "SAMPLE"));
   string myString = Encoding.UTF8.GetString(res.ToArray());
   File.WriteAllText("my path"), myString);
But for some reason it is not creating a correct image.
output ZPL is this
^XA^MMT^PR0,12,12~TA000^LH0,0~SD30^PW0^IDE:SAMPLE.GRF^FS^XA^MMT^PR0,12,12~TA000^LH0,0~SD30^PW0~DGE:SAMPLE,800,20,FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0
FFFFFFFFFFFFFFFFFFFFFFFF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207FFFFFFFFFFFFFFFFFFFFFFE0
^XZ
and when I view it on online zpl viewer (http://labelary.com/viewer.html), image is not showing
Can anyone point out what I am doing wrong here?