Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 3 Support (Qt 5) › Post image throught request

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #21592

    Felgo User

    Hi,

    My problem is that I want to send an image as a POST request to my api, for that I open my ImagePicker from felgo to select my image but the problem is that I do not get my image as a file but just its path… while the body of my request must be of type “FormData”.
    How can I upload my image?

    Thank you in advance

    #21604

    Günther
    Felgo Team
    #24569

    Silvio

    Hi,

    is there also the possibility to send the captured Image via HttpRequest without saving it to the disk? To avoid unneeded permission requests.

    Best would be to do it just with Qml.

     

    Thanks in advance

    Silvio

    #24573

    Alex
    Felgo Team

    Hi Silvio,

    the captured image will always be saved to an app-internal storage, which does not request any additional permissions, and you get the path to this image in your application. In order to send it via a request, you can use the HttpRequest ImageUtils (https://felgo.com/doc/felgo-httpimageutils/) or the generic FileUtils (https://felgo.com/doc/felgo-fileutils/) to attach the image with your request.

    Best,
    Alex

Viewing 4 posts - 1 through 4 (of 4 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded