ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Load base30 encrypted text
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

John

USA
94 Posts

Posted - Oct 23 2013 :  21:20:36  Show Profile  Reply
Hello

I am utilizing the JSignature JavaScript component which allows writing a signature on the component in a browser and then exporting the signature data using a vector data compression algorithm to a memo field in a database record. The compression algorithm I am using is base30, although the component also has SVG and a native compression algorithm.

I can copy this saved data back to a JSignature component from a database memo field via the following code:
var
tempData: String;

tempData := kbmMemTable1.FieldByName('Signature').AsString;
IWCGJQSignature.JQSignatureOptions.SetData(tempData);


Does the ImageEnVect component have a method to take vector data that has been compress via base30 and placed into a DB memo field and reverse the process, i.e. decompress the data and load it into a ImageEnVect canvas?


TIA

John

xequte

39100 Posts

Posted - Oct 24 2013 :  11:56:13  Show Profile  Reply
Hi John

You should be able to convert your (base30 decoded) string to a stream and then you can use one of the TImageEnVect LoadFromStream methods.

http://pages.cs.wisc.edu/~rkennedy/string-stream



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: