I can handle the process that file part, but before I go crazy, has someone built a simple wcf service & client (running under windows services or IIS) that I can use to upload a file, and download that file back? with the fewest lines of code? (C# or VB)
compression & encryption would be cool, but i'll layer that on later!!
Thanks!!
Depending how much time the processing takes, you might be better off using two methods in order to avoid running into timeout issues.
Also, I agree with Igor, you should use streams and not byte[]. Otherwise you will probably run into OutOfMemory Exceptions.
[ServiceContract]
public interface IFileService
{
// returns a Guid which you can use later to request the processed files
[OperationContract]
Guid SendFileToProcess(stream streamedFile);
[OperationContract]
Stream GetProcessedFile(Guid fileId);
// use this to poll whether the service has finished processing
[OperationContract]
bool IsFileProcessed(Guid fileId);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With