Click here to Skip to main content
15,887,027 members
Home / Discussions / C#
   

C#

 
QuestionCreating new object in another thread, then BeginInvoke that object? Pin
Matthew Klein6-Mar-09 4:13
Matthew Klein6-Mar-09 4:13 
AnswerRe: Creating new object in another thread, then BeginInvoke that object? Pin
Curtis Schlak.6-Mar-09 4:20
Curtis Schlak.6-Mar-09 4:20 
GeneralRe: Creating new object in another thread, then BeginInvoke that object? Pin
Matthew Klein6-Mar-09 5:55
Matthew Klein6-Mar-09 5:55 
GeneralRe: Creating new object in another thread, then BeginInvoke that object? Pin
Curtis Schlak.6-Mar-09 6:59
Curtis Schlak.6-Mar-09 6:59 
GeneralRe: Creating new object in another thread, then BeginInvoke that object? Pin
Curtis Schlak.6-Mar-09 7:40
Curtis Schlak.6-Mar-09 7:40 
GeneralRe: Creating new object in another thread, then BeginInvoke that object? Pin
Dave Kreskowiak6-Mar-09 7:15
mveDave Kreskowiak6-Mar-09 7:15 
GeneralRe: Creating new object in another thread, then BeginInvoke that object? Pin
Dan Neely6-Mar-09 8:35
Dan Neely6-Mar-09 8:35 
QuestionWeb Services and Files Pin
cdpace6-Mar-09 3:49
cdpace6-Mar-09 3:49 
Hello people, I have a project where i need to pass a file approx 2.68Gb or larger from one application to another. Now the problem is that in my project i have to use web services to do this operation.

I currently have the following setup in my code:

BinaryReader binReader = new BinaryReader(File.Open(parser.TemporaryFilesPath + "\\database.zip", FileMode.Open, FileAccess.Read));
                           binReader.BaseStream.Position = 0;
                           byte[] binaryfile = binReader.ReadBytes(Convert.ToInt32(binReader.BaseStream.Length));

                           binReader.Close();


                           sc.Helllo(binaryfile);


The above code is in my first application. Than in my web service appliciton i have the following code that writes the binary file to the temp location where it is stored.

[WebMethod]
        public void Helllo(byte[] fileinbytes)
        {
            XMLParser parser = new XMLParser();
            parser.CreateTemporaryDirectory();

            BinaryWriter binWriter = new BinaryWriter(File.Open(parser.TemporaryFilesPath + "\\database.zip", FileMode.Create,FileAccess.ReadWrite));
            binWriter.Write(fileinbytes);
            binWriter.Close();

            parser.Unzip();
            parser.DecryptFiles();

            parser.MergeXMLDataToDatabae("Centre to Main Database");


        }



Now the problem is here in the first code block when the database.zip file increases in size its giving me the error "Value was either too large or too small for an Int32".Do you think there is a way which i can work around this or another way in which i cna program this. Thank you for your help and time guys apprciate it.
AnswerRe: Web Services and Files Pin
Curtis Schlak.6-Mar-09 4:08
Curtis Schlak.6-Mar-09 4:08 
QuestionUTF-8 Not Displaying Unicode Pin
Tim Beck6-Mar-09 3:21
Tim Beck6-Mar-09 3:21 
AnswerRe: UTF-8 Not Displaying Unicode Pin
Curtis Schlak.6-Mar-09 4:05
Curtis Schlak.6-Mar-09 4:05 
AnswerRe: UTF-8 Not Displaying Unicode Pin
Guffa6-Mar-09 6:26
Guffa6-Mar-09 6:26 
Questionabout array and property Pin
clj198705036-Mar-09 2:59
clj198705036-Mar-09 2:59 
AnswerRe: about array and property Pin
musefan6-Mar-09 3:15
musefan6-Mar-09 3:15 
AnswerRe: about array and property Pin
Xmen Real 6-Mar-09 3:24
professional Xmen Real 6-Mar-09 3:24 
AnswerRe: about array and property Pin
clj198705036-Mar-09 3:58
clj198705036-Mar-09 3:58 
GeneralRe: about array and property Pin
musefan6-Mar-09 4:11
musefan6-Mar-09 4:11 
GeneralRe: about array and property PinPopular
Curtis Schlak.6-Mar-09 4:15
Curtis Schlak.6-Mar-09 4:15 
GeneralRe: about array and property Pin
Cybernate6-Mar-09 8:55
Cybernate6-Mar-09 8:55 
AnswerRe: about array and property Pin
Curtis Schlak.6-Mar-09 9:35
Curtis Schlak.6-Mar-09 9:35 
GeneralRe: about array and property Pin
Cybernate6-Mar-09 9:38
Cybernate6-Mar-09 9:38 
GeneralRe: about array and property Pin
Curtis Schlak.6-Mar-09 9:42
Curtis Schlak.6-Mar-09 9:42 
QuestionDisabling Crystal login Pin
twsted f86-Mar-09 2:56
twsted f86-Mar-09 2:56 
AnswerRe: Disabling Crystal login Pin
ABitSmart6-Mar-09 3:27
ABitSmart6-Mar-09 3:27 
AnswerRe: Disabling Crystal login Pin
monstale6-Mar-09 5:08
monstale6-Mar-09 5:08 

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.