r/shortcuts • • 3d ago

Help Data Jam with image problem

I am trying to take an image taken from the clipboard and add it to a Data Jar. The image appears t to add correctly to the jar yet when I Get Value, instead of returning and image I seemingly get a file name. Anyone know what I am doing wrong or how to fix the problem?

https://www.icloud.com/shortcuts/cf866eab813c4d8b9bc6019d12dd18b4

4 Upvotes

3 comments sorted by

1

u/madebysolo 3d ago

That's expected — Data Jar stores images as files, so Get Value usually comes back looking like a filename. Tap that magic variable and set its type to Image, and it should behave like a photo again.

1

u/z1ts 12h ago edited 12h ago

I received the same error as u/mvan321 on iOS 27.2.1 however on iOS 17 it works without any changes. Didn’t have a device on iOS 18 to test on.

The only work around I found are:

  1. Encode the desired image to base64 and store results as a Key type Text key in DataJar.
  2. Or outside the DataJar store storage use the Get Value for Key where Key is any invalid key (like a [space] for example) to avoid the action’s error “ⓘ The key path cannot be empty.”. Then use the (If Values Does Not Exist option) in the DataJar action and Choose a File option of an image or a base64 text file which in turn would have to be decoded.

FYI u/madebysolo

0

u/mvan231 3d ago

I get an error when it tries to get the value for key. It just says there was a problem running the shortcut.