dbTalk Databases Forums  

Containers, file size and references

comp.databases.filemaker comp.databases.filemaker


Discuss Containers, file size and references in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Bill Marriott
 
Posts: n/a

Default Re: Containers, file size and references - 10-19-2005 , 01:49 AM






Yes, I understood you, I just thought to be a little wise-acre

It's a pretty good scheme! And the great news about FileMaker 8 is that it
can be accomplished without the use of plugins as well.

Bill

"Remi-Noel Menegaux" <rnmenegaux (AT) free (DOT) fr> wrote

Quote:
OK, I was not clear.
The 'Picasso012.jpg' is the name of the actual file of the image of that
Picasso painting in JPEG format.
Now, 'Picasso012' is the Painting_ID of that painting in my regular FMP
files.
So by withdrawing the '.jpg' from the name of the image file I get only
'Picasso012' which serves as a link parameter in my relationships between
'Images.fp5' and the rest of my FMP files.
Am I clearer this time ?
Remi-Noel.


"Bill Marriott" <wjm (AT) wjm (DOT) org> a écrit :
Is .fpg some kind of "French JPG?"

Bill



Reply With Quote
  #12  
Old   
ursus.kirk
 
Posts: n/a

Default Re: Containers, file size and references - 10-19-2005 , 02:11 PM






Quote:
Filemaker is not a picture/pdf/wav file storage program.

Oh.. then why does it have features like "insert picture", "insert
sound", "insert file" and "insert object"?
dunno, to store very small images??

Quote:
For my pics I always use a calculated container,

Could you please describe briefly how you created the calculated
container (what kind of formula?) and how you are using it?

here we go:
FileMaker 7 offers the "Insert Picture/QuickTime/File" script commands to
place data into a container field. However, these script steps are limited
in that they must explicitly identify the particular file to be imported.
(You cannot express a path using a calculated value.)

If you want to dynamically control the contents of a container field, you
can instead use either the "Set Field" script step, or auto-enter options.
Both will accept a calculated value as a parameter.

The calculation must result in a string representing the file path in the
same format used by the "Insert Picture/QuickTime/File" script commands.
(Just an in any calculation, literals must be enclosed in quotes.) Supported
formats for the pathname include the following:

file:directoryName/fileName
filemac:/volumeName/directoryName/fileName
filewin:/driveletter:/directoryName/fileName
filewin://computerName/shareName/directoryName/fileName
image:directoryName/fileName
imagemac:/volumeName/directoryName/fileName
imagewin:/driveletter:/directoryName/fileName
imagewin://computerName/shareName/directoryName/fileName
movie:directoryName/fileName
moviemac:/volumeName/directoryName/fileName
moviewin:/driveletter:/directoryName/fileName
moviewin://computerName/shareName/directoryName/fileName

For example:

Set Field [Personnel::idPhoto; "imagewin:/D:/Photos/" &
Personnel::employeeID & ".jpg"]

will set idPhoto to show "23456.jpg" from the D:/Photos directory, when
employeeID is 23456.

When a container field is set using this method, the files are always stored
"by reference" only. They are not copied into the FileMaker database file.
If the original file is moved or renamed, FileMaker will display "the file
cannot be found" in the container field. If the original file is modified,
the new contents will be shown when it is updated.

Calculations may also reference container fields. for example, if you import
a picture "rose.gif" into field, "myImage" then the calculation

checkPic (calculation, text result) = TestDB::myImage

will return:

- "rose.gif" if you imported the picture from disk and stored it within
FileMaker
- "?" if you placed it into the field via the clipboard
- "size: 630,240
image:../../My Documents/My Pictures/rose.gif
imagewin:/D:/My Documents/My Pictures/rose.gif" if you imported it from
disk and stored only a reference to the file.

Using both techniques together, you could handle a situation where a
directory of images had to be moved or converted to a different format,
without re-importing them. For example:

Substitute ( Catalog::ProductImage; "/images/"; "/archived/")

If all the images referenced in your file had been moved to the "archived"
directory.

Ursus




Reply With Quote
  #13  
Old   
aditsu@gmail.com
 
Posts: n/a

Default Re: Containers, file size and references - 10-25-2005 , 12:39 AM



Thank you all for your replies. I will review when I have some more
time.
I also noticed that FM behaves much better with JPEG images (at least
if the resolution is not very high).

Adrian


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.