Access to images in /resources

Hi all,

is there a way to access the raw image on the filesystem from the plugin?
With the REST API I can GET /resources/:id/file but need the token. The module does not allow this in .get (yet?). The settings does not allow to access the local base path of the file system.

Any idea is greatly appreciated!


I am trying to create a plugin for making a webview of thumbnail versions of images across all notebooks and notes.

Here is what I would like.

  1. get resources using const resources =["resources"] )
  2. iterate over all to retrieve the id.[png|jpg|gif]
  3. retrieve raw file from file system
  4. create thumbnail with e.g.
  5. create < a href > links with from table note_resources in sqlite as image gallery in webview
  6. ???
  7. profit from visually searching the ca. 500 images in my notes

I think["resources", resourceId, "file"] should work?

1 Like

Brilliant, it does!
Thanks you for the fast and helpful reply!