Hi,
you can convert the bitmap to a string, store it in a file and then you can read it back as string and convert it to an image.
You need to make sure you always know which part of your file is text and which part is an image. Well suited for this could be for example xml. For storing an bitmap to a string and back you can use:
public string ImageToBase64String( Image image, ImageFormat format )
{
MemoryStream memory = new MemoryStream();
image.Save( memory, format );
string base64 = Convert.ToBase64String( memory.ToArray() );
memory.Close();
return base64;
}
public Image ImageFromBase64String( string base64 )
{
MemoryStream memory = new MemoryStream( Convert.FromBase64String( base64 ) );
Image result = Image.FromStream( memory );
memory.Close();
return result;
}