I am need to set images and text in the listview...
While retrieving information from API call.. and set it in VIew... getting following Error.
var getImageData = resultMessageData.Msg.MessageFiles ;
this.imagecheck = new ImageSource();
this.imagecheck = this.converToImageSource(getImageData[0].File);
console.log("convert image called after");
messageText = {"UserToIdInMsg": resultMessageData.UserTo.UserID, "Text": resultMessageData.Msg.Text, "Date": resultMessageData.Msg.Date,"isIncoming" : false, "isImage" : true, "picture": this.imagecheck ,"baseImage64": "image"};
console.log("convert image set");
<Image row="0" col="0" src="res://login_icon" class="avatar" stretch="aspectFit"
opacity="{{ !item.isIncoming ? 0 : 1 }}" > </Image>
<StackLayout row="0" col="1" class="chat">
<Label text=" {{item.Text}}" textWrap="true" class="{{ item.isIncoming ? 'incomingMessage bubble' : 'outgoingMessage bubble' }}"
horizontalAlignment="{{ item.isIncoming ? 'left' : 'right' }}" [visibility]="item.isImage ? 'collapsed' : 'visible'"></Label>
<Image src="{{item.picture}}" height="150" width="150" stretch="fill" class="{{ item.isIncoming ? 'incomingPhoto bubblePhoto' : 'outgoingPhoto bubblePhoto' }}"
horizontalAlignment="{{ item.isIncoming ? 'left' : 'right' }}" [visibility]="item.isImage ? 'visible' : 'collapsed'"></Image>
</StackLayout>
CONSOLE ERROR file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:342:26: Unhandled Promise rejection: unsupported URL ; Zone: <root> ; Task: Promise.then ; Value: Error: unsupported URL file:///app/tns_modules/tns-core-modules/http/http-request.js:72:37
UIApplicationMain@[native code]
start@file:///app/tns_modules/tns-core-modules/application/application.js:251:26
bootstrapApp@file:///app/tns_modules/nativescript-angular/platform-common.js:68:28
bootstrapModule@file:///app/tns_modules/nativescript-angular/platform-common.js:56:26
anonymous@file:///app/main.js:35:57
evaluate@[native code]
moduleEvaluation@[native code]
[native code]
promiseReactionJob@[native code]
CONSOLE ERROR file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:344:22: Error: Uncaught (in promise): Error: unsupported URL
Hi @pap5508, I am experiencing the same problem. Di you find a solution for this?
Also having this issue with exact same message. Any ideas?
Also having this issue with exact same message. Any ideas?
Most helpful comment
Hi @pap5508, I am experiencing the same problem. Di you find a solution for this?