Skip to main content
3-Newcomer
March 13, 2025
Question

Windchill Odata rest service : stream primary content file

  • March 13, 2025
  • 2 replies
  • 530 views

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

2 replies

Catalina
Community Moderator
March 13, 2025

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
joe_morton
18-Opal
18-Opal
March 27, 2025
3-Newcomer
March 27, 2025

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