7.2.1.0
SR 16
Hi, I have been constantly plagued by JIWA returning NULL on some inventory items, but not on others when using the same API method.
I have found out why. It is because the images in JIWA are stored as varbinary(MAX) in the database instead of using a URL to reference the file by filename and path to a CDN or similar.
Personally on many of my sites I use Amazon CDN and reference them by file path etc. This works well for me. The images can be pulled direct from the CDN when a page is rendered. They can be easily uploaded using their API.
One item in the database had 37,500 characters in the Picture field. Several others were the same.
Images that were 70KB, were fine, but some images were 1655KB or similar and these were the ones causing errors. I am not the one that inserts the images into JIWA, so have no control over image size or file type etc.
Once the field was made NULL by selecting the default image or SQL, the problem resolved. I then re-inserted the image and tried again, and sure enough it failed.
Just letting you know about this.
Thank you.
Cheers


