cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Translate the entire conversation x

covert application data to a File

JM_10276355
10-Marble

covert application data to a File

Hi,

 

is any one aware of getting the file from Application data, I have a attachment XML as secondary content to EPM Document, I want the XML as File rather than applicationContent and pass the File as a parameter to other method.

 

Anyone aware of this please add in your comments or suggestions.

 

Thanks

 

ACCEPTED SOLUTION

Accepted Solutions
HelesicPetr
22-Sapphire II
(To:JM_10276355)

Hi @JM_10276355 

What do you need? 

get stream from application data ? or do you need ty save file to Application Data? 

 

There is method that get the file as a InputStream from Application data

here is example

InputStream stream = ContentServerHelper.service.findContentStream(appData);

 

Also there is method how to save file as a InputStream to the Application Data. 

ContentServerHelper.service.updateContent(contentObject, newApplicationData, byteArrayInputStream);

 

hope this can help

 

PetrH

View solution in original post

1 REPLY 1
HelesicPetr
22-Sapphire II
(To:JM_10276355)

Hi @JM_10276355 

What do you need? 

get stream from application data ? or do you need ty save file to Application Data? 

 

There is method that get the file as a InputStream from Application data

here is example

InputStream stream = ContentServerHelper.service.findContentStream(appData);

 

Also there is method how to save file as a InputStream to the Application Data. 

ContentServerHelper.service.updateContent(contentObject, newApplicationData, byteArrayInputStream);

 

hope this can help

 

PetrH

Announcements
Top Tags