FoxPro Programming
Extracting .pdf from Blob
Gravatar is a globally recognized avatar based on your email address. Extracting .pdf from Blob
  Kathy
  All
  Jan 6, 2023 @ 01:00pm

Hello Rick and friends,
I need to extract .pdf files from "fileBlob" nodes in a JSON.
I assume it should be something like converting the Blob nodes to .pdf files. Is there any shortcut for doing this in FoxPro?
Thank you in advance,
Kathy

Gravatar is a globally recognized avatar based on your email address. re: Extracting .pdf from Blob
  Rick Strahl
  Kathy
  Jan 6, 2023 @ 01:35pm

blob in JSON is just base64 encoded. Capture the string from the JSON then run STRCONV(lcblob, 14) on it to get the binary string.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Extracting .pdf from Blob
  Kathy
  Rick Strahl
  Jan 7, 2023 @ 08:49am

Hello and Happy New Year Rick.
It's working beautifully.
Thank you so much for making life easier.
Kathy

© 1996-2024