Power-Fx icon indicating copy to clipboard operation
Power-Fx copied to clipboard

File types

Open MikeStall opened this issue 1 year ago • 1 comments

Do we need a file type?

  • relationship to DType.File? / Dataverse type?
  • getting files from connectors
  • common type for PAD, PVA

This may be a purely SDK issue - from a language perspective, these would look like Records. Existing type checks should also ensure that we can't assign between real files and records.

MikeStall avatar Aug 03 '23 15:08 MikeStall

Also, we need to think how do we want to model this. One way is that the file is just the array of bytes. Another way is that the file is an array of bytes + metadata such as name, mime type.

Independently of the representation, we should have a way to:

  1. Get the file length
  2. Get Base64, maybe using Text function

For our needs, "Binary" format can be enough.

Robulane avatar Aug 03 '23 16:08 Robulane