Re: funny blobs



On Jul 30, 11:45 am, "3rdshiftcoder" <g...@xxxxxxxx> wrote:
hi -

i think from code snippets on the web i put a ms word doc in
a db table. if i encode i get printable ascii. if i decode i get
funny symbols.


Thats because the "funny symbols" you see is a MS Word file. Try
opening your binWord.doc file in 'Notepad' and you'll likely see the
same funny symbols.

how do you read the data in the db table if it comes out binary
decoded?


You're already successful since you can already get the "funny
symbols". Your problem is not how to read since you can already do
that. Your problem is how to parse a MS Word file.

Now, this is no small matter since even Microsoft Word 6.0 will have
problems parsing a Microsoft Word 2001 file (yes, there is such an
application as Word 2001, hint: it's not for Windows). There are
plenty of efforts out there to reverse engineer the MS Word .doc
format. Everything from OpenOffice's attempt at feature and bug
compatibility to Google Doc's (formerly Writely) good-enough approach.
Unfortunately I don't know of any pure-tcl implementation of a
Word .doc parser.

Why are you using Word files in the first place? Can't you use simpler
to parse formats like plain .txt file or HTML (both of which can be
exported from Word documents)?

.



Relevant Pages

  • Cant copy Word doc to PPC
    ... I have a HP iPaq hx4700, and I'm trying to copy a Microsoft Word 97 document ... I'm using the current version of ActiveSync on a PC running Windows ... I copy for Word file from the source on the PC, ... paste it to the directory where I want it on the SD card in the PPC. ...
    (microsoft.public.pocketpc.activesync)
  • Word X crashes upon
    ... Word crashes when i open any word file or after clicking ok on ... Command: Microsoft Word ... RunCurrentEventLoopInMode + 0xac ...
    (microsoft.public.mac.office.word)
  • Re: formatting problem
    ... Microsoft Word MVP ... "Gregory Elich" wrote in message ... > I have one Microsoft Word file that has implemented rather odd ... > a new Word file, only to see the results carried forward. ...
    (microsoft.public.word.application.errors)
  • Cant open Microsoft Word
    ... I have been using Microsoft Word successfully,Windows XP, ... open Microsoft Word program, I get the message,"Word ... When I go to Documents and attempt to open a Word file, ... waiting to be loaded to your C-drive." ...
    (microsoft.public.word.application.errors)