# Photo Displays in HTML Area Web Client not in Smart Client

**URL:** <https://forum.servoy.com/t/photo-displays-in-html-area-web-client-not-in-smart-client/17591>\
**Category:** Classic Servoy\
**Created:** [October 30, 2013, 3:33pm UTC](https://forum.servoy.com/t/photo-displays-in-html-area-web-client-not-in-smart-client/17591 "2013-10-30T15:33:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anil](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@anil](https://forum.servoy.com/u/anil)\
**Post date:** [October 30, 2013, 3:33pm UTC](https://forum.servoy.com/t/photo-displays-in-html-area-web-client-not-in-smart-client/17591/1 "2013-10-30T15:33:56Z")

</div>

Hi,

I have an HTML area on a standard Servoy 7.2 form. The dataprovider for the form is a form variable.

I have a photo, whose binary data is stored in a text field (UDM.contact\_notes) and not a media field (mobile client 7.2 does not support blobs currently).

The mobile solution displays the photos fine (in a bean).

The back end solution, running the Web Client also display the photos fine in an HTML area. However, if I switch to the Smart Client then the photo is not displayed.

Is this a bug in the Smart Client or am I missing something?

Here is the code below (all 3 lines of it) :-

/\*\*

- @properties={typeid:35,uuid:“25F4E69B-758D-4AC9-A35A-2D221E3E0D4D”,variableType:-4}  
\*/  
var mynewimage = null;

/\*\*

- @properties={typeid:35,uuid:“1C0952D6-1A4A-4A78-B322-6FBF2B26D23E”,variableType:-4}  
\*/

/\*\*

- Perform the element default action.
- 
- @param {JSEvent} event the event that triggered the action
- 
- @private
- 
- @properties={typeid:24,uuid:“04645217-9C2E-429D-B2CD-F68FCBCF2C1D”}  
\*/  
function onActionPreview(event)  
{  
forms.contacts.mynewimage = ’ ![](data:image/jpeg;base64,' + foundset.contact_notes + ') ’  
elements.myimage.requestFocus();  
}

I have attached a pdf with the screenshots from both the Web and the Smart Client.

[attachment=0]Web Client Ok Smart Client Bad.pdf[/attachment]

Thanks

[Web Client Ok Smart Client Bad.pdf](https://forum.servoy.com/uploads/short-url/ruTXZesdkROL2slHM94HGPa7Ohg.pdf) (234 KB)
