Create Image from buffer?
Hey!
I'm doing an external API call to get the image. Then I would like to create an image based on the result of the request.
When I'm passing a random URL of the image to "Create Image Metadata" like this:
Everything works fine, but I can't pass the directly URL to "Create Image Metadata" because the request that I'm doing requires authorization.
My external API request response looks like this:
{
request: (…)
response: {
(…)
result: 'JFIFHHICC_PROFILE0mntrRGB XYZ acsp-desc$rXYZgXYZ(bXYZ<wtptPrTRCd(gTRCd(bTRCd(cprt<mluc (…….)'
}
}
Is there a way to handle results like this? I tried to use lambda functions with response.results, but then I'm getting '$var must be an object' error.
It seems that the my external API call blow up lambda functions (even return 1+2 throws an error)
Comments
-
Hi Albert
Could you please send your query to support along with a full screenshot of the external API response you're using in Xano (that includes the received image URL)?
-
@shenalharakh sent! Thanks
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback