Convert base64 string into file using Java script

Here you find java script code convert base64 string to file. I converted excel file to base64 string to demo example. I did it in c# code. Code to convert file into Base64 using System; using System.IO; using System.Linq; namespace Demo { public class Program { public static void Main(string[] args) { var fileBytes = … Continue reading Convert base64 string into file using Java script

Advertisements

How to place Order via FIX message?

Purpose The purpose of this post is to walk-through implementation to “Place an Order on via FIX message channel”. In my previous posts, I have shown basic implementation of FIX messages like Establish connection with broker/exchange Fix End points, Consume Market Feeds etc. You can read my previous posts about topics mentioned above: Fix Message Implementation … Continue reading How to place Order via FIX message?

Default Application Domains in CLR

  When CLR loads first to execute managed code, it creates 3 application domains.  System and Shared domains are singleton for each CLR.   Application Domains   System Domain It creates and Shared and default application Domains. It Loads Mscorlib.dll (class library for system namespace) into shared domain. Creation of default Exception instances (OutOfMemoryException, StackOverFlowException … Continue reading Default Application Domains in CLR

Setup connection over SSL with FIX Gateway

Some brokers allow secure communication with their FIX gateway over SSL. QuickFix .net wrapper does not support communication over SSL inherently. Commercial FIX Client libraries provide SSL support out of the box eg. OnixS ultra low latency .NET FIX Engine. I would like to describe the steps for the workaround using QuickFix/N library to support … Continue reading Setup connection over SSL with FIX Gateway

Implementation of FIX messages for Fix 5.0 sp2 and FIXT1.1 specification

  This post will demonstrate how to connect with FIX5.0 server and FIXT1.1 specification and uses of QuickFix/n (native .net FIX engine). Introduction With this release of FIX protocol version 5.0, a new Transport Independence framework (TI) introduced which separates the FIX Session Protocol from the FIX Application Protocol. This gives freedom to send message … Continue reading Implementation of FIX messages for Fix 5.0 sp2 and FIXT1.1 specification

Arithmetic Expression Calculator

  This post describes implementation of arithmetic expression calculator in C#. I have below specification in the form of Backus–Naur Form expression. It is mainly used to define syntax of languages in compiler design world. You can read more about it on wikipedia. There are certain readymade solutions are available to calculate expressions.  Microsoft also … Continue reading Arithmetic Expression Calculator

Add item in collection with Collection Initializers

  It is simple example to add item in generic list but sometimes it is very useful to use collection/object initializers to write less code. I am taking example to add item in generic list with or without automatic initialization of object; Let’s say we have class employee: public class Emp { public string Name … Continue reading Add item in collection with Collection Initializers