Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Import Images "Match Records"

Featured Replies

  • Newbies

Hi,

I'm trying to import a folder with several thousand images, and assign the images to specific records already in my DB. I have the files all as "ID#.tif", where the ID# is what I want to match by in filemaker.

Unfortunately, since there is the ".tif" at the end, I cannot "match records by name" because FM doesn't separate the extension from the filename. Is a good work-around for this? There are too many images to load them in by hand. I tried removing the ".tif" from the filename, but then FM no longer recognizes the filetype as readable (no surprise).

I'm looking at the search results for people with similar problems—I would like to store my images in the container rather than as references. (They're rather small—40kb chemical structures.)

Alternately, I could just append ".tif" to the end of all my ID#s (they're not the index IDs, so it's OK) and then remove the ".tif" after import, but I cannot figure out a way to do that either.

Thanks!

Edited by Guest

  • Author
  • Newbies

Ok well, I managed to figure it out in a perhaps stupid way, but I couldn't find any other help for doing what I wanted:

I exported the data to Excel, copied the "ID#" column and added a "ID#.tif" column. I then re-imported those two columns in, added a variable for "IDTif", put the "ID#.tif" data in that vector, then imported the images matching the filename to "ID#.tif". It's completely inelegant, and I hope there's a better way to do this.

(I'm new to FM; I've been using SQL/python/php for years. Kind of ironic how difficult I find this simple task to be...)

Actually, it is pretty easy. Create a calculation field, with Text result.

your id field & ".tif"

  • Author
  • Newbies

Ah... thanks, much better than re-importing.

Is there a way to do it straight off from the import, though? (I.e. can I change the way 'match' works, or does it have to be perfect correspondence?)

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.