[ 
http://opencast.jira.com/browse/MH-9154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31847#comment-31847
 ] 

Tobias Wunden commented on MH-9154:
-----------------------------------

Ruben, when dealing with large files it may make sense to keep using the 
streams you get at the REST endpoint level (you usually get an InputStream, not 
a File object) and it would not be efficient to store this file locally, then 
call File.length() and then move the file on to e. g. the backend store such as 
the working file repository or the archive element store. Instead, we can deal 
with the fact that it's a stream and keep counting the bytes as they flow by. 

With regards to being able to send the files back to the client, again your 
method works if you have access to the file wich is not the case with the 
Episode service's elment store. That service is dealing with streams to enable 
different implementations that may be remote, in which case you want to be 
dealing with streams rather than files.

Regarding your EDIT, in this case the service is doing everything in the 
correct way, it's asking the inspection service to determine the size. 
Unfortunately, there are two bugs, one in the inspection service (it is not 
setting the size even though it has it) and one in the mediapackage (the "size" 
field is never serialized to JAXB entities) that prevent these things from 
working.
                
> Edit link does not work on Episode tab
> --------------------------------------
>
>                 Key: MH-9154
>                 URL: http://opencast.jira.com/browse/MH-9154
>             Project: Matterhorn Project
>          Issue Type: Bug
>          Components: Architecture & Services
>    Affects Versions: 1.4
>            Reporter: Tobias Wunden
>            Assignee: Lukas Rohner
>            Priority: Release Blocker
>             Fix For: 1.4
>
>         Attachments: MH-9154.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
http://opencast.jira.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
Matterhorn mailing list
Matterhorn@opencastproject.org
http://lists.opencastproject.org/mailman/listinfo/matterhorn


To unsubscribe please email
matterhorn-unsubscr...@opencastproject.org
_______________________________________________

Reply via email to