External access to images inside encrypted Database volume not working

Hi all, I have an issue regarding access from Tinderbox to an image inside my Devonthink encrypted database.
In Tinderbox I include a link like “<img src=“file://” width=1000px>” with correct path to the image. I tested the path manually in the terminal by wandering from /Volumes to the image by “cd” and it is basically accessible.

But neither in Tinderbox or in Safari, the image is shown.

Any idea ?

Thanks for your support.

Kind Regards
Ralph

The file protocol requires three slashes. It would look basically like this:
file:///Users/you/...
Does it? It makes no sense to redact the URL here because then nobody can spot any errors with it.
You could also paste the complete URL into your browser’s URL field and see if that works.

Using file URLs to items inside DEVONthink’s databases is highly discouraged, this might break easily e.g. after renaming/moving/editing. And also when an encrypted database is closed.

1 Like

This was exactly what I was doing. I took the path from the browser URL field and pasted it into Tinderbox including 3 slashes.

When the database is closed, nothing will work. This was clear for me. But when it’s open? Its read-only access, no update to the file nor any movement. Its only kind of preview similar to an external markdown editor.

I thought this should work.

Any alternative solution I can go with?

Tinderbox might need full disk access.

Thanks for the hint. I checked it and full disk access is given. Will ask in Tinderbox forum, if there is any chance to take a look into the logs.

Did you percent-encode the URL?

In Safari with a proper URL of file:///Volumes/for%20compacting/for%20compacting.dtBase2/Files.noindex/jpeg/3/IMG_27A3D7F68D9C-1.jpeg

But again, note @cgrunenberg’s admonition that using a file:/// URL is not a good idea.

Yes, I had percent-encode the URL. Was done perfectly by Safari. And in another location, the adapted link perfectly worked.

Is there another method available to access the image from outside of Devonthink?
Or should I organize my images outside of Devonthink with indexing the filesystem?

Thanks for your support.

Kind Regards
Ralph

You’re welcome.

Is there another method available to access the image from outside of Devonthink?
Or should I organize my images outside of Devonthink with indexing the filesystem?

That can only be answered by what you’re trying to do and if the situation requires a change.

Why would you index or link to the file? If this is a static image, why not just import it into the Tinderbox document so there’s a copy preserved there?

Of course, just copy to Tinderbox is a valid way to go.
Disadvantage is growing file size of the Tinderbox file. In my youth size was always an issue :wink:
And I try to have all my content only in Devonthink as my central repository.

But, world is not perfect. Will go and take a copy in Tinderbox.

Thanks a lot!

Kind Regards
Ralph

LOL :wink:

And you’re welcome :slight_smile: