I have read in the 32feet samples that it can do the folderListings operation, And I'm planning to make more of a File explorer which can do upload and download files,
My question is, can I upload and download a whole folder including its contents using Brecham.obex library? Any help will be appreciated.
32feet.NET includes basic OBEX support which doesn't include folder-listings etc. However their partner library Brecham.Obex library supports all OBEX features. See http://alanjmcf.me.uk/thirdparty/Brecham.Obex%20library/
"The library provides very broad client-side OBEX support, providing not just the ‘Put’ operation that most libraries and applications support, but also the complete set of operations: Connect, Put, Get, SetPath, Delete, and Abort. This is accessed through a session based interface. ... "
"support for [...] the Folder Listing XML documents as used by the Folder-Browsing service."
Also see the FolderExplorer2 sample shown in that page. It shows folder browsing and download etc.
Get the library download at http://inthehand.com/files/folders/objectexchange/default.aspx
Related
I need to find a way to read all contacts and chat messages from Skype without API.
By Microsoft they will not support the Skype API any more. This is why I need it.
In the C:\Documents and Settings**username**\Application Data\Skype there are some files but need to parse them and not sure how if it is the right approach.
Of course the chat messages are always synchronized from the cloud. I need at least the messages saved on the disk.
According to Ilya Ivaonv Skype saves all the data in the SQLLite main.db file situated in %AppData%\Skype folder.
I recommend two ways to do this:
A. Easiest way is to use Skyperious. Available for Windows, Linux and Mac. You can do all this
This is the search function:
And here is sample output from an export:
B. The harder, but naturally more flexible way, is to install a SQLite Browser, such as this one, and export the messages yourself. You can see some information on how to do that by looking at this article, or you could also search for other similar articles (AlexS' answer also provides clues). You will need some experience with SQL to use this option.
I'm planning on writing a custom download manager as part of an application. To start researching, I'd appreciate pointer/opinions on the following:
How to detect if the target server supports resume for a given file.
How to download files in multiple parts.
Any libraries available for .NET?
What would be a good the most practical way to go? ThreadPool or TPL?
Assuming you mean a HTTP download manager?? For the first 2...
HTTP Header Field Definitions - Accept-Ranges
I've been developing a web application with asp.net webforms and in this app I have some documents (.doc, .docx, .rtf files), and my client want to edit these files on browser, they want to open a document in an editor, edit, save it on server (without downloading) and close it. I know it's difficult but I would like to know if it's possible or if is there any easy way to do it. We find something like SkyDrive of Microsoft.
PS: We can pay for components if you can suggest something that really works.
Thank you!
IF the clients have Office installed:
I would recommend http://www.webdavsystem.com/server - this allows you to build a "virtual filesystem" (WebDAV which is based on HTTP) which Office can access thus allowing the client to open/edit/save a document (DOCX etc.) via HTTP(S)... it is pure .NET, integrates nicely with ASP.NET and has even a JavaScript accessible API... esp. the upcoming V 3 comes with a wizard which allows you easily to add that funcionality to your ASP.NET application... (just a happy customer, not affilliated).
IF the clients don't have Office installed then it gets tricky:
To really fully support you would need some sort of Silverlight/Flash/ActiveX/JavaApplet which runs in the clients browser and supports the needed editing features...
I am not aware of such production-quality components except the ones from Microsoft - see http://www.microsoft.com/en-us/office365/online-software.aspx
You could integrate them into your web application although they won't offer the full Office feature set in the browser...
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".
Can I communicate to Google Chrome in C#?
For writing a chrome plugin for example.
<Spoilers>
Quick short answer: No, because Extensions require JSON, JavaScript, and HTML.
</Spoilers>
Hi Tony,
There are multiple templates on the internet that you can download to build a chrome extension project using Visual Studio.
Downloading one of these templates just gives you the files and folders that you need which I call "the setup".
That won't let you build a Google extension using C#.
Andrey mentioned that there are libraries like Bridge.NET that will compile your code into HTML/JavaScript. That will help you write HTML and JavaScript using C#. You still need a manifest.json file.
I don't recommend that. That library is not designed for Chrome Extensions. Also, you will have to compile the code into JavaScript and store that JavaScript code in a JavaScript file. I recommend using HTML/JavaScript with no compilers when building your Chrome Extension.
You need to keep in mind that there are 3 main parts in a chrome extension. These are:
manifest.json
A JavaScript file
HTML file
There are multiple steps and it's not hard to build a google chrome extension. This link will give you the complete tutorial on developing a chrome extension with detailed explanation. This tutorial installs a template so that you can develop it in Visual Studio just like I mentioned before.
What I have done to address is use Simple Message Host, it will trigger an executable on the local machine that you code in c#, sending stdin messages and listening to stdout messages so you can build this host to use as a bridge, but like I said, it needs to be on your local network at least, and you have to do some editing in the windows registry, so it has its limitations.
But for the system I am working with, this solution worked perfectly because I have a controlled environment that I can set up all these prerequisites.
So, just to clarify, what I did here is:
Create a chrome extension with background.js opening up the listener to the website's javascript.
Add a registry in windows registry pointing to the path of the executable.
Create the executable in C# doing all your logic.
Send a response from the executable to the extension and then back to the website.
There are several guides on how to do this, so I won't detail these steps here so I don't replicate it.
But for the moment, it is the best way to do what you want, if you have control of your environment that is.
So, if your plugin (extension or chrome app) will work on a controlled environment, this is the way to go, otherwise, I would consider something related to ClickOnce perhaps or WebAssembly but that's not fully released yet.
Chrome own extension manager supports extensions written in js and html.
that said, to execute c# code within the extension you have two options:
Compile c# code to javascript code which then can be added as a normal javascript extension to chrome (take a look at scriptsharp)
Use c# as a back-end system. just like most of download managers:
for case 2 you need a c# application installed in client device(or in the cloud) listing to a specific port (using httplistener or self hosted webapi (you can use netcore) which do these steps
Listing to incoming requests
parse request data eg. json and do something with it
return the result to javascript extension which can display it to user or do other things with it.
The topic is quite old, but I'd like to share that sample:
https://github.com/Retyped/Demos/tree/master/ChromeDemo
In a few words, the sample is implemented in C#. The Retyped.chrome NuGet package provides bindings (Chrome API) for Bridge.NET projects. So yes, now you can implement your logic in C#, then C# code will be transparently compiled into JavaScript by Bridge.NET compiler.
With that approach you can build your Chrome extension on top of .NET Framework as well as utilize thousands of JavaScript libraries.