Click here to Skip to main content
15,917,626 members
Home / Discussions / C#
   

C#

 
GeneralRe: Deleting a Row from a DataSet in a DataGrid Pin
joschmo8011-Jan-05 1:56
joschmo8011-Jan-05 1:56 
GeneralAccess Security for window based Pin
caheo10-Jan-05 8:48
caheo10-Jan-05 8:48 
GeneralRe: Access Security for window based Pin
Heath Stewart10-Jan-05 20:14
protectorHeath Stewart10-Jan-05 20:14 
QuestionHow to create a typed DataSet at run-time without type definition files (.xsd or .dtd)? Pin
huckfinn10-Jan-05 7:30
huckfinn10-Jan-05 7:30 
Generalcomparing arrays Pin
sciamachy10-Jan-05 6:50
sciamachy10-Jan-05 6:50 
GeneralRe: comparing arrays Pin
Judah Gabriel Himango10-Jan-05 8:01
sponsorJudah Gabriel Himango10-Jan-05 8:01 
QuestionCan I use webservice to download a file to my local app? Pin
Joshscorp10-Jan-05 6:46
Joshscorp10-Jan-05 6:46 
AnswerRe: Can I use webservice to download a file to my local app? Pin
Judah Gabriel Himango10-Jan-05 8:06
sponsorJudah Gabriel Himango10-Jan-05 8:06 
Sure it's possible. Define a webmethod in your webservice using the [WebMethod] attribute, that takes a string (file name) and returns a byte array (file contents). Something like:

[WebMethod]
public byte[] GetFile(string fileName)
{
   FileStream stream = System.IO.File.Open(fileName);
   
   byte[] fileContents = new byte[stream.Length];
   stream.Open(fileContents, 0, fileContents.Length);

   return fileContents;
}


And on your client, just call the web method to get the byte array back, then write a new file to the local hard disk and write the bytes to it, VOILA you have a replica of the file on your local system.

Any remotely useful information on my blog will be removed immediately.

There are 10 kinds of people in the world. Those who have heard of the ubiquitous, overused, worn-out-like-an-old-shoe binary "joke" and those who haven't.
Judah Himango


GeneralRe: Can I use webservice to download a file to my local app? Pin
Joshscorp10-Jan-05 12:44
Joshscorp10-Jan-05 12:44 
GeneralRe: Can I use webservice to download a file to my local app? Pin
Judah Gabriel Himango11-Jan-05 3:56
sponsorJudah Gabriel Himango11-Jan-05 3:56 
GeneralAssembly Path Pin
Wender Oliveira10-Jan-05 5:22
Wender Oliveira10-Jan-05 5:22 
GeneralScreen Capture Pin
Amy Yang10-Jan-05 4:13
Amy Yang10-Jan-05 4:13 
GeneralRe: Screen Capture Pin
Nick Parker10-Jan-05 5:53
protectorNick Parker10-Jan-05 5:53 
GeneralRe: Screen Capture Pin
Amy Yang10-Jan-05 16:58
Amy Yang10-Jan-05 16:58 
GeneralDeployment issue Pin
montu337710-Jan-05 3:43
montu337710-Jan-05 3:43 
GeneralVideo Streaming Pin
RockRock10-Jan-05 3:24
RockRock10-Jan-05 3:24 
GeneralC# to J# Syntax Conversion Pin
haroldjclements10-Jan-05 2:58
haroldjclements10-Jan-05 2:58 
GeneralRe: C# to J# Syntax Conversion Pin
Stefan Troschuetz10-Jan-05 3:52
Stefan Troschuetz10-Jan-05 3:52 
GeneralRe: C# to J# Syntax Conversion Pin
Matt Gerrans10-Jan-05 8:51
Matt Gerrans10-Jan-05 8:51 
GeneralRe: C# to J# Syntax Conversion Pin
Harold Clements10-Jan-05 23:59
Harold Clements10-Jan-05 23:59 
GeneralSerial Number of a fresh CD Pin
sharad_sharma_2k10-Jan-05 2:52
sharad_sharma_2k10-Jan-05 2:52 
Generaldeployment issue Pin
ch_faf10-Jan-05 2:16
ch_faf10-Jan-05 2:16 
Questionhow to send files from and to a client ??? Pin
Sakkijha10-Jan-05 2:01
Sakkijha10-Jan-05 2:01 
AnswerRe: how to send files from and to a client ??? Pin
Martin Koorts10-Jan-05 4:16
Martin Koorts10-Jan-05 4:16 
Generalre:modify a single xml field values by getting input values from another xml file Pin
ramyasekar10-Jan-05 1:27
ramyasekar10-Jan-05 1:27 

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.