Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thumbnail value null for pdf document in setMessageObserver #85

Open
Ramaraju1992 opened this issue Aug 3, 2021 · 2 comments
Open

Thumbnail value null for pdf document in setMessageObserver #85

Ramaraju1992 opened this issue Aug 3, 2021 · 2 comments

Comments

@Ramaraju1992
Copy link

Ramaraju1992 commented Aug 3, 2021

when I receive a new message i added listener like below,

webex.messages().setMessageObserver(
	new MessageObserver() {
		public void onEvent(MessageEvent event) {
			if (event instanceof MessageReceived) {
				Message currentMessage = ((MessageReceived) event).getMessage();
				List<RemoteFile> messageFiles = currentMessage.getFiles();
				RemoteFile messageFile = messageFiles.get(0);
				Log.e("thumbnail value ==> ", messageFile.getThumbnail());
			}
		}
	}
);

Thumbnail value null if I receive new message with document(pdf).
and when I receive Image file, thumbnail value exists.
please refer below screenshots.
PDF File
RemoteFile Response for PDF: File{fileSize=1209423, version='a0e8407c27b54b2d9494a829e4c1a957', author=null, mimeType='application/pdf', updated=null', contentId=e78d5af0-d57d-4a21-ae43-7396c627fb20', image=', isHidden=false}
image

Image File
RemoteFile Response for Image: File{fileSize=20609, version='89e7edd09bc94bb8860e3312b31e2dc0', author=null, mimeType='image/jpeg', updated=null', contentId=a0697586-ba52-4829-8091-dde1972ae648', image=Image{url=https://files-api-k.wbx2.com/v1/spaces/adeddae9-deca-41f5-bee2-987adabb1b73/contents/f9a22dfe-8916-45ed-883c-3bb681599eae/versions/f1a016a5dedc494991c7087e6aebd932/bytes, width=306, height=540}', isHidden=false}
image

and when fetch messages using webex.messages().list, thumbnail value exist or same message file
image

@jbenyovs
Copy link

jbenyovs commented Aug 3, 2021

@Ramaraju1992 can you please clarify if you are using the Android SKD 2.8 or 3.0 version? Is the issue reproducible with the KitchenSink app: https://github.com/webex/webex-android-sdk-example ?

@Ramaraju1992
Copy link
Author

@jbenyovs we are using Android SDK v2.8.0.
and it is still same in Kitchen Sink App too.
please find below screenshot for reference.
image

And one more Observation is when i try to send .tiff formatted image files bitmap value is null even from webex.messages().list.
please refer below screenshot
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants