Forum  General Visual ...  Announce It! ( ...  Easy downloading API was added to 6.4 and will be released with the next version.
Previous Previous
 
Next Next
New Post 4/27/2010 11:18 PM
  Guy
2346 posts
1st Level Poster




Easy downloading API was added to 6.4 and will be released with the next version. 
Modified By Guy  on 4/28/2010 2:18:25 AM)

 Hi Guys,

I wanted to share with you an addition to the 6.4 API that was requested by the community as a life simplifying enhancement  and we aim to please, so here it is:

We have added a Link.Download([resource handle], [optional file name]) API that enables you to download any resource without needing to write code (such as components with specific gateways) and such which is an overhead both in runtime and in development time. So the new API actually enables you to pass in a resource handler which can be a reference to a gateway resource, skin resource, file  resource or any other resource that can be referenced by the resource handle which are quite a few. This actually opens a new window with target as "_self" and a content disposition parameter which indicates the name of the file that will be downloaded. 

Only local server resources can be downloaded with the content disposition header as we can not control external resources but other resources will be opened by default in a new window so the API will still be useful for non server resources.

Here are a couple of examples of using it (this will also be featured in the companion kit as samples).

Download the current component gateway resource as a file named "graph1.jpg":
Link.Download(new GatewayResourceHandle(this, "graph"), "graph1.jpg");

Download an image named "Sea.jpg" from the images directory (the file name will automatically be 'Sea.jpg') :
Link.Download(new ImageResourceHandle("Sea.jpg"));

By the way we have also extended the amount of constructors GatewayResourceHandle has so you will not have to create a GatewayReference when creating a GatewayResourceHandler, so the above gateway sample is already using the shorter version.

Cheers,
Guy

 

 
New Post 4/27/2010 11:55 PM
  Visualizer
665 posts
1st Level Poster




Re: Easy downloading API was added to 6.4 and will be released with the next version. 

Good news!

Now you always have to write a lot of code to achive this, this will make life for us programmers a bit easier again :)

Best regards,

Tom

 
New Post 4/28/2010 12:48 AM
  GarryLowther
48 posts
www.trisys.co.uk
No Ranking


Re: Easy downloading API was added to 6.4 and will be released with the next version. 

Thanks Guy and also to your support team Palli, Itzik, Ori and Navot for listening to customer requests.

VWG has great potential, and targeting the 'business logic' rather than exposing the lower level plumbing to developers is the way forward.

Regards, Garry.

 
New Post 4/28/2010 2:42 AM
  palli
11824 posts
1st Level Poster




Re: Easy downloading API was added to 6.4 and will be released with the next version. 

Hi guys,

For those of you using earlier versions of the framework where this is not yet implemented, you might consider the DownloadGateway until you upgrade your version.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 5/26/2010 8:41 AM
  DHW
2 posts
No Ranking


Re: Easy downloading API was added to 6.4 and will be released with the next version. 

Is this included in 6.4 Beta 3?

 
Previous Previous
 
Next Next
  Forum  General Visual ...  Announce It! ( ...  Easy downloading API was added to 6.4 and will be released with the next version.
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS