[Openstack] [OpenStack] [Swift] Is it possible to create chunked upload?

Alexandr Porunov alexandr.porunov at gmail.com
Tue Aug 23 16:09:44 UTC 2016


Hello Jay,

Unfortunately I don't know python. I am writing on java. Could you explain
me briefly what I have to use to send chunks in the Swift and then combine
those chunks? Or maybe we can append bytes to file somehow?
If I understand correctly I need to store my first chunk as an individual
object (0 - 4095 bytes) and then when I recieve the second chunk (with 4096
- 8192 bytes) I have to append that chunk to the first object. Is it
correct? How can we append second chunk?

Sincerely,
Alexandr

On Tue, Aug 23, 2016 at 5:49 PM, Jay Pipes <jaypipes at gmail.com> wrote:

> On 08/23/2016 10:13 AM, Alexandr Porunov wrote:
>
>> Hello,
>>
>> My server accepts files in chunks (4 Kbytes each chunk. File's size can
>> be till 8 GB). Is it possible somehow store those chunks in Swift like a
>> single file? Does somebody know any solution to solve this problem?
>>
>
> Yes, you can do this.
>
> The Glance Swift driver shows an example of how to do this:
>
> https://github.com/openstack/glance_store/blob/master/glance
> _store/_drivers/swift/store.py#L829-L944
>
> Best,
> -jay
>
> _______________________________________________
> Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstac
> k
> Post to     : openstack at lists.openstack.org
> Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstac
> k
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160823/0fa4eb28/attachment.html>


More information about the Openstack mailing list