We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Save files to server not as data URI or json

Home Forums Puzzles Save files to server not as data URI or json

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #69889
    Pandern
    Customer

    Hello!

    I’m seeking guidance on enhancing file-saving functionality within my app, specifically for screenshots, PDFs, and .gltf files. I want these files to be stored in formats that can be linked to via URL and opened like normal files.

    I have two scenarios where I’d like to implement this:

    1. Configurator in Woocommerce and WP:
    Presently, sending and storing data as a data URI is functioning well. However, I’m in need of assistance in saving screenshots as PNG/JPG and generated PDFs as .PDF files.

    2. Product generator – Storing .gltf on server:
    In this scenario, instead of directly sending the .gltf file to the customer that opens it in a separate viewer I made. I aim to store it on a server instead. The goal is to make the file accessible in the viewer, maybe through a GET link in the URL?

    How can I achieve this? Could I handle it with verge3D puzzles alone, or does it require scripting? I appreciate any guidance on the best approach to best solve this.

    Thank you for your help!.

    #69907

    Hi Pandern,

    Both things are possible but require server-side coding using the programming language running on your server (PHP, node.js, etc). There are plenty programming libraries that can convert base64 data to any image format or to PDF.

    As of gltf, that’s right, you can store them on the server and provide a link to the frontend. The link then can be opened using a Verge3D viewer.

    Chief 3D Verger | LinkedIn | Twitter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.