I have an API returning me an image but in Base64 converted string. I want to store this is the table I created that has a field with type Blob.
if not client.Get(Url, responseMessage) then
Error('The call to the web service failed.');
if not ResponseMessage.IsSuccessStatusCode then
Error('The web service returned an error message:\\' +
'Status code: %1\' +
'Description: %2',
ResponseMessage.HttpStatusCode,
ResponseMessage.ReasonPhrase);
ResponseMessage.Content.ReadAs(JsonText);
if rec_mytable.FindFirst() then begin
rec_mytable.Content := JsonText; <--- JsonText is a text variable which hold the Base64 String, it can't be saved into Blob
end;