ERAttachment.createERAttachment
ERAttachment.createERAttachment
- Subject: ERAttachment.createERAttachment
- From: Jesse Tayler <email@hidden>
- Date: Mon, 02 May 2011 14:30:04 -0400
I'm trying to create an ERAttachment via ERRest,
I didn't see an ERRestRoute for uploading file attachments but maybe that's what I'm missing?
I get a creation error while trying to create ERAttachment, and I realize I likely should be creating the ERAttachmentData object first, or more likely, find the ERRestRoute that's best for uploading a new file attachment?
NSData posterData = (NSData)dic.valueForKeyPath("poster");
ERAttachment attachment = ERAttachment.createERAttachment(editingContext(), true, new NSTimestamp(), (String)dic.valueForKeyPath("mimetype"), (String)dic.valueForKeyPath("filename"), false, sizeInteger, webPathString));
user().setPoster(attachment);
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden