Contents tagged with pageSource
-
How pageSource in Acumatica works
Hello everybody,
recently I was asked by one friends of mine, how pageSource in Acumatica works, i.e. how to code/decode pagesource contents.
After different methods of trial and error I've created following C# code in order to code/decode pageSource:
Snippet
private static string Compress(string src)
{
if (src.IsNullOrEmpty())
{
return null;
}
byte[] bytes = Encoding.UTF8.GetBytes(src);
using (MemoryStream stream = new MemoryStream())
{
using (DeflateStream stream2 = new DeflateStream(stream, CompressionMode.Compress))
{
stream2. … more