FTP in a Metro App - c#

I'm trying to create an FTP Application in Metro and C# but the FTP class in System.Net has been removed and now I can't figure out how to do this. I've looked into the BackgroundUploader but can't understand how I can bring back directory structures etc.
Does anyone have any experience doing this, I know it is achievable since there is an app already available on the Windows Store.
Thanks

I haven't checked it yet, since I just started to look for it. In this article they're sharing an FTP sample in C#.
http://code.msdn.microsoft.com/windowsapps/CSWindowsStoreAppFTPDownloa-88a90bd9
Regards,
Herb

Take a look at http://www.dreamincode.net/forums/topic/35902-create-an-ftp-class-library-in-c%23/. It's a C# implementation of a FTP client using sockets, unless you have advanced requirements this may be sufficient for you.
And if you need more you could Always expand on his example!

Please have a look at this sample below. The difference from the Microsoft sample is the use of sockets:
- Windows 8.1 Sockets: Ftp Client Sample in C#

Related

Create a xmpp/jabber server in c# using only the libraries/services available in .NET

I just want to ask how can I make customed xmpp/jabber server in c# using ONLY the libraries/services in .NET?
Is it possible? I've been searching the internet for the last hour looking for an answer and all I can see is 'agsXMPP'.
I want to start from scratch so Im asking you this. (Sorry if it's a little lame or really lame).
Any kind of help would be appreciated!
Thanks a lot!
Yes you can do xmpp server using libraries. Basically using sockets to handle bytes and use StreamParser on Matrix or AgsXMPP to handle streamstart (stream:stream), elements (iq, auth, session, bind, starttls), etc...
MatrixSDK: Paid Used in example
AgsXMPP: Free
Example: csharp/Server - GitLab See: XmppServerConnection.cs

Using agsXMPP , can it send images?

I found this lib here
http://www.ag-software.de/agsxmpp-sdk/
hacked on this example here:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=346
It works pretty well actually but I am wondering if one could rig up a message thats an image that would show up in the others (google talk client) or some other client for display? I poked around on the web, couldn't figure out definitively if this is possible...their site says the api supports XML-RPC, could that do it?
Just want to know im not going down a dead end for this functionality...if XMPP jabber even supports it.
This library seems not to support XEP 0231, the specification that "defines an XMPP protocol extension for including or referring to small bits of binary data in an XML stanza."

Using windows explorer for other file storage via .net

I've seen software products that interface with windows explorer for sharing cloud drives, one was for using gmail as a drive. Is there any documentation on what libraries etcetera are used to accomplish this task?
I'm not looking to use Gmail (specifically)
I'm more concerned about
how to access the windows-explorer interface for showing items that
are not on a real disk.
You'll need to create a Windows shell extension.
This article looks promising - although quite old.
However, as stated in that article, you are discouraged to build a shell extension with managed code.
You should download open-source software such as gDisk to see how they are doing it. Or you can see how it is done in Firefox using Gspace. Here are some general guidelines for developing such applications:
You need some way to distinguish files from email (labels, subject line, etc).
You need an interface to login to the GMail website and cache those credentials.
You need an interface to send an email to yourself.
Finally, you need a way to access those "files".

How to get files to WP7?

Let's say I'm writing a eBook reader for Windows Phone 7. Now the first thing that the user will need to do is add some books to his device, and since I don't offer a online book store or similar service, the only option is file transfer from his PC to the phone. Is he able to do this, how? Then how do I access this file. Can this file be placed in Isolated Storage of my app? I was searching around and didn't find any solution, in fact I believe that similar scenario is currently impossible but I just wanted to hear your toughs on the problem and probably some workaround ideas.
I haven't seen any way to add files from the desktop the phone is connected to. However, you can build your own software for the desktop that uses a WCF service and allows connections from the phone. The phone can download files from the desktop WCF service. See a similar concept here, you can implement the concept discussed in the post the other way round.
HTH, indyfromoz
Would you not be able to download the ebooks using some kind of webservice/http?
(Obviously you'll need a website, somewhere for this)

Compact Framework - OpenNetCf.Net FTP Samples?

I am trying to get the OpenNetCF.Net FTP Components working with my PDA application. I am struggling to get it doing any more than connecting to the server and wondered if anyone knew of any sample code I could use to learn how to use it with?
I need to be able to download and upload files, as well as determining the download size of any files that I wish to download.
Thanks in advance.
I don't like the classes in the OpenNETCF.Net.FTP namespace (the ones in the Smart Device Framework). They're based on streams just like the full framework version (which is why we did them that way) but I find usage to be confusing (though any desktop FTP sample should work as a basis). I wrote a complete FTP set of classes from the RFC but with an object model that I find far more intuitive that is in the OpenNETCF Community Forums. Comes with full source.
This looks like the answer:
http://community.opennetcf.com/competition/folders/opennetcfnetftp/entry64583.aspx

Categories