How to convert this into a file
Options
Mq1989
Member ✭
Hello I’m using the clip drop api from stable diffusion and I’m getting an image returned in this format. I’ve been told this is Jfif format but any idea on how to convert this into a file resource and ultimately an image url.
Tagged:
Answers
-
Nice work wrangling SD into xano!
this looks like a JPG. To save it, use content upload-make file resource from data and feed it this result. You can name it a filename at this point too (Eg image.jpg) Then you can content upload-make an image attachment to generate metadata structure from that file resource. Add that data structure to the appropriate image field in your table and you’re good to go.
-
Ray! Thank you! This worked like magic!
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