Hi! I’m receiving file using SAP. After file receive, I call tizen.content.scanFile and after scan success I’m calling tizen.content.createThumbnail which returns “Unknown error” with “Unsupported content” message.
If I try to send file back to phone, file opens correctly. File made with phone camera.
Photo sample and error screen in attachment
What am I doing wrong?
Code sample:
tizen.content.find(function(contents){
contents.forEach(function(c){
if (c.contentURI === path){
tizen.content.createThumbnail(c, function (path){
}, function(error){
});
}
})
})
Are you sure found content under path is image file? Log into console ‘path’ value to make sure what it is. You can even check by showing it in your app by calling img src=“path”
Maybe Tizen creates a thumbnail image after opening Galley app? Could you check it? Obviously it doesn’ help you. You will have to create programming thumbnail after reading a file to javascript code.