Implement a MIDP 2.0 class that performs three functions that interact with an HTTP server .
The first function is a GET that retrieves a simple response from the server. The content body contains the string "on" or "off".
The second function writes the contents of a byte array to the server using an HTTP POST. The contents are base64 encoded, and written as a chunked transfer. The layout of the byte array will be described to the winning bidder.
The third function issues a GET and receives a base64, chunked-transfer encoded response from the server. The data received is in the same format as that sent by the POST of the second function, above.
The class itself is defined simply as:
class DatabaseAsset {
public boolean isEnabled();[//returns true or false
public void put(byte[] dataToPut);//write the base64 encoded chunked transfer data
public byte[] get();//returns the byte array from the base64 chunked transfer response data
}
Interested bidders should describe their experience with MIDP 2.0 networking, especially any work with chunked transfer and base 64 encoding.
The total time estimate for this job is 6 hours.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows: complete MIDP 2.0 J2ME code as well as the compiled JAR.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
J2ME
MIDP 2.0
CLDC 1.0