image file
-
can someone tell me how to save a file to image file.. i want to save the fax receive from the modem to an image file to be save in the database.. is that possible?? even to convert it to msword format???
I guess you read the fax into a stream. Try this:
Bitmap bmp = (Bitmap)Image.FromStream(myStream); bmp.Save(myFileName, myFormat);
Then you can add the file name to your database or convert the image into an appropriate BLOB format.ginji20 wrote:
even to convert it to msword format?
Ms Word format is for text documents. A Word document can contain images, but an image itself cannot be an Word document. I guess you want to create a document with an image on the first page. You'll find everything you need on MSDN. Look for MS Word Object Model and COM automation.
This statement is false.