Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

wanna send image bytes to server  RSS feed

 
kusuma thatavarthi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i i want to upload image byte array to server.
im sending byte array thru ouput stream in addition to xml data bytes

but request is gng fine while image array doesnt.

so i want to hard code and test it.

my image array is [B@84aee8b (output of imagedata)
i want to
im doing




what exactly i want is how to hardcode my data

like ops.write([B@84aee8b) like this i want to send. ofcourse this is not correct.


please can you help me with this
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a complete example here:

http://radio.javaranch.com/davo/2007/07/20/1184942077153.html
 
Campbell Ritchie
Sheriff
Posts: 55284
156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and welcome to JavaRanch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!