Java POST help with binary data
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Java POST help with binary data

Hybrid View

  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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center