Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Image support to the new In-Memory File Storage capability #177

Open
10 tasks
jordimontana82 opened this issue Feb 2, 2025 · 0 comments
Open
10 tasks
Labels
enhancement New feature or request scope-core

Comments

@jordimontana82
Copy link
Contributor

Starting with FXE versions 2.6 / 3.6, a new In-Memory file database has been added. Check the docs for more info: https://dynamicsvalue.github.io/fake-xrm-easy-docs/quickstart/file-storage/

However, Image type support was descoped in orde to give priority to other fixes. This issue will keep track of what's necessary to bring Image type support.

https://learn.microsoft.com/en-us/power-apps/developer/data-platform/image-column-data?tabs=sdk#image-file-types

Same messages for Upload / Download can be used for images, with the below considerations

  • Images: DeleteFile is not supported for Images
  • InitializeDownload and DownloadBlock will fail if the ImageAttributeMetadata has CanStoreFullImage to false (only supported if True)
  • Images: When retrieving Image data via .Retrieve, only the thumbnail is retrieved, the full image needs a separate download.
  • Images won't be retrieved if ColumnSet.All is used, they need to be queried explicitly.
  • Only one PrimaryImage can be set on create at the same time.
  • Images: If CanStoreFullImage in metadata is set to true when uploading images, then images are stored like normal files.
  • Images: with files, any file extension that is not blocked it's allowed, but with Images, only these file formats are supported: gif, jpeg, tiff, bmp, & png (fixed list not configurable via Organization)

Images: Special behaviour, columns have extra added internal columns: imageId, URL, and timestamp.

  • Make the assumption the imageId is the fileId
  • Timestamp will be generated automatically on add / update
  • URL is relative url with the following format:

/Image/download.aspx?Entity=<entity logical name>&Attribute=<image column logical name>&Id=<image id value>&Timestamp=<time stamp value>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scope-core
Projects
None yet
Development

No branches or pull requests

1 participant