LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion of file saved as binary in database back to its original format

Hello,
          I need solutions to 2 problems.
First is that I have a file say abc.doc saved  in binary format to the database.Now I want to view it back.But i can't view it in its original format ,Whn I use the select query and try to display it in another file.Evenif it is a text file this is the case.How can I view the file back in its original format?.If it is a text file I can see some binary symbols.In the case of a .doc file a combo box asking which system do u wish to decode is asked eg:Arabic,Turkish etc.I don't want to select from this combobox.When I open the file I want to see it in its original format without this combobox appearing.My nxt probs is:
                                        Expecting help from all.
                                                                                                             Mala
0 Kudos
Message 1 of 2
(2,926 Views)
Hello vava,

Exactly which functions are you using to read the binary data back from you database and save it to file?  Also what behavior are you seeing when you save your read values to file?  The issue is that when you save a file with a .doc extension and open it from Microsoft Word, it expect this file to be in word format.  If it is not, which it's not going to be when you save just binary contents to a file, Word will display a box asking you convert the file and its contents to something it knows about.  After searching MSDN, there doesn't seems to be a documentated way to disable the File Conversion dialog.  As a side note, this question seems like it would be more appropriate for a Microsoft forum since it seems Word specific.

Thanks
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 2
(2,898 Views)