pCloud / pcloud-sdk-java

The official pCloud Java SDK repository
https://pcloud.github.io/pcloud-sdk-java/
Apache License 2.0
39 stars 14 forks source link

Thumb info #45

Open msguneyy opened 4 weeks ago

msguneyy commented 4 weeks ago

We recently added pCloud to our system using your Java SDK, which has been very helpful. However, we would like to display thumbnail links in our component (screenshot attached as an attachment).

The issue we’re encountering is that we cannot retrieve thumbnail data from the SDK directly. We need to request information for each file individually to access thumbnail data. According to this documentation, metadata includes thumbnail information, but it isn’t accessible through the RemoteEntry class provided by the SDK.

It appears that other pCloud SDKs, such as JavaScript and Swift, have thumbnail information readily available, unlike the Java SDK. Could there be any updates planned for the Java SDK to include thumbnail data? Or should we consider writing our own requests to obtain file and thumbnail information directly from pCloud? image

georgi-neykov-hub commented 3 weeks ago

@msguneyy support can be added in this project as well. Are you talking about the thumb field? It can be added with little effort. Can you tell me a bit more about your use case? I presume you will also need a way to actually load a thumbnail for a file once you know it supports thumbnail generation.

msguneyy commented 3 weeks ago

If available, we display the thumbnail data for the file. In the screenshot, the thumbnail data for all PDF files in Google Drive is shown as “example seenapsesAll2023...”. However, we cannot access this information via the pCloud Java SDK, so we are trying to retrieve it through core requests outside of the SDK. Our goal is to display the thumbnail if the data exists.

msguneyy commented 3 weeks ago

image

georgi-neykov-hub commented 3 weeks ago

@msguneyy We're working on an update that will support thumbnail generation (direct & via link). Expect an update by the end of this week.

msguneyy commented 3 weeks ago

Thank you

georgi-neykov-hub commented 2 weeks ago

@msguneyy , there's a new version of the library(1.10.0) that has thumbnails support. Plase review the changes and let me know, I'll keep the issue open for a few more days to collect feedback.

msguneyy commented 2 weeks ago

We will control it. And let you know . Thank you

msguneyy commented 2 weeks ago

when hasThumbnail is true , we call api for get thumbnail link, it would be nice if we would have link too while hasThumbnail exists. image