14
Views
3
Comments
Solved
How can you have null in binary data on Image
Question
Service Studio Version
11.54.85 (Build 63794)

Hallo Outsystems Developer and Community 
i am new on OutSystems still learning about this low code i want to ask
is it possible if Image have Null binary data? because i got an error "Error Executing Query"

i think it because on my image, because i making Employee Directory on Training. 

i got error if user don't have image, if user have image the pop-up error did not show

i was thinking using if statement

If(GetEmployee.List.Current.EmployeePicture.Picture <> NullBinary(), GetEmployee.List.Current.EmployeePicture.Picture, (get default image from outsystem))
but i don't know how to get the default image

sorry for my bad english, and can anyone explain to me what to do, or any documentation that i can read about this. 
Thank you very much

2020-07-21 19-28-50
Rajat Agrawal
Champion
Solution

Hi @Michael Michael,

When you go below you have one image folder from there you can select any image which is in outsystem like below in the screenshot i did:


Hope this will helps you!!!


Regards,

Rajat

2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi @Michael Michael,

Or for the document you have resource folder in the data tab there you can add any file and like below image you can call it in the expression:

This is the way for only if you have file inside your application.


Regards,

Rajat

UserImage.jpg
Michael Michael

Thank you @Rajat Agrawal for the information, i gonna try this for my learning.
i find a way, i don't know this is the best practice or not but im using if on the widget tree.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.