Uploading file from c# client Tool

7 views
Skip to first unread message

spike

unread,
Dec 28, 2010, 6:50:13 AM12/28/10
to GoogleFileService
Hi,
I have a c# tool which will create log files. Now I need to store/
upload those log files into my GAE Web Application by calling its web
service. I tried with small files by sending the files in byte stream.
(say)Like the client tool (which is designed in c#) will call the web
service and send the file (using SOAP). But as the log files are huge
in size, this method is not working. It was at that time I found this
GoogleFileService. But, as far as my understanding the sample given is
when we are trying to upload a file through web form which has an
upload button and the the page will be send as 'multipart/form-data'
as content type. Now, how can i make use of this service for uploading
files from a client tool.

tytung

unread,
Dec 28, 2010, 2:19:39 PM12/28/10
to GoogleFileService
Hi, spike,

You can upload your file via the webpage's form or via Apache
HttpClient API.
And the Apache HttpClient API uses the standard HTTP POST to send
data.
In other words, you may write a C# app to send the HTTP POST data to
GAE.
Please refer to submit() method in FileServiceClient.java to see which
data fields is needed.
http://code.google.com/p/google-file-service/source/browse/trunk/GoogleFileService/src/sinica/googlefileservice/client/FileServiceClient.java
If you're not familiar with HTTP POST, you should study it first.

susheel kumar

unread,
Dec 28, 2010, 11:20:38 PM12/28/10
to google-fi...@googlegroups.com
Thanks a lot for the info... :)


--
You received this message because you are subscribed to the Google Groups "GoogleFileService" group.
To post to this group, send email to google-fi...@googlegroups.com.
To unsubscribe from this group, send email to google-file-ser...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-file-service?hl=en.




--
With regards,
Susheel
09886275353

What we have done for ourselves alone dies with us;
 What we have done for others and the world remains and is immortal.

Reply all
Reply to author
Forward
0 new messages