Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with PNG data
#6
For future reference, IntraWeb has a unit IWImageUtils which has some utility functions to handle this issue:

procedure GraphicToBase64Str(Input: TGraphic; var Output: string);
procedure Base64StrToGraphic(var Input: string; Output: TGraphic);
function CreateGraphicFromBase64Str(var Input: string): TGraphic;
procedure Base64StrToPng(var Input: string; Output: TPngImage);
procedure Base64StrToJpg(var Input: string; Output: TJpegImage);
procedure Base64StrToGif(var Input: string; Output: TGifImage);
function Base64StrToImageFile(var Input, AFileName: string): Boolean;
Reply


Messages In This Thread
RE: Working with PNG data - by kudzu - 05-13-2022, 06:23 PM
RE: Working with PNG data - by rlebeau - 05-15-2022, 01:23 AM
RE: Working with PNG data - by Alexandre Machado - 04-16-2023, 11:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)