Skip to Content
0
Former Member
Jun 11, 2009 at 09:11 AM

I got a question about data volume calculating.

24 Views

create object lo_gzip.

node_z009 = wd_context->get_child_node( name = 'Z009' ).

node_z009->get_static_attributes( importing static_attributes = l_z009 ).

wd_context->get_attribute( exporting name = 'DATA' importing value = l_z009-data ).

content_len = strlen( l_z009-data ).

lo_gzip->compress_text( exporting text_in = L_Z009-DATA TEXT_in_len = content_len compress_level = 6

importing gzip_out = content gzip_out_len = l_z009-len ).

L_Z009-DATA = CONTENT.

___________________________________________________________________________

I zipped xstring data to make data volume smaller.

For calculating the data volume I counted the number of characters.

The number gets smaller about 40% after I zipped the xstring data.

Dose it mean the data volume got smaller after I zipped the xstring data?

Thanks for reading.

Edited by: JONG HWAN PARK on Jun 11, 2009 11:13 AM