Find Jobs
Hire Freelancers

Sending stream from java servlet to VB

$30-100 USD

Cancelled
Posted over 14 years ago

$30-100 USD

Paid on delivery
We have a problem returning a stream from a java servlet to a VB application. The problem seems to be related to java using signed bytes while VB uses unsigned bytes. If the stream returned by the java servlet only contains bytes with values from 0 to 128, it works perfectly. However if the stream contains bytes with negative number values, the stream that VB receives? is very different to the stream that java sends - different stream lengths, different byte values, etc. There is no obvious correspondence where a? particular negative number? sent by java always ends up as a particular number in VB. There doesn't even seem to be any correspondence in the stream lengths -? one stream of length 39 sent from java ends up as a stream of length 70 in VB, whereas a different stream of length 39 sent from? java ends up as a stream of a different length in VB. I have attached a simple test app that replicates the problem.? The VB app sends an array of bytes to the? java servlet. The? java servlet reads the input and returns it to the? VB app. You can? change the array of bytes the VB app is? sending? to see how the stream being sent back from the java servlet varies. Note it always seems to add 13 and 10 at the end. I could fix this by? multiplying all of the negative number bytes in? java by -1 and adding extra bytes to the stream to indicate which bytes should be negative and which shouldn't, then converting everything back? once its received in VB. However our real application is sending large amounts of data and I don't want to add this extra overhead.? The job is to fix the attached? VB app and? java servlet? so that ? any byte array sent by the java servlet is correctly received by the VB app, without increasing the size of the stream.
Project ID: 2865914

About the project

3 proposals
Remote project
Active 15 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
3 freelancers are bidding on average $81 USD for this job
User Avatar
See private message.
$127.50 USD in 1 day
4.4 (83 reviews)
6.0
6.0
User Avatar
See private message.
$63.75 USD in 1 day
5.0 (64 reviews)
5.5
5.5
User Avatar
See private message.
$51 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of AUSTRALIA
Australia
5.0
7
Member since May 11, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.