Hello FlutterFlow Community,
I’m working on a workflow where I need to fetch a PDF file from an API using a GET request and upload it to Firebase Storage, then get the link to that PDF in the same flow. Here’s the challenge:
• API Call: The API returns the PDF as a raw body (not a JSON response). So, I can’t directly access it as a file.
• FlutterFlow Limitation: It seems like the API output can only be processed as data types or JSON, not the raw body.
• Goal: I want to:
1. Call the API to get the PDF (raw body).
2. Upload the PDF to Firebase Storage.
3. Get the Firebase link for the uploaded PDF.
4. Keep this process functional and integrated in the same flow when a button is pressed.
Has anyone dealt with a similar situation? How can I handle this in FlutterFlow? Specifically:
• How can I handle the raw body from the API response in FlutterFlow?
• Is there a way to transform the raw body into a file that can be uploaded to Firebase Storage?
• If not directly in FlutterFlow, are there workarounds (e.g., using custom functions)?
Any guidance, tips, or examples would be greatly appreciated! Thanks in advance for your help!