I have a WCF Data Services running and JayData as a client. I now want to upload a file en put it in a blob in the database. I created a entity with a binary scalar property and a string property for the file name.
JaySvcUtil creates my JayDataContext.js just fine like this:
$data.Entity.extend('Entities.Plugin', {
'Id': { 'key':true,'type':'Edm.Int32','nullable':false,'computed':true },
'Data': { 'type':'Edm.Binary','nullable':false,'required':true },
'FileName': { 'type':'Edm.String','nullable':false,'required':true }
});
Does anybody know how to upload a file to WCF Data Service using Javascript?
Thank you