Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 5th, 2006, 08:28 AM
Prudie Prudie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 3 Prudie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 53 sec
Reputation Power: 0
Saving Audio Files

Hi Everyone. Am bust with an application where I need to save audio files, then read it out of the database.
I do not even know where to start as I have never done so.
is there someone who can help Pleeeeease?

Thanx

Reply With Quote
  #2  
Old June 9th, 2006, 01:09 PM
som_dutt som_dutt is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2006
Posts: 12 som_dutt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 5 sec
Reputation Power: 0
Hi !
You can do this in sql server, with textcopy utility. You have to follow the following steps. (Don't bother with name, you can copy any file not only image but pdf, wav, jpg or any)

[1] Create a table in your database. For example -
create table table01 ( id int , audio_file image)
[2] Insert a value into it.
insert into table01 values ( 1 , 0x0 )
Note : Do not put NULL or other thing instead of 0x0.

[3] Type the following command in command. (Change Server, Database name )

(1) Insert into database -
TEXTCOPY.exe /S(local) /Uuser_name /Ppassword /D DB_NAME /T Table01
/C audio_file /F "C:\temp\wav001.wav" /W"where id=1" /I (2) Out to a file from database -
TEXTCOPY.exe /S(local)
/Uuser_name /Ppassword /D DB_NAME /T Table01 /C audio_file /F
"C:\temp\wav002.wav" /W"where id=1" /O ===============
I think you can do it well. If you can not do it, tell me soon.

Reply soon..

- Som Dutt

Reply With Quote
  #3  
Old June 12th, 2006, 08:02 AM
Prudie Prudie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 3 Prudie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 53 sec
Reputation Power: 0
Saving Audio Files

Thank you So much for that. I will try it tomorrow 13 June, and let you know before the end of the week. But thanx allot

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft SQL Server > Saving Audio Files


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 1 hosted by Hostway
Stay green...Green IT