SunQuest
           Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 25th, 2008, 04:04 AM
faycal faycal is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 1 faycal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 11 sec
Reputation Power: 0
BLOB field in stored procedure

Hi,
i need to insert a wav file into a BLOB field in a Stored procedure by giving the path and the name of the field !

it's possible to do this ?

Best ragards.

Reply With Quote
  #2  
Old March 25th, 2008, 04:43 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,707 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 2 h 38 m 50 sec
Reputation Power: 259
I'd say that's not the way of doing things, there is general consensus here that files are best stored outside of the database, anyway, can't you use your programming language of choice?

Answered for you by the FAQ

Last edited by pabloj : March 25th, 2008 at 04:58 AM.

Reply With Quote
  #3  
Old March 25th, 2008, 05:26 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 968 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 16 h 37 m 26 sec
Reputation Power: 57
Quote:
Originally Posted by pabloj
I'd say that's not the way of doing things, there is general consensus here that files are best stored outside of the database
Actually I tend more and more to storing the stuff in the database.
BLOB handling by the DBMS has been increasingly better in recent years (including JDBC support).
When the number of files reach several thousands (or even hundred thousands) filesystems usually cannot handle that many files very well in a single directory. So you need to start to distribute the files over several directories which doesn't make the code easier.
When you need to rollback a transaction you need to manually cleanup the file system or have some daemon doing the cleanup.
And finally backing up the whole thing is a lot easier, because only a single (DBMS) backup is needed.
But that's just my opinion...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > BLOB field in stored procedure


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway