Facing Issue while writing to SD Card

Hi all,

I am using Fez spider kit and trying to write captured images on SD CARD. I am using following code to write file.

String filename = "picture_" + pictureIndex + ".bmp";

 sdCard.GetStorageDevice().WriteFile(filename, Pic.PictureData);

But as soon as I runt it I get this error. Any suggestions as there is nothing on internet related to it.I also tried by adding a reference from GHI electronics folder to my program but nothing happened.

Error 10 ‘Gadgeteer.Modules.GHIElectronics.SDCard’ does not contain a definition for ‘GetStorageDevice’ and no extension method ‘GetStorageDevice’ accepting a first argument of type ‘Gadgeteer.Modules.GHIElectronics.SDCard’ could be found (are you missing a using directive or an assembly reference?) c:\users\harisfhffm\documents\visual studio 2013\projects\gadgeteercamera\gadgeteercamera\program.cs 60 24 GadgeteerCamera

I’m Having the same problem with the “Saving on SD card”.

the function GetStorageDevice() is not known.

anybody knows this issue, please help

@ cyberh0me - I have checked that, but I’m still getting an error b/c of the function


sdCard.GetStorageDevice().WriteFile(filename, Pic.PictureData);

the function GetStorageDevice() is not known.

@ cyberh0me - thanks a lot