How to calculate bytes received

Hai
i am transferring files in rmi by reading it contents & send it as argument to server. In this i want to find amount of bytes received by server for a file how to find this plz help me
Thanks in advance

From what I see, I assume that the client is making a block transfer request, and the server is responding with a byte array.
o The simplest way to figure out the total length of the file - up front - would be to have the file transfer start with some kind of "open" (RMI) message, and have that request receive the total file size as a return value.
o The user can total the length from each byte array, and that is how much FILE data he has received.

Similar Messages

  • How to calculate byte size of a string

    Hi forum;
    Can you tell me how can I calculate byte count of a string.

    Tahir wrote:
    I read somewhere that string 0123456789ABCDEFFEDCBA987654321089ABCDEF01234567 is 192 bit. Where as it is 48 Byte (one char = 1 byte) or 384 Bits. But 192*2=384. So whats this math? Any pointer?It depends what you mean by "byte count", because it's likely to depend on the character encoding you choose, but the definitive answer is probably to use getBytes(). For example:
    String s = "0123456789ABCDEFFEDCBA987654321089ABCDEF01234567";
    System.out.println(s.getBytes("utf8").length);displays 48, but
    System.out.println(s.getBytes("unicode").length);displays 98.
    Not quite sure why the extra 2 bytes, but I'm sure someone else will know.
    Winston

  • How to calculate No. Received days in BEx

    Hello Gurus,
    I have requirement as, need to calculated the number of days from received date. My data model is like as below,
    I have a multi provider ZMP_01 which gets gets data from 2 cubes, ZCU_01 and ZCU_02 and this ZCU_02 cube has a field called "Source System" and this filed will have data "ZDSO_05", "ZDSO_06", "ZDSO_07", "ZDSO_08".
    Now i need to caluculate the number of days (Current date - received date) for those whose Souce System is "ZDSO_05" & "ZDSO_07".
    Reveived data is one of the time characteristic in Multi Provider whic maintain 0CREATEDON for the item.
    I required your kind advise/help ASAP.
    thanks in advance
    Peter

    Hi,
    you can do it by using Formula Variable with Replacement path and simple Cstomer Exit Variable, you can see the following Artcile, in the same way you can do it.
    Calculating the Ageing of the Materials
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/calculating%20the%20ageing%20of%20the%20materials.pdf
    Thanks
    Reddy

  • How to calculate the number of sent/received emails of a certain domain

    Thank you for what you have helped me with!
    How to calculate the number of sent/received emails of a certain domain in a certain period? It is Messaging Server 5.2, Directory Server 4.2. Is there a log option for this?
    Thank you.

    Not sure where you find, "LOG_MESSSAGE_ADD". I don't actually find this option in the documentation.
    The domains that mails are coming from and being sent to are certainly logged in the normal mail.log, so why mess with additional logging options? If you're talking about "LOG_CONNECTION", I actually see no additional data that is useful to you.
    If you decide to change the option.dat, you do indeed need to
    imsimta cnbuild (note, it's not cnrebuild)
    imsimta restart
    If I were facing the same issue, I'd be looking at the log parsing perl script, and simply modifying it to do what I wanted.

  • How to  calculate salesperson commission from receivables TRX

    Hi All
    I need to know how i calculate salesperson commission from receivables trx
    Regards;

    Hi,
    If  you charge commission or brokerage as a service to other vendors and customers, then raising an Invoice for the Service performed can be checked in the database.
    It would be good, if you can give a detailed example of the business activity, so that we can further check.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Bytes Received/Packet received in CPI report

    Hey guys,
    I am working on a  client session report in Prime infrastructure and dont understand tthis report coloums
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Bytes received
    Bytes send
    Packet received
    Packet send
    Data retries
    18923
    32393
    113
    79
    0
    Can any one tell me what is the difference between Byte and a Packet, on ethernet world one packet is equal to 1500 bytes (MTU). My 2nd question how do they calculate Data retries ? Data retries in bytes or packets ?
    what results can we get from this coloums.
    Thanks

    In most computer systems, a byte is a unit of data that is eight binary digits long. A byte is the unit most computers use to represent a character such as a letter, number, or typographic symbol (for example, "g", "5", or "?"). A byte can also hold a string of bits that need to be used in some larger unit for application purposes (for example, the stream of bits that constitute a visual image for a program that displays images or the string of bits that constitutes the machine code of a computer program).
    Packet switching is a communications paradigm in which packets (units of information carriage) are routed between nodes over data links shared with other traffic. In each network node, packets are queued or buffered, resulting in variable delay. This contrasts with the other principal paradigm, circuit switching, which sets up limited number of constant bit rate and constant delay connections between the nodes for their exclusive use for the duration of the communication. When a unit of data, beginning at the application layer (top layer) is transmitted to lower layers, headers and trailers are appended to it. Once the unit of data reaches the IP layer and source and destination IP addresses are added to it, it then is known as an IP datagram. The unit of data, feeling a little bloated from having all this extra baggage is then sent to the link layer where source and destination MAC addresses are perpended to it. Now it is called a frame - and more accurately an Ethernet frame (if the physical layer is Ethernet). To be precise, the unit of data passed between the IP layer and the network interface card is really a packet of data. Thus, a packet can be an entire IP datagram or perhaps a fragment of an IP datagram.
    In computer networking, the maximum transmission unit (MTU) of a communications protocol of a layer is the size (in bytes) of the largest protocol data unit that the layer can pass onwards. MTU parameters usually appear in association with a communications interface (NIC, serial port, etc.). Standards (Ethernet, for example) can fix the size of an MTU; or systems (such as point-to-point serial links) may decide MTU at connect time.

  • How to calculate the row size

    Hi,
    I am having a table of 4 column. First column is varchar2(10), Second column is Number(5), Third column is char(10) and Fourth column is Number(12,2).
    Now how to calculate the size of each row. I want to know how much space it will take for each row.
    Thanx & Regards,
    Swarup

    For a complete discussion of storage requirements for different datatypes see the Oracle 8i Concepts manual.
    All Oracle documentation is available on-line via the 'Documentation' link on the OTN home page.
    Your Col2 NUMBER(5) will take 4 bytes if it holds a 5 digit positive or negative number.
    Your Col4 NUMBER(12,2) will take 7 bytes if it holds a number with 12 digits that is positive and will take 8 bytes if it holds a number with 12 digits that is negative.
    The following is from the Concepts manual Chapter 12 (Copyright by Oracle)
    Built-In Datatypes 12-9
    Internal Numeric Format
    Oracle stores numeric data in variable-length format. Each value is stored in
    scientific notation, with one byte used to store the exponent and up to 20 bytes to
    store the mantissa. The resulting value is limited to 38 digits of precision. Oracle
    does not store leading and trailing zeros. For example, the number 412 is stored in a
    format similar to 4.12 x 10 2 , with one byte used to store the exponent (2) and two
    bytes used to store the three significant digits of the mantissa (4, 1, 2). Negative
    numbers include the sign in their length.
    Taking this into account, the column size in bytes for a particular numeric data
    value NUMBER ( p), where p is the precision of a given value, can be calculated
    using the following formula:
    ROUND((length( p)+ s)/2))+1
    where s equals zero if the number is positive and s equals 1 if the number is
    negative.
    Zero and positive and negative infinity (only generated on import from Version 5
    Oracle databases) are stored using unique representations. Zero and negative
    infinity each require one byte; positive infinity requires two bytes.
    null

  • How to calculate work in process for maintenance order

    how to calculate work in process for maintenance order i.e raw materials not used

    Hi,
    Generally, when u create PR from maintenance order, account assignment category should be F. Cost of services first settles on the order when u create service entry sheet. Further it got settled onto settlement receiver given in order.
    If you want to change the category from F to K for maintenance orders then follow the IMG menu path as given below.
    Plant Maintenance and Customer Service > Maintenance and Service Processing > Maintenance and Service Orders  >
    General Data > Define Account Assignment Cat. and Document Type for Purchase Requisitions

  • How to calculate table size given the structure.

    Today i was asked how to estimate the size of the table given th transactions,.
    table has 90 column all varchar(10)
    How to calculate the size of table which has no data.
    Message was edited by:
    Maran.E

    hi,
    SQL> create table test as select * from all_objects ;
    Table created.
    SQL> create table test1 as select * from all_objects where 1 = 2 ;
    Table created.
    sql>select segment_name,bytes/1024/1024 "size", blocks
    from dba_segments
    where segment_name in ('TEST','TEST1')
    SEGMENT_NAME
          size     BLOCKS
    TEST1
         .0625          8
    TEST
             6        768regards
    Taj

  • How to calculate the HFM Cube size in SQL Server-2005

    Hi
    How to calculate the HFM Cube size in SQL Server-2005 ?
    Below query used for Oracle. Then what is query for SQL Server?
    SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'FINANCIAL_%' and owner='HFM';
    SUM(BYTES/1024/1024)
    SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'HSV FINANCIAL%' and owner='HFM';
    SUM(BYTES/1024/1024)
    Regards
    Smilee

    What is your objective? The subcube in HFM is a concept which applies to the application tier - not so much to the database tier. The size of the subcube is the unique number of data strips (data values for January - December inclusive, for example) for the given entity, currency triplet or Parent.Child node. You have to account for parent accounts and customs which don't exist in the database but are generated in RAM in the application tier.
    So, if your objective is to find the largest subcubes, you could do this by querying the database and counting the number of records per entity/value (DCE tables) or parent.child entity combination (DCN tables). I'm not versed in SQL, but I think the script below would just tell you the schema size and not the subcube sizes.
    Check out Accelatis.com for a third party software product that can do this for you. The feature is called the Subcube Analyzer and was written by the same team that wrote HFM, so they ought to know how this works :-)
    --chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to calculate network bandwidth for dataguard 11.2

    Hi all,
    have a customer who needs to setup a new data guard environment in release 11.2.0.2. Primary site will be in Italy, standby site will be in New York.
    He would like to know the network bandwidth between primary and standby site needed to obtain the maximum performance in redo transport with or without compression option.
    I found a lot of threads and docs indicating some formulas but none of them explained how to:
    - calculate network bandwidth on a rac system (having a single instance standby database)
    - calculate network bandwidth in case of use redo transport compression
    - calculate cpu consumption if using redo transport compression
    Could you please give any advice?
    A.M.

    Hi,
    customer made ma a lot of technical question just like the following:
    - which are the main factors determining the 30% overhead indicated in the network bandwidth calculation
    Required bandwidth = ((Redo rate bytes per sec. / 0.7) * 8) / 1,000,000 = bandwidth in Mbps
    - how much bandwidth will I gain if I apply redo transport compression and why redo transport compression and why usually the gzip utility gives me 5X less and oracle compression gives me a maximum of 50-60% of compression even if it uses the same engine of zlib compression as indicated below?
    Data Guard redo transport compression uses the same zlib compression engine at level 1 as gzip -1. To estimate the compression ratio you can achieve using Data Guard redo transport compression, first compress an archived redo log file with gzip:
    $ gzip -1 <archive redo logfile>.arc
    Then use the gzip --list option to explicitly display the compression ratio:
    $ gzip --list <archive redo logfile.arc>.gz
    Note: Use gzip version 1.3.3 or later. Refer to www.gzip.org for the latest information on gzip.
    Could anyone give me any direction?
    Thank you
    AM

  • How to calculate moving average price(MAP) when price variance in IV

    Hi All,
    My current stock for a material is 39 and MAP is 0.8 GBP.
    A purchase order is created for the material for a quantity of 1 at price of 0.8 GBP per unit.
    Invoice is posted for the above PO at price of 1.74 GBP.
    What will be the new MAP for the material now??How to calculate MAP when there is a price variance in Invoice?
    Please suggest ASAP.

    Hi,
    The Procedure for calculating MAP is :-
    Case 1 :- PO at different price
    If in Material Master your MAP is 0.8GBP & closing stock of 30Nos, value is 24GBP
    In PO if the price is 0.9GBP & qty is 10nos, then after Goods Receipt Total Value of the GR i.e. Qty * Price + any other delivery cost will be added to the material stock value.  Qty is also updated.  New Total Value / New Stock Qty will be MAP.
    In this case Qty received 10 & price is 0.9 that means value would be 9GBP.
    Total Value becomes 24GBP (Present Stock) + 9GBP (Goods Receipt) = 33GBP
    Total Qty becomes 30Nos + 10Nos (Goods Receipt) = 40Nos
    MAP becomes = 33GBP / 44Nos = 0.75
    Case 2 : Invoice Posting (MIRO) at different price than PO
    While doing MIRO is we post at different price system will check whether sufficient stock posted in GR is available.  In the above case it is 10Nos,
    If it is there, then the above logic as in case 1 will take place
    If not available, to the extent of stock availability system will post the different value & adjust MAP & remaining is posted to Price Difference Account.
    In your case it would be like this :
    1. MAP 0.8 for 30Nos (Value would be 24GBP)
    2. Invoice Posting 1.74GBP for 1No.  That means value would be 24GBP + 1.74GBP = 25.74GBP
         Qty would be 30+1 = 40
         MAP = 25.74 / 40   = 0.64GBP
    Hope this clarifies your doubt
    regards,
    JP

  • How solaris calculate virtual Memory ?

    Hi,
    I am using Solaris 10 on both sparc and x86 server.
    I am still unable to comprehend how solaris calculate Total Virtual Memory.
    We can check the Virtual Memory in system by SMC tool and by #swap -s command.
    swap -s
    total: 6071888k bytes allocated + 1010404k reserved = 7082292k used, 52134560k availableAbove output shows that total virtual memory is = 7082292k used, 52134560k available = 57829 MB
    Sun documents says that solaris calculate Virutal Memory by combining the available RAM with total swap space
    System swap is 32773 MB
    And availabe RAM righ now is 22506
    # vmstat 1 3
    kthr      memory            page            disk          faults      cpu
    r b w   swap  free  re  mf pi po fr de sr s2 -- -- --   in   sy   cs us sy id
    0 0 0 55999408 25906620 579 106 1410 2 2 0 0 69 0 0 0 3919 13684 6331 3  2 95
    1 0 0 52134492 23046320 9 56 0 0  0  0  0  4  0  0  0 1391 4097 2257  0  1 99
    0 0 0 52134372 23046196 0 6 0  0  0  0  0  5  0  0  0 1511 4367 2474  0  1 99So combining them becomes 55279 MB which is not the same as displaying by SMC and swap -s
    Does any body know how solaris exactly calculate the virtual memory which it indicates in SMC and swap -s ?

    If you look at the man page it shows for the -s flag:
    available The total swap space in
    bytes that is currently
    available for future reser-
    vation and allocation.
    That means if swap has been allocated it wont be shown in this total, Solaris has a funny way of dealing with memory, it will only free physical memory when it needs to reuse it. If you want to tell if a system is paging the best way is to use sar with the -g flag e.g
    sar -g 10 10
    Or iostat etc

  • How to calculate interest and tds

    friends,
    we have one asset where it is provided by our business partner. every month we have to pay interest based on the mail received from business partner. my query is how to post this interest in the system, how to calculate the tds on this,
    regards,

    Hi Subramaniyan,
       1. You need to configure interest calculation all the steps.
    http://www.sap-basis-abap.com/sapfj001.htm
    or
    OB46 - Interest Settlement Calculation Type
    Int Calc. Type
    P - calculate interest based on line items.
    S - calculate interest based on account balances.
    Secornd, make it avaliable to the interest run program.
    OB82 - Interest Terms
    Third, determine the interest rate that will be used by the calculation.
    OBAC - Define Reference Interest Rates
    OB83 - Enter the Reference Interest Rates Value
    Fourth, assign the interest indicator to the reference interest rate.
    OB81 - Define Time Dependent Terms
    Finally, determine the how and to which accounts the interest program will post.
    OBV1 - Prepare Interest on Arrears Calculation F.26    A/R: Balance Interest Calculation
       2. Create Recurring Entries.  fbd1
    http://help.sap.com/saphelp_46c/helpdata/EN/6e/1218df9f0411d189b80000e829fbbd/content.htm
      3.  Process Batch Input   sm35
    Regards,
    Srinivas Muthyala

  • How to convert bytes to megabytes or gigabytes in graph ?

    Hello,
    looking at Logical disk Read/sec or  Network adapter Bytes received/sec graph. Data is shown in Bytes. it is very difficult to read it. How to change it to megabytes or gigabytes ?
    For example this graph is very hard to understand, but if it was in megabytes/sec it was very different: 

    You cannot custom the y-axis scale in perfromance widget. fr detail, pls. refer
    http://scomblog.wordpress.com/2013/10/30/scom2012-dashboard-limitations/
    Roger

Maybe you are looking for

  • IMac no Longer Recognizes External Hard Lacie Hard Drive via Firewire 800

    It worked for 1 year. Time machine backed up fine. Over the past month it has gone in and out of recognizing the external Lacie d2 quadra via the Firewire800 port. I've tried turning off botht the iMac and the hard drive. unplugging both for 30 minut

  • SWFLoader problem(make the whole application zoomed in Mac)

    Hi, I am using swfloader to load an swf.  Everything works on different browsers in pc(safari, chorme, IE and ff). But when I launch this in safari in mac machine. whiling the application loading he swf file(same swf file(the size is 1024*720), whole

  • Mini-Bridge "Waiting for Bridge CS5"

    I thought I would try the Mini-Bridge on my os X, running 10.6.5, with Symantec 10.2.3. Reading up on this error, I have removed the Switchboard Pref folder and restarted. To its credit, it did attempt to see in my home folder when I clicked Favorite

  • Arabic language on 6233

    Hi all, I bought a mobile from eroupe and i did not have an arabic language in it. Can anyone help me to have arabic in me mobile?. Remark: I can read but i can not write arabic. Thanks friends.

  • Need help in giving the selection criteria

    Hi Guyz, I have a table with to fields, From_field and to_field and i have a selection screen field s_input. Now i need to fetch the row where s_input is between from_field and to_field. I have written the logic as from_field >= s_input AND