If your bitmap is in memory as a string (I have done that), just Open a file with the extension .bmp and

Open MyBMP for Binary as #1
Put #1,,YourString
Close #1

Let me know if you want the bitmap file structure as a word document; I learned from it.