Click here to Skip to main content
15,926,281 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: datagrid show loading screen Pin
Imran Khan Pathan25-Oct-07 18:22
Imran Khan Pathan25-Oct-07 18:22 
AnswerRe: datagrid show loading screen Pin
N a v a n e e t h25-Oct-07 19:32
N a v a n e e t h25-Oct-07 19:32 
GeneralRe: datagrid show loading screen Pin
VinothRao25-Oct-07 20:50
VinothRao25-Oct-07 20:50 
QuestionWebservice Application Stops Indefinately Pin
Sudhir Yadav25-Oct-07 15:59
Sudhir Yadav25-Oct-07 15:59 
QuestionBinary Data [modified] Pin
ASPnoob25-Oct-07 13:58
ASPnoob25-Oct-07 13:58 
AnswerRe: Binary Data Pin
Sudhir Yadav25-Oct-07 16:08
Sudhir Yadav25-Oct-07 16:08 
GeneralRe: Binary Data Pin
ASPnoob25-Oct-07 16:45
ASPnoob25-Oct-07 16:45 
GeneralRe: Binary Data Pin
N a v a n e e t h25-Oct-07 19:40
N a v a n e e t h25-Oct-07 19:40 
ASPnoob wrote:
If there is a better way of doing that than saving them as binary data, I would like to hear about it. Thank you all for responding.


You can store the files in your server disk and keep the file path in database. But since you need to secure those files, it's better to keep them on database and binary.

Retrieving files from database and showing don't have any difference between showing images. First you need to set the content type to doc. Then use BinaryWrite(yourByteArray). See the below code, assume you have taken the file in a byte array say 'b'
Response.ContentType = "application/doc";
Response.BinaryWrite(b);


Hope it helps






AnswerRe: Binary Data Pin
Imran Khan Pathan25-Oct-07 18:42
Imran Khan Pathan25-Oct-07 18:42 
GeneralRe: Binary Data Pin
N a v a n e e t h25-Oct-07 19:41
N a v a n e e t h25-Oct-07 19:41 
QuestionServer Side Alert Messages. Pin
Dio2225-Oct-07 10:23
Dio2225-Oct-07 10:23 
AnswerRe: Server Side Alert Messages. Pin
Malcolm Smart25-Oct-07 10:27
Malcolm Smart25-Oct-07 10:27 
AnswerServer Side Alert Messages. Pin
Sarani Ravindran28-Oct-07 1:12
Sarani Ravindran28-Oct-07 1:12 
Questionrandomly changing images with a time interval Pin
sivaram praveen25-Oct-07 7:58
sivaram praveen25-Oct-07 7:58 
AnswerRe: randomly changing images with a time interval Pin
pmarfleet25-Oct-07 10:04
pmarfleet25-Oct-07 10:04 
Questionlogout not abandoning session Pin
janetb9925-Oct-07 7:05
janetb9925-Oct-07 7:05 
QuestionRegular expression for names Pin
kjosh25-Oct-07 5:48
kjosh25-Oct-07 5:48 
AnswerRe: Regular expression for names Pin
Expert Coming25-Oct-07 6:36
Expert Coming25-Oct-07 6:36 
AnswerRegular expression for names Pin
Sarani Ravindran28-Oct-07 1:42
Sarani Ravindran28-Oct-07 1:42 
QuestionConnecting To dialog box question.... Pin
David Knechtges25-Oct-07 5:35
David Knechtges25-Oct-07 5:35 
QuestionNested Master Page - Issues(Please help) Pin
Md Arif25-Oct-07 5:27
Md Arif25-Oct-07 5:27 
AnswerRe: Nested Master Page - Issues(Please help) Pin
Guffa25-Oct-07 6:02
Guffa25-Oct-07 6:02 
GeneralRe: Nested Master Page - Issues(Please help) Pin
Md Arif25-Oct-07 8:17
Md Arif25-Oct-07 8:17 
GeneralRe: Nested Master Page - Issues(Please help) Pin
Guffa25-Oct-07 10:25
Guffa25-Oct-07 10:25 
QuestionCould anyone know how to use AT Command via GSM modem?Thanks [modified] Pin
jaski25-Oct-07 5:02
jaski25-Oct-07 5:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.