store

WCF Certificate Store from SQL Server Database

纵饮孤独 提交于 2019-12-10 10:09:45
问题 I have a SQL Database which is storing my client side certificate for WCF service and other services. (X509 etc). I would like to use this Store (instead of 'My') to retrive this certificate (instead of declaring it in web.config) and then use it for WCF. I have tried to search on this site and google but does not seems to be much of a help. Currently I am doing var targetEndpoint = new EndpointAddress(targetLogicalAddress, targetIdentity); MyTransportPortTypesClient proxy = new

How to download PDF from website and store in %appdata% with Visual Basic .NET

天大地大妈咪最大 提交于 2019-12-10 10:06:15
问题 I have a PDF file hosted on a website. I would like my VB.NET program to retrieve the file/download it and store it somewhere in %appdata% . This could be in a folder of it's own like %appdata%/my_program if you want. How do I achieve this in my VB.NET program? Thanks. 回答1: You can use WebClient.DownloadFile(Url,LocalPath) for downloading your PDF file and saving in a local path on your PC. The class is in System.Net Assembly . 回答2: Use this to download file: Dim WC As New System.Net

extjs treestore with proxy

心不动则不痛 提交于 2019-12-10 09:26:34
问题 I'm creating a MVC extjs application. I've got a treepanel with a store, which is loading the data from a php source. I get the following json-formatted response: [ { "text": "Home", "leaf": true, "dbName": "NULL", "children": [] }, { "text": "Moje Firma s.r.o.", "leaf": false, "expanded": false, "children": [ { "text": "Vydane", "leaf": true, "dbName": "demo" }, { "text": "Prijate", "leaf": true, "dbName": "demo" } ] }, { "text": "Já Živnostník", "leaf": false, "expanded": false, "children":

Android: Storing Image into project directory (files)?

安稳与你 提交于 2019-12-10 07:13:22
问题 I want to store my Bitmap image into project directory. How can I have access to my project folder or what is the address of my project folder? 回答1: You have to put the images in the res/drawable folder. Then, you can access them by using: R.drawable.name_of_image (for name_of_image.png or name_of_image.jpg ). If you want to access them by their original name, you better save them in the assets folder. Then, you can access them by using the AssetManager : AssetManager am = getResources()

HTTP Headers with ExtJS 4 Stores

蓝咒 提交于 2019-12-09 16:43:34
问题 I have already a few stores instanciated. But at a certain point, I'd to add a HTTP header in all of them. How can I do that, with ExtJS 4 ? 回答1: Assuming that you are using an ajax proxy, you could update the headers property on the stores in question. Looking at the code it'll apply whatever is in there as the headers. A more involved solution would involve overriding the doRequest function to do whatever suited you. 回答2: The answer provided by wombleton is close, but the key is that you

How to filter multiple extjs grid columns?

二次信任 提交于 2019-12-09 16:01:02
问题 To filter one grid column we can use: { xtype: 'button', text:'Search', handler:function(){ store.clearFilter(); var searchValue = Ext.getCmp("textFieldId").getValue(); store.load().filter('GridFieldName', searchValue); } } but how to search multiple fields at once, something like: { xtype: 'button', text:'Search', handler:function(){ store.clearFilter(); var searchValue = Ext.getCmp("textFieldId").getValue(); store.filter([ {property: "GridFieldName", value: searchValue}, {property:

Where to store credentials for VSIX - Visual Studio 2017 Extension

為{幸葍}努か 提交于 2019-12-09 06:57:36
问题 Context: I'm writing VSIX Extension for Visual Studio 2017 which needs connection to REST API that requires user authentication. I decide to use VSPackage to provide service for my extension. To be able to connect and authenticate users I would like to store somewhere user credentials, it could be either username and password or OAuth token - doesn't matter. Question: What will be the best place to store credentials information for VSIX? Requirements: Credentials should not be stored as plain

AIR 2 - Data Persistence?

半腔热情 提交于 2019-12-08 12:35:16
问题 what is the best way to include data persistence in an AIR 2 application? is it creating your own read/write file with flash.filesystem, or is there a new way with AIR 2? 回答1: it seems that adobe wrote a library for saving preferences in AIR years ago, but have never added it to the official library? now i'm curious why they would not have done so, since data persistance is key for desktop applications. adobe's AIR Preferences library ("as3preferenceslib"), consisting of 3 classes, can be

ExtJS 4 - How to disable 'next' & 'last' icons in the paging toolbar when no records present in grid?

我是研究僧i 提交于 2019-12-08 12:13:19
问题 I have a grid with paging toolbar at the bottom and a 'Load' button at the top which can be used to load records in the grid. Thus, initially there are no values present in the grid, but in such condition too the paging toolbar displays Page 1 of 1, and also the icons to go to 'next' or 'last' page are enabled. Due to this, when user clicks any of these icons, then, though the records are not loaded but internally the values of 'page' and 'start' are set as NaN and if then user clicks at

Cannot verify signature (cmssigneddata) bouncycastle

流过昼夜 提交于 2019-12-08 11:39:38
问题 When I want to verify my signature made with BouncyCastle I don't get into the second while loop of the verifySignature method. The store.getMatches() gives back an empty array. public static CMSSignedData sign() throws Exception { byte[] file = fileChooser(); store = KeyStore.getInstance(storeType); FileInputStream in = new FileInputStream(new File(storePathKey)); store.load(in, storePassword); in.close(); Key priv = store.getKey("Subject", storePassword); System.out.println(priv.toString()