[opencms-dev] R: create resource with api
Valerio Synclab
v.vianello at synclab.it
Tue Jul 6 11:57:15 CEST 2010
Thank you Achim,
My fear is the RAM that should be the first bottleneck when many users try
uploading files in the same time.
Anyhow I will let you know if I experiencing this problem.
Kind regards,
Valerio.
-----Messaggio originale-----
Da: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
Per conto di Achim Westermann
Inviato: martedì 6 luglio 2010 11.39
A: The OpenCms mailing list
Oggetto: Re: [opencms-dev] create resource with api
Hi Valerio,
no, there is no full streaming support in OpenCms yet. While the low level
driver layer (VfsDriver.writeContents(...)) already supports using a stream
the higher levels and CmsFile rely on carrying the complete content in RAM.
Never had any troubles with this. After all you are able to set
maxfileuploadsize in opencms-workplace.xml. Note that even a full streaming
API would not prevent end users from uploading so much that your database
gets bloated.
HTH,
Achim
> Hi list,
>
>
>
> I would ask you, if you know a better way to create a new resource in
> Opencms VFS through the API, I am currently using the following method:
>
>
>
> cmsObject.createResource(resourcename, type, content, properties)
>
>
>
> the problem I see is that this method uses a byte array as input parameter
> for the content, and I think that this should be a problem if many
> concurrent users use my function to upload a new file
>
> in OCMS VFS.
>
>
>
> Is there a method that uses a inputstream for the content?
>
>
>
> Kind regards,
>
>
>
> Valerio
>
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list