Assistance with Image File Upload in Zoho Creator

Assistance with Image File Upload in Zoho Creator

Hi ,

I'm building an application for storyboard creation using Zoho Creator, integrating Gemini AI for automated image generation.

In the "Generate Frame" form, user inputs are collected to construct image prompts.

Current Workflow:

  • On Validation (Form Submission):

    1. Construct image generation prompt

    2. Prepare the Gemini API request body

    3. Send the request using invokeUrl

    4. Receive and store the base64 image data in a multi-line field

  • On Success (After Submission):
    5. Use the stored base64 string to upload the image to an image field via the file upload API (which requires the record ID)

Issue:
The process works, but intermittently fails when the base64 data exceeds the multi-line field size limit (~64 KB or 500,000 characters).
This occurs when the Gemini API returns a large base64 string. (As per my analysis)

Currently, I store the base64 string only to upload it post-submission via the file upload API.

Question:
Is there a way to upload the image directly to the image field during form submission—without using the upload API after submission—so I can avoid storing the base64 string altogether?
I guess this would prevent the intermittent issue.

Looking forward to your suggestions.

Thanks & Regards,
Monish