CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2012
    Posts
    1

    Java POST help with binary data

    Dear Friends,
    Please help me
    I need to POST some binary values using Java.
    As i cannot use File directly, is there any alternative way to post the binary data using the dataoutputstream.
    basically looking for creating some binary data and do the POST.
    Any sample code will be very helpful.

    Thanks,
    Jeena

  2. #2
    Join Date
    Nov 2011
    Location
    Vietnam
    Posts
    8

    Re: Java POST help with binary data

    why cannot use file upload directly?

    you can use URLConnection class to send binary along with POST data. I don't have example here, unfortunately.
    However, the rule is, open an OutputStream on the connection and write your binary data.

  3. #3
    Join Date
    Nov 2011
    Location
    Vietnam
    Posts
    8

    Re: Java POST help with binary data


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured