Error when attempting to add object with byte array.

Apr 28, 2012 at 2:38 PM


When I create an action taking a byte array to be used to attach a document to an entity I receive the following error when trying to save the document entity object.

NakedObjects.Reflector.DotNet.Facets.Collections.DotNetCollectionFacet+<PageInternal>d__0 must be marked as public so it can be introspected.

I've not found any reason or solution for this in the help file or by my old friend google. I'm not sure whether I'm trying to do this the correct way. Any help would be greatly appreciated.



Apr 28, 2012 at 4:24 PM

Naked Objects  supports byte array as a property type, but I can't remember if it supports byte array as an action parameter  (at least, I don't think I've ever tried it).

But is there any reason why you're not using the standard patterns in the documentation for handling file attachments? i.e., using the FileAttachment (or Image) type, from which you can then extract the byte array and other information.