Download file Base64

  1. 3 months ago

    Hello everyone!

    I saved my files (pictures, excel, word) in my database with encoding base64.
    Is there any way that I can recreate my files and then download them?

  2. Tim P

    Aug 21 Pre-Release Testers Rochester, NY

    http://docs.xojo.com/DecodeBase64 to recreate your files in memory.
    http://docs.xojo.com/WebFile to create an object to download.

  3. Thank you Mr Louis for your reply!

    Everything is fine now. I noticed that I had to define the WebFile as a property of the WebPage and not as a local variable.

  4. Olivier C

    Aug 22 Pre-Release Testers, Xojo Pro Europe (Belgium, France)

    Your webfile instance has to stay available during all processes, it can be defined at WebPage or Session level.
    Local variable are usually not an option.

  5. Christian S

    Aug 22 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    I would suggest to use BLOB fields and not use Base64 to store data in field.

  6. Thank you Mr Christian for your advice.

    Why BLOB fields and not Base64?

  7. Christian S

    Aug 22 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

    BLOB field without Base64 is 30% smaller than text field with Base64 encoded data.

or Sign Up to reply!