Pictures not included in binary project

Pictures imported into a project show up in the IDE (e.g. one can select a picture for an ImageViewer).

However, they do not seem to be included when one saves the project as a binary project.

Is there a solution to this?

1 Like

What do you mean by “not included”? When you add a picture to a project, it is not copied into the project, it creates a reference to the file on disk.

Can you give us more detail as to what’s happening?

Are not part of the binary. People may think that the binary contains everything, but images are external.

Yep. That’s by design.

1 Like

There is an option called ‘Collect Project Items
’ under Xojo’s File menu, but that will also copy plugins and will save to a new location. Maybe that will help you?

What this “Collect project items” doesn’t do is to copy all files you specify in the build settings under “CopyFiles”


But I opened an issue a while ago for that (o;

1 Like

The way I handle this is to base64 encode my images and save them as string constants. Then I load them into picture objects using Picture.FromData(DecodeBase64(Constant)). It also prevents the image files from being required in distribution too.

4 Likes

Christian,

That’s what I decided to do. Should have it put together shortly.