Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. image file

image file

Scheduled Pinned Locked Moved C#
databasetutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    ginji20
    wrote on last edited by
    #1

    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???

    C 1 Reply Last reply
    0
    • G ginji20

      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???

      C Offline
      C Offline
      Corinna John
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups