Discussion on:

10
Comments

Join the conversation!

Follow via:
RSS
Email Alert
0 Votes
+ -
Yes, I'am a beginner in ASP.NET.
Testing 1st part 'class FileRW' with GetFile() is relatively simple, not big difficulties with tutorial.
Testing 2nd part 'the ASPX page' failed because FileIO is unknowed! What to do? Tutorial is missing instructions.
0 Votes
+ -
at the top of your codebehind page add:

imports system.io
0 Votes
+ -
Hi,

The FileIO refers to the 'FileIO' in [WebService(Namespace="http://someplace.com/FileIO/")] in the webservice code.

I couldn't get the code to work either. I did get it to work by just leaving out FileIO, so it's just FileRW frw = new FileRW();

It's also not clear, but you have to include the proxy generated file in the project where you build the consumer and you have to add the System.Web.Services to the consuming project references. If your service and consumer are in the same project you don't have to worry, but that's kind of artificial.

I also thought the WebMatrix tool was cumbersome, so I'd go with WDSL if you have it.

Hope this helps.
0 Votes
+ -
Reading the whole file into a byte array seems like it would be a problem. What about passing a stream object, or does that amount to the same thing?
0 Votes
+ -
Large File
jwang1024@... 6th Sep 2005
You may not allowed to pass in a stream object.
For a large file, you may break it down to small pieces/blocks, and transfer the data file block by block.
this project one problem FileRW() method error the error is (Assembly file missing or namespace declartion missing)
please to tell me the problem how to overcome this problem
Thanking you
can the file transfer take in xml file???
How can i call the web service via soap?
hi. i'm relatively new to asp.net and i was wondering if there was a way for me to redirect the copied file to an ftp server? thanks
You can use an ASP.NET control like FileUltimate to implement a file transfer/manager feature in your web site.
Keyboard Shortcuts:
Prev
Next
Toggle
Join the conversation
Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]

Join the TechRepublic Community and join the conversation! Signing-up is free and quick, Do it now, we want to hear your opinion.