Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: File Upload from Controller to Server side xsjs

$
0
0

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!


Viewing all articles
Browse latest Browse all 9165

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>