Apr 19th, 2000, 02:57 AM
What I would like to do is store a random file to Sybase as an image. Now I have been successful in doing this for files smaller then 1MB, anything larger then this size it simply truncates the file. Now I have investigated the Sybase end of it and I think everything on that side of the system is fine. I am storing the file as an image type in a table, which excepts images of up to 2.1GB.
Now on the VB end of things I am writing the image using the code below:
ReDim Chunk(ChunkSize)
For ii = 1 To Chunks
Get FileHandle, , Chunk()
rs(jj).AppendChunk Chunk()
Next ii
Where "Chunks" is the number of chunks in the file. I also write a fragment chunk after the majority of the file has been read.
Other information:
rs(jj).ChunkRequired - this returns TRUE, so it knows that the column is a BLOB
rs(jj).ColumnSize - this returns 2.1 GB, so it also knows what Sybase will except.
So my question is, why does it only save a maximum of 1MB?
Now on the VB end of things I am writing the image using the code below:
ReDim Chunk(ChunkSize)
For ii = 1 To Chunks
Get FileHandle, , Chunk()
rs(jj).AppendChunk Chunk()
Next ii
Where "Chunks" is the number of chunks in the file. I also write a fragment chunk after the majority of the file has been read.
Other information:
rs(jj).ChunkRequired - this returns TRUE, so it knows that the column is a BLOB
rs(jj).ColumnSize - this returns 2.1 GB, so it also knows what Sybase will except.
So my question is, why does it only save a maximum of 1MB?