Question Anthony Harrison · May 27, 2021 How to convert a %Stream.GlobalBinary into a byte array to pass to a DLL We need to know how to pass a certain value, which in the .NET world is described as a byte array (i.e. byte[]) Background: We have various libraries that were created in .NET 4.5 that are registered for COM interom, an example that we have is as follows: .NET Signature: public static byte[] CreateQrCode(string content, int width, int height, string imageFormat) .NET utilisation: byte[] image = Writer.CreateQrCode("http://redacted/", 100, 100, "png"); #Caché 0 4 0 357
Question Anthony Harrison · Jul 29, 2020 Generating JSON & how to encapsulate a digit as a string Hi, How do I generate JSON strings instead of integers, as follows: { "MyProperty":"1"} all we seem to be able to generate is { "MyProperty":1} Its for an api that requires the former and as the former is valid JSON I'm surprised I am having so much trouble. (Obviously I'm new, please be kind :D #JSON #Caché 0 8 0 863
Question Anthony Harrison · Jul 5, 2020 How to add POST Body data to Net.HttpRequest Hi, how do I add the POST body content to my Net.HttpRequ #Caché #InterSystems IRIS 0 7 0 2.8K
Question Anthony Harrison · Jan 22, 2019 How do people handle licence management in a Mobile App scenario I'm finding that in a mobile app setting, that Cache is causing the worst User Experience that I have ever seen in a mobile app - I'm just saying this hoping that someone will be able to help me out, my intent is not to criticise Intersystems.We have a Xamarin Forms mobile app that consumes web pages that are created by Cache. The app compiles into iPhone, iPad, Android Phone, Android Tablet, UWP (Windows 10, all of phone, tablet, and desktop), as well as MacOS. #Caché 3 5 0 363
Question Anthony Harrison · Jan 14, 2019 Bizarre Behaviour when generating HTML to Android Phone Hi,We are using Cache to generate HTML pages (complete with Javascript), which we are reading in an Android phone App's WebView.If, when we generate HTML as follows:<html><body bgcolor='red'>Hello World</body></html>Reading this is iPad gets what you would expect, a red page with Hello World written in it.However in Android phone, the page is both white and blank. #Caché 0 16 0 311
Question Anthony Harrison · Nov 9, 2018 How to get Custom Header added during a request to Cache We are trying to get a custom header that I have added to a request to Cache, and I have seen the following in another post, however it doesn't work for us: You can do it as in any CSP page/class. With %request, which is object of class %CSP.Request And headers available in property CgiEnvs, where every http header appear with a prefix HTTP_ So, you may try this code. #Caché 0 4 0 1.3K