mushin
Programmer
- Oct 4, 2000
- 49
My application retrieves files of type doc,pdf,rtf,xls,zip,wmv,,avi and all still images for use
and subsequent storage to the data base using vb.net 2005.
The app works well for many of these, however some do not.
I get truncation warnings when attempting to save some of these file types, all with the same code.
(These Binary files are store into a varBinary(max) column with a supposed limit of 2 gig.)
None of these files are more than 1-2 mb.
My question is this:
Why would any of these files not store correctly if handled as an array of bits read from a binary reader object and stored to the blob column?
Are not all files equal at the level of bytes?
There are hundreds of pdf,doc,jpg etc files stored fine, but not one xls,avi or wmv will store correctly.
Zip files store but cannot be read again.
Is there any other special processing required for these file types and if so why?
This is driving me nuts since the app works so well for many binary file types, yet not others.
Any thoughts ????????
and subsequent storage to the data base using vb.net 2005.
The app works well for many of these, however some do not.
I get truncation warnings when attempting to save some of these file types, all with the same code.
(These Binary files are store into a varBinary(max) column with a supposed limit of 2 gig.)
None of these files are more than 1-2 mb.
My question is this:
Why would any of these files not store correctly if handled as an array of bits read from a binary reader object and stored to the blob column?
Are not all files equal at the level of bytes?
There are hundreds of pdf,doc,jpg etc files stored fine, but not one xls,avi or wmv will store correctly.
Zip files store but cannot be read again.
Is there any other special processing required for these file types and if so why?
This is driving me nuts since the app works so well for many binary file types, yet not others.
Any thoughts ????????