Convert JAVA class to J2ME class

This project was successfully completed by aoefmpes for $40 USD in 3 days.

Get free quotes for a project like this
Project Budget
$10 - $30 USD
Completed In
3 days
Total Bids
Project Description

I need someone to convert the following JAVA class to a usable J2ME class. It uses Apache HTTP Client and HTTP Entity and some other classes which are not usable to J2ME. So it may require the use of J2ME's native classes. Here's the code:

//-----------------------------------------------------------------------------CODE START

long newFileId = 'some value here';

String sessionKey = 'some value here';

long dcId = 'some value here';

String url = 'some value here';

try {

HttpClient client = new DefaultHttpClient();

HttpPost post = new HttpPost(url);

MultipartEntity me = new MultipartEntity();

StringBody rfid = new StringBody("" + newFileId);

StringBody rfb = new StringBody("" + 0);

InputStreamBody isb = new InputStreamBody(new BufferedInputStream(new FileInputStream(f)), "FilePart");

[url removed, login to view]("resumableFileId", rfid);

[url removed, login to view]("resumableFirstByte", rfb);

[url removed, login to view]("FilePart", isb);

[url removed, login to view](me);

HttpResponse resp = [url removed, login to view](post);

HttpEntity resEnt = [url removed, login to view]();


//-----------------------------------------------------------------------------CODE END

Completed by:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online