Groups | Blog | Home
all groups > dotnet ado.net > november 2004 >

dotnet ado.net : ASP.Net - Access 2003 - Large BLOBs


Rich S
11/23/2004 4:25:03 PM
Working on C#/ASP.Net application in which we are storing secure, private
PDFs, Excel Spreadsheets, Videos, and Images in an Access 2003 database. We
have not yet upgraded the database to SQL Server as it is still in the
development and testing stages.

Unable to utilize administrative webforms that insert BLOBS in excess of
4MB. No problems with any of the documents that are 2MB or less. Objects
range up to 110MB.

Using the following code to read file:

Stream ms = filSource.PostedFile.InputStream;

BinaryReader br = new BinaryReader(ms);

byte[] byteArray = br.ReadBytes((int)filSource.PostedFile.ContentLength);

br.Close();

Object is inserted into the database as a parameter,
OleDbType.LongVarBinary.

Docs indicate that the max field size is 1GB so should work. Any ideas?
--
Rich S
www.24x7systems.net

Mary Chipman
11/25/2004 9:13:52 AM
Are you trying to read these blobs into an Access OLE field with the
idea that you are eventually going to migrate them to a SQL Server
table? If so, this is a really bad idea for any database, but
especially for Access. It has a long tradition of choking on large
blobs, becoming easily corrupted in the process. Even for SQL Server,
which is a more robust platform by far, recommended best practice is
to store the blobs on the file system and simply record the location
in a table.

--Mary

On Tue, 23 Nov 2004 16:25:03 -0600, "Rich S" <rich@arslist.info>
[quoted text, click to view]
Cor Ligthert
11/25/2004 3:44:15 PM
Mary,

In my opinion is your message true, however I have another idea for
thumbnails.

Just to make your message not as black and white as it looks like now.

Cor

"Mary Chipman" <mchip@online.microsoft.com>

[quoted text, click to view]

Mary Chipman
11/26/2004 2:18:16 PM
???

On Thu, 25 Nov 2004 15:44:15 +0100, "Cor Ligthert"
[quoted text, click to view]
Cor Ligthert
11/27/2004 9:19:27 AM
Mary,

In my opinion is a blob field with a thumbnail field and a field with the
path to the actual image the nicest way to do it. And not only as you write
holding the path to an image in a database.

Cor

"Mary Chipman" <mchip@online.microsoft.com> schreef in bericht
news:jb0fq0thea1v6fs566dbcloe1m4q9id6pa@4ax.com...
[quoted text, click to view]

Mary Chipman
11/27/2004 5:20:02 PM
OIC -- yes, a nice way to do it if it's just images. But of less
utility with large spreadsheets and pdf's, as is the case here.

--Mary

On Sat, 27 Nov 2004 09:19:27 +0100, "Cor Ligthert"
[quoted text, click to view]
AddThis Social Bookmark Button