Need to run the download when the application run in background - wpf

I have downloaded 300 images in my application and store it in isolated storage using http request from a server.The problem we are facing is when navigate out form the application by pressing windows button or anyother way. the download stops.We need to run the download continously without errors even the application goes background. kindly guide me

Take a look at the Background File Transfer API. It allows you to queue up one or more file uploads or downloads over HTTP that will be executed in the background, even when the application is no longer running in the foreground.

Related

How to cancel HTTP file download?

Right now, I am working on a web project(HTML + CSS + JavaScript) using PhoneGap to release APP to android device.
There is a page contains attachment. When user click the attachment link, the user can download it. While the attachment can be very large, the user would cancel the download if he like.
Our program sends HTTP request to the backend to get the attachment.
I just wonder how can I cancel a ongoing download?
Can it be done in front end using Javascript or any PhoneGap API?
Or it can be done in the backend?
I know when you download file from website using chrome, chrome its self can cancel the ongoing download, how chrome does that?
Any information will be appreciate. Thanks a lot.
As a matter of fact, when you want to download file, you should use PhoneGap API class FileTransfer.FileTransfer contains abort function can cancel the ongoing download.
http://docs.phonegap.com/en/1.0.0/phonegap_file_file.md.html#FileTransfer

Mongoose: Browser should not open

The application that I'm developing right now uses Chromium Embedded
Framework to handle multiple display webapp.
The Mongoose executable is ran by the framework at run time. At the same
time however, Mongoose runs an instance of Google Chrome.
As much as possible, I want to avoid this scenario.
Is there a way to disable Mongoose from opening a browser but continue with
the webserver execution?
Add start_browser no line to the mongoose.conf file. Make sure that mongoose.conf file lives in the same directory as mongoose.exe.

Invoking out of browser app from in-browser app in silverlight

We need to have the functionality of users running excel reports from a silverlight application. The application will show data from the server and upon clicking a button users should see an excel report from the data in their client machines. We can't make the original application out of browser so I am looking for options.
I am thinking of creating an out of browser application which can invoke excel in the client machine. Our original application just have to download and install the out of browser application with user permissions. Also I need to pass the data for the excel report from the in-browser application to the OOB applications.
Is it possible? If it is, is there any help available how to do this?
The only thing that comes to mind is to popup another browser window from your in-browser Silverlight application and then offer excel file download to the client. By default this dialog offers Open option as well and that could solve your problem. That's how I solved excel report download from SSRS in my Silverlight application.
It is possible to let users download data as CSV files from the browser, which will open in Excel for most users.
You can also copy delimited text to the user's clipboard using Clipboard.SetText which the user can then paste into a running instance of Excel.
Another option would be to use a server-side service to generate an Excel document and have the Silverlight application show a hyperlink to the document.

Silverlight 4 launch a trusted application into the browser?

I just lost 5 hours looking for a answer which i haven't been able to find :p
First, I'd like to force a trusted application (i need to access the file system) to display into the browser. Based on what i found on google a trusted application must be installed and launched as a desktop application (also called out-of-browser application).
So, i want to have an installed application on the client side but meanwhile, the user must also be able to start this same application into a browser window when he goes on my web site. Is this possible ?
Second, I'd like to give to the user the possibility to start the application from the browser. To be clear, the application is installed on the client computer but i want a button on my web site which starts the desktop application. How can i do that ?
Thanks
The answers are sort of and no.
Yes you can run an application that has been installed on the client also in the browser. However, not all of the installed application features will be available. Anything that requires elevated trust will not work inside the browser.
No you can't launch the installed application programmatically from within code running in the browser. The best you can do is display a polite message to the user to the effect that they have this app already installed and in order to access all of its feature they will need to launch it.
Yes, it is possbile since Silverlight 5, see my answer on silverlight-4-elevated-permission-inside-the-browser

Internet Explorer download notification on HTTPS

I have a Silverlight application deployed on a HTTPS server. My applications generates reports that are saved as PDF files. Whenever a user tries to download a file from my application from IE, he gets a notification under the toolbar asking him if he really wants to download the file. If you agree, then IE reloads the page, sending the user back to the login page of my application. After logging again, the user can download any file, but this is very annoying for the user. How can I resolve this problem? Thanks!
If you know who your users are (condition), you might ask them to put your website under their list of Trusted Sites, which will avoid the annoying notification bars.
You need to trigger the download in such a way that it's obviously a user-initiated action. I'm not sure if Silverlight offers a method for this.

Resources