Files Storing!! Which is best (blob or link to file)??

Questions and answers regarding general SQL and backend databases

Files Storing!! Which is best (blob or link to file)??

Postby ahmad » Tue Mar 02, 2004 6:51 am

Hi there,

We are planning to develop different solutions which allows to store the images and all other kind of digital media (like audio, video, documents (word, excel, pdf, zip etc..) )

Just in dilemma to decide how to store them.

Question 1:

Which would be the better way?? To store all these kind of digital media in Media field or store the files in a seperate folders and give the links to the file??

Question 2:

Would there be any performance issue if we use media fields to store heavy files?? How fast a 50MB file would be loaded into a blob field from outside the local area network??

Your answers will be really helpful

Thanks
Ahmad
ahmad
 
Posts: 139
Joined: Wed Dec 24, 2003 12:01 pm
Location: Hong Kong

Postby Jan Blok » Tue Mar 02, 2004 12:01 pm

1) blob field is less vulnerable to errors, the file cannot be lost
2) streaming a file via al link from the server is more efficient than using a blob (if the files are bigger than several MB's)
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby idoctor » Wed Mar 03, 2004 7:55 am

I wrote an application that tracks hundreds of thoasands of JPEG and PDF applications in filemaker. I had to use links to the files in this situation. I have rewritten in Servoy using MS SQL as the backend. The coding is much more complex if you keep the individual files in a backend database.

John McCann
idoctor
 
Posts: 254
Joined: Sun Sep 28, 2003 6:37 pm

Postby idoctor » Thu Mar 11, 2004 6:57 am

To clarify my own comment. The coding is much more complex if you keep the individual files on a file server. It is much less complex if you keep the files in a backend database.

John McCann
idoctor
 
Posts: 254
Joined: Sun Sep 28, 2003 6:37 pm

Postby janber » Mon May 03, 2004 10:13 pm

I was wondering what kind of path one should use to open a file on say an X Server.
I ran different tries ; like

afp:/at/....
ip:192.168...

Nothing seems to work
janber
janber
 
Posts: 26
Joined: Mon Oct 27, 2003 2:47 pm
Location: Belgium

Postby Jan Blok » Mon May 03, 2004 10:46 pm

open within where?
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby janber » Mon May 03, 2004 11:00 pm

Well actually I found the answer;

In fact we have an existing application that scans and stores documents (contracts) on an OS X file server in pdf format

All client computers have access to the file server

To open the corresponding contract from the Servoy application the filename path in Os X is

/Volumes/name_of_remote_disk/name_of_folder/filename

code is

application.executeProgram("open", /Volumes/name_of_remote_disk/name_of_folder/filename);
janber
janber
 
Posts: 26
Joined: Mon Oct 27, 2003 2:47 pm
Location: Belgium


Return to SQL Databases

Who is online

Users browsing this forum: Google [Bot] and 33 guests