I have a java program that can read in a text document to a mysql blob and read it back out to a text document. This works fine.

But - there's always a but - I can not do this with .doc or .pdf. Word will not let me open the new .doc. It is not size issue as I am using medium blobs and the .doc/.pdf are small.

I have checked that it is storing all the data in the blob, as the blob size is identical to the .doc size.

Any takers? I am a beginner programmer, so please bear this in mind if you should reply.

Thanks in advance,

M.

I have posted on the mysql site as well, here is the link for anyone that is interested:

http://forums.devshed.com/t53932/s.html