• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

*urgent : mirror-ing string content to byte...

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi guys,
can someone please show me how do i clone my string value to byte[] type? when i say clone, i mean copying the exact characters but just by switching the data type...
as of :
String st = "ABCdeF";
needed to be converted to
byte[] bt = ABCdeF;
im having a midlet doing http calls to the servlet, which by sending it in its url convert the earlier byte[] data to string. so at the servlet side i need to have it in byte[] again before further processing...
using .getBytes() on the string doesnt help as it converts the string data value to byte[] value format....
someone please help?
many thanks,
ryan.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic