SIRE Software Posted March 24, 2021 Posted March 24, 2021 Good morning everyone!! I've been stuck trying to convert a binary to PDF file but i didn't really get into anything. The reports i'm trying to show are saved as a binary type, i'm trying to process them to show them but the uniGUI PDF viewer component doesn't load files from stream. A workaround i think could work is saving the file then access it with the FilesFolderURL property, but i dont know if it is possible to do that. does anyone has done something like that? Thank you. Quote
Sherzod Posted March 24, 2021 Posted March 24, 2021 17 minutes ago, Victor Dominguez said: A workaround i think could work is saving the file then access it with the FilesFolderURL property, but i dont know if it is possible to do that. Hello, Yes, try saving the file to disk, and load it. Quote
SIRE Software Posted March 24, 2021 Author Posted March 24, 2021 3 minutes ago, Sherzod said: Hello, Yes, try saving the file to disk, and load it. do you have any example of how to aproach saving a file from a binary?? Quote
Sherzod Posted March 24, 2021 Posted March 24, 2021 6 minutes ago, Victor Dominguez said: do you have any example of how to aproach saving a file from a binary?? You can use FileCreate or TFileStream, to write the binary data to file. Or try to look at this link: http://docwiki.embarcadero.com/CodeExamples/Sydney/en/TBinaryReader_and_TBinaryWriter_(Delphi) Quote
SIRE Software Posted March 24, 2021 Author Posted March 24, 2021 1 minute ago, Sherzod said: You can use FileCreate or TFileStream, to write the binary data to file. Or try to look at this link: http://docwiki.embarcadero.com/CodeExamples/Sydney/en/TBinaryReader_and_TBinaryWriter_(Delphi) Thank you! I'm checking it out!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.