Skip to main content
Solved

How to read image data in attachment and pass it to a server

  • November 22, 2023
  • 4 replies
  • 214 views

Forum|alt.badge.img+4

Hello, 

I am trying to write some automation that should call some function in our server through a script and pass as input the image data that is stored in some field. 

How can I pass the image data ?

The url I get there is private and  inaccessible through the server. I tried to convert it to base64 but FileReader is not available, also to pass the binary data using FormData but it is unavailable as well .

Any help will be much appreciated.

Yaniv

Best answer by Sho

Hi @Yaniv_Amesllem-  and @ScottWorld,

Expiring Download url in automation can be obtained from the Attachment field. See screenshot.

4 replies

ScottWorld
Forum|alt.badge.img+35
  • Genius
  • November 22, 2023

You would need to use Airtable’s API to grab the URL of the attachment, but the URL expires after 2 hours of being publicly accessed.

I don’t know scripting, so I typically use Make’s Airtable integrations to help me move images out of Airtable and into other platforms. You can also use Make’s HTTP “Get A File” module to download the file as a binary from Airtable. I’ve given some helpful training instructions on how to use Make in this thread.


Forum|alt.badge.img+21
  • Inspiring
  • Answer
  • November 22, 2023

Hi @Yaniv_Amesllem-  and @ScottWorld,

Expiring Download url in automation can be obtained from the Attachment field. See screenshot.


Forum|alt.badge.img+4
  • Author
  • Participating Frequently
  • November 22, 2023

Hi @Yaniv_Amesllem-  and @ScottWorld,

Expiring Download url in automation can be obtained from the Attachment field. See screenshot.


Thanks so much, exactly what I was needed. 



Forum|alt.badge.img+4
  • Author
  • Participating Frequently
  • November 22, 2023

You would need to use Airtable’s API to grab the URL of the attachment, but the URL expires after 2 hours of being publicly accessed.

I don’t know scripting, so I typically use Make’s Airtable integrations to help me move images out of Airtable and into other platforms. You can also use Make’s HTTP “Get A File” module to download the file as a binary from Airtable. I’ve given some helpful training instructions on how to use Make in this thread.


Thanks Scott !

I think a public url is easier, I'll use that.