I am receiving this error message from my XSJS each time I try to insert an image into my table.
Any ideas? Any thing I am missing?
/** Error **/
- ReferenceError: reference to undefined property $.request.entities[0]
- InternalError: dberror(PreparedStatement.execute): 287 - cannot insert NULL or update to NULL: Not nullable "PART" column at ptime/query/plan_executor/trex_wrapper/CheckValue.h:14
/** Set for my FileUploader **/
uploadUrl : "../services/insertImage.xsjs"
/** In my button press function **/
uploadDemandButton.upload();
/** Grabs the content from the FileUploader upload supposedly **/
fileContent = $.request.entities[0].body.asArrayBuffer();
/** Insert in table **/
pstmt.setBlob(4, fileContent);
Thank you!