Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Translate the entire conversation x

Windchill Odata rest service : stream primary content file

HK_8689240
2-Explorer

Windchill Odata rest service : stream primary content file

Version: Windchill 12.1

 

Use Case: am trying to retrieve the primary content of WTDocument, Am trying to use "type":"Edm.Stream", but insuccessful. Could you please suggest the right approach


Description:

download primary content using Odata Rest Service

3 REPLIES 3

Hi @HK_8689240 

 

Thank you for your question! 

 

I’d like to recommend to bring more details and context to your initial inquiry. 

Please add screenshot(s) to better understand what you are trying to do in your process. 

 

Please refer to this guideline to make your questions more likely to receive a quick and useful answer. 

This will increase your chances to receive meaningful help from other Community members. 

 

Thank you for your participation and please let me know if you need further assistance! 

 

Best regards,

Catalina
PTC Community Moderator

Hello Joe,

 

The below return type stream the file, OOTB API return only the URL

 

"new Property(EdmPrimitiveTypeKind.Stream.toString(), zipFileName + ZIP_EXT, ValueType.PRIMITIVE, IOUtils.toBufferedInputStream(fis))" for "Edm.Stream" type

Announcements


Top Tags